I'm having trouble getting PHP installed with Apache. I don't know if it's tied to my trying to use the newest versions available on the respective application web sites.
I've successfully installed Apache and when browsing http://localhost/ I can see the files I've put there. I've even re-directed from the DocumentRoot folder from "htdocs" to a folder on the root of my C:\ drive.
After installing PHP, I've updated the httpd.con file to contain the following lines:
PHPIniDir C:/php/
LoadModule php5_module "c:/php/php5apache2.dll "
AddType application/x-httpd-php .php
They are between the "#LoadModul e ssl_module modules/mod_ssl.so" and the "# 'Main' server configuration" lines.
I put "php5ts.dll " in c:\windows\syst em32\ and renamed "php.ini-recommended" to "php.ini". The file "php5apache2.dl l" exists in c:\php\.
When trying to start Apache after adding the three lines, I get this error:
If I comment out the LoadModule and AddType lines I get this error:
I don't know if I've got these lines in the right place in the httpd.con file or if I've got an obvious typo I can't see...
Any help is appreciated!
Thanks,
Louis
I've successfully installed Apache and when browsing http://localhost/ I can see the files I've put there. I've even re-directed from the DocumentRoot folder from "htdocs" to a folder on the root of my C:\ drive.
After installing PHP, I've updated the httpd.con file to contain the following lines:
PHPIniDir C:/php/
LoadModule php5_module "c:/php/php5apache2.dll "
AddType application/x-httpd-php .php
They are between the "#LoadModul e ssl_module modules/mod_ssl.so" and the "# 'Main' server configuration" lines.
I put "php5ts.dll " in c:\windows\syst em32\ and renamed "php.ini-recommended" to "php.ini". The file "php5apache2.dl l" exists in c:\php\.
When trying to start Apache after adding the three lines, I get this error:
>>> httpd.exe: Syntax error on line 119 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server: The specified module could not be found. .
If I comment out the LoadModule and AddType lines I get this error:
>>> Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not included in the server configuration .
I don't know if I've got these lines in the right place in the httpd.con file or if I've got an obvious typo I can't see...
Any help is appreciated!
Thanks,
Louis
Comment