关于APACHE+PHP5的配置问题
我首先在我的机子上已经正确安装过PHP4+APACHE1.3了,现在我想改为PHP5+APACHE,可是改完已经APACHE启动不了了,我参照的配置文件内容为:<FONT size=3>3.修改Apache的httpd.conf文件(在D:\Program Files\Apache Group\Apache2\conf下),在最后添加:<BR>ScriptAlias /php/ "D:/PHP/"<BR>AddType application/x-httpd-php .php<BR>Action application/x-httpd-php "/php/php-cgi.exe"<BR>4.修改php.ini文件,将extension_dir改成extension_dir = "D:\PHP\ext";<BR>如果要用mysql的话去掉extension=php_mysql.dll前面";"<BR>5.在系统变量PATH路径中添加D:\PHP<BR>方法:右击我的电脑,选择属性>>高级>>环境变量>>系统变量>>编辑Path,在Path最后补上D:\PHP即可<BR><BR><BR>6.配置完后,在apache安装目录下的htdocs文件夹建立一个test.php文件,代码如下:<BR>phpinfo();<BR>?> <BR>然后在浏览器中输入http://localhost/test.php若配置成功,则显示php相关的信息。<BR><BR>7.某些扩展库需要附加的 dll 文件才能工作。其中一部分可以在压缩包中找到,在 c:\php\dlls\ 目录下,但有一些,例如 Oracle(php_oci8.dll)需要的 dll 没有在压缩包中绑定。将绑定的 dll 从 c:\php\dlls 目录拷贝到 Windows 路径中,例如: <BR><BR><BR>c:\windows\system for Windows 9x/Me <BR>c:\winnt\system32 for Windows NT/2000 <BR>c:\windows\system32 for Windows XP </FONT><BR><BR><BR><BR>能给我推荐个PHP环境配置的软件么?
能给我推荐个PHP环境配置的软件么?光配置环境我就头大了.我系统是2000的. 我用的IIS和PHP+MYSQL配置很好配置的 我敢说楼主的这套配置是绝对跑不起来的,我已经试过N次了,APACHE2是兼容不了PHP5的 纠正一下楼上。apache2 +php5 性能和兼容性很好php-5.1.6-Win32.zip+apache_2.0.59-win32-x86-no_ssl.msi<br><br>apache2<br>直接安装<br>httpd.conf<br>加入<br>NameVirtualHost *:80<br>LoadModule php5_module "c:/php/php5apache2.dll" <br>AddType application/x-httpd-php .php .php3 .php4 .phtml <br>AddType application/x-httpd-php-source .phps <br><VirtualHost *:80><br> ServerAdmin ddddd@ggggg<br> DocumentRoot d:/web<br> ServerName aaaaa<br> DirectoryIndex index.php<br> ErrorLog logs/dummy-host.example.com-error_log<br> CustomLog logs/dummy-host.example.com-access_log common<br></VirtualHost><br><br><br>php<br>复制libmysql.dll到c:\windows\system32\<br>复制ext\php_mysql.dll 到c:\windows\system32\<br>把php.ini 复制到c:\windows<br>php.ini<br>include_path = ".;c:\php\includes"<br>extension_dir = "C:/php/ext"<br>upload_tmp_dir ="c:/php/tmp"<br>extension=php_mbstring.dll<br>extension=php_curl.dll<br>extension=php_msql.dll<br>session.save_path = "c:/php/tmp"<br><br><br>页:
[1]
