Skip to main content

Home/ studay/ Group items tagged apache

Rss Feed Group items tagged

doingtoing

Using Apache with Microsoft Windows - Apache HTTP Server - 0 views

  • Using Apache with Microsoft Windows
  • For Windows installations you should download the version of Apache for Windows with the .msi extension. This is a single Microsoft Installer file, which contains a ready-to-run version of Apache. There is a separate .zip file, which contains only the source code. You can compile Apache yourself with the Microsoft Visual C++ (Visual Studio) tools.
    • doingtoing
       
      1.可直接按照.msi后缀的微软安装版; 2.也可用微软c 编译.zip后缀的源代码文件。
  • ...7 more annotations...
  • You need Microsoft Installer 1.2 or above for the installation to work.
    • doingtoing
       
      "Microsoft Installer "是什么?
  • A full install will require about 13 megabytes of free disk space.
  • Apache for Windows contains the ability to load modules at runtime, without recompiling the server
  • Apache can also load ISAPI (Internet Server Application Programming Interface) extensions (i.e. internet server applications), such as those used by Microsoft IIS and other Windows servers.
  • If you use the first command without any special parameters except -k install, the service will be called Apache2 and the configuration will be assumed to be conf\httpd.conf.
  • You can also restart a running service and force it to reread its configuration file by using: httpd -k restart
    • doingtoing
       
      restart与start的区别,是不是在于它有没有去读configuration file?
doingtoing

PHP: 手工安装步骤 - Manual - 0 views

  • 本安装指南指导手动在一个 Microsoft Windows 的 web 服务器下安装和配置 PHP
  • 服务器模块比 CGI 可执行程序提供了更好的性能和更多的功能。
  • CGI 和 CLI 可执行文件以及 web 服务器模块都需要 php4ts.dll(php5ts.dll)。必须确认该文件可以在 PHP 安装路径中找到。对该 DLL 的搜索顺序为: 调用 php.exe 时所在的目录,或者若使用 SAPI 模块时,web 服务器的目录(例如 C:\Program Files\Apache Group\Apache2\bin)。 任何在 Windows 的 PATH 环境变量中指定的目录。
  • ...5 more annotations...
  • 要让 php4ts.dll / php5ts.dll 能正确被搜索到,有下面三个选择:复制该文件到 Windows 系统目录,复制该文件到 web 服务器的目录,或者把 PHP 目录(例如 C:\php)添加到 PATH 环境变量中。为了将来更好的维护,建议使用最后一个选择,将 PHP 目录添加到 PATH 环境变量中,因为这样更便于将来升级 PHP。
  • 下一步是为 PHP 设置一个有效的配置文件,php.ini
  • 如果使用 Apache 2,更简单的选择是使用 PHPIniDir 指令(请阅读在 Apache 2 下的安装);若不是,最好的选择是设置 PHPRC 环境变量。
  • 注意: 如果在 Windows NT、2000、XP 或 2003 中使用 NTFS 分区,请确认运行 web 服务器的用户有权限读取 php.ini(例如将其设置为 Everyone 可读)
  • 选择 PHP 装载的扩展库。请阅读关于 Windows 扩展一节以了解如何设置扩展库,以及哪些功能已经内置无需扩展库。请注意建议在全新安装时先不要在 php.ini 中加载任何扩展库,首先要保证 PHP 自身能够正常工作。
doingtoing

PHP: Microsoft Windows 下的 Apache 2.0.x - Manual - 0 views

  • Windows 下有两种方法使 PHP 工作于 Apache 2.0.x 之中。一种是 使用 CGI 可执行程序,另一种是适用 Apache 模块的 DLL。不管哪种都需要编辑 httpd.conf 来配置 Apache 支持 PHP 并重新启动服务器。
  • 注意: 记住在 Windows 下给 Apache 的配置文件中加入路径值的时候,所有的反斜线例如 c:\directory\file.ext 必须转换成正斜线,如 c:/directory/file.ext。
doingtoing

apache的静态/动态编译在apache+php+mysql的应用 - 0 views

  • ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql \ --with-apache=../apache_1.3.27 &&
  •  
    就是这个 ./configure 句,在什么状态下使用?apache的命令行?如果是xampp这样的集成环境,是在哪儿加的?
    如果是在服务器环境,这一句写在哪里?

doingtoing

apache friends - xampp 的 windows 版 faq - 0 views

  • The \xampp\apache\bin\php.ini is the correct one! The others in the \xampp\php directory are only for PHP in CGI/CLI mode. So configure the \xampp\apache\bin\php.ini for web changes. Modifications in the php.ini will be saved also after the "PHP switch" (the changing of the PHP version). And note: Modifications in the php.ini and in the httpd.conf always need a Apache restart!
  • md5 checksum
    • doingtoing
       
      这个md5 checksum与将设置的mhash应没有关系。这貌似对文件进行校验的一个功能软件。
  • ...2 more annotations...
  • md5 checksum
    • doingtoing
       
      试着去修改php.ini,看是否在此添加编译参数。
  •  
    在apache里如何设置编译php的参数,仍未明了。

doingtoing

Apache HTTP Server Version 2.0 Documentation - Apache HTTP Server - 0 views

  • Apache HTTP Server Version 2.0 Documentation
doingtoing

Running the PHP QuickStart Sample - 0 views

  • This topic explains how to install, run, and extend the QuickStart sample as provided in the PHP programming language.
  • The PHP QuickStart sample is preconfigured to use default values for the application ID, secret key, and return URL parameters. The return URL is preconfigured to point to http://localhost/webauth/sample/webauth-handler.php.
    • doingtoing
       
      在这里已经设置了返回的URL,所以把sample的代码放到cblogin里运行,它就直接回webauth地址了,之前未仔细看这段,一直纳闷。
  • On an openSUSE 10.2 Linux platform, ensure that the apache2, apache2-mod_PHP5, php5-mhash, php5-mcrypt, php5-openssl, php5-dba, php5-hash, and php5-dom packages are installed by means of the YaST tool.
    • doingtoing
       
      两个问题: 1.YaST tool是什么; 2.这句中提到的 php5-mhash, php5-mcrypt, php5-openssl, php5-dba, php5-hash, and php5-dom 非常重要,一个都不能少,在php.ini里面,要修改之使没有加载的扩展库加载上。 因为mhash dba mcrypt陆续出的问题,都解决了,但dba仍在login后出现问题。与stream有关。
  • ...1 more annotation...
  • Locate the <Directory "/srv/www/htdocs"> section (where "/srv/www/htdocs" is the document root for http://localhost/) and change the AllowOverride None line to AllowOverride All. This modification permits the .htaccess file that is included in the Web Authentication PHP package to take effect. You can inspect this file and make changes directly in the Apache configuration if you do not want to enable .htaccess overrides on the localhost.
    • doingtoing
       
      1.这段要修改 AllowOverride All,不知道在哪里修改; 2..htaccess为什么要被overrides?
doingtoing

apache friends - 非常容易安装的 apache、mysql、php 和 perl - 0 views

  • XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。
  •  
    当前用1.8.3的lite版。看到1.8.4版已经出来,暂时不打算换。
doingtoing

PHP: 运行时配置 - Manual - 0 views

  • 配置文件(PHP 3 中是 php3.ini,自 PHP 4 起是 php.ini)在 PHP 启动时被读取。对于服务器模块版本的 PHP,仅在 web 服务器启动时读取一次。对于 CGI 和 CLI 版本,每次调用都会读取。
  • 如果存在 php-SAPI.ini(SAPI 是当前所用的 SAPI 名称,因此实际文件名为 php-cli.ini 或 php-apache.ini 等),则会用它替代 php.ini。SAPI 的名称可以用 php_sapi_name() 来测定。
  • 注意: Apache web 服务器在启动时会把目录转到根目录,这将导致 PHP 尝试在根目录下读取 php.ini,如果存在的话。
doingtoing

PHP 框架,第 1 部分: 开始使用三种常用框架 - 0 views

  • 首先创建一个文件夹来保存所有代码、框架并包括本系列需要的内容(例如,名为 /column 的目录)。在此目录中,创建四个附加目录:htdocs、protected、include 和 src。编辑 Apache conf 文件,使文档根目录指向 /column/htdocs —— 然后当您处于该目录中时(如果尚不在其中),应当启用 mod_rewrite。编辑 php.ini conf 文件使 /column/include/ 目录包含在 include_path 指令中。
1 - 10 of 10
Showing 20 items per page