Problems with getting apache to load php...
Moderator: General Moderators
Problems with getting apache to load php...
I hope that it's okey that i post this question here.
I have added this two lines to my httpd.conf file in apache and when i try to start apache after i added this line it says that the requested operation failed... WHy is it so?
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml
Thx for any help i get..
I have added this two lines to my httpd.conf file in apache and when i try to start apache after i added this line it says that the requested operation failed... WHy is it so?
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml
Thx for any help i get..
Apache still wont start 
Requested operation failed.
I shutdown the apache server. added the twho lines and i try to sytart it again but ut wont start. And even if i remove the two lines it still wont start even though it did start after i installed it...
Should i use an older version of apache instead?
Requested operation failed.
I shutdown the apache server. added the twho lines and i try to sytart it again but ut wont start. And even if i remove the two lines it still wont start even though it did start after i installed it...
Should i use an older version of apache instead?
I had a apache2 (2.0.36) on my w2k but turned back to 1.3 since I wanted the php-source-highlighting feature.
Apache2 is still under development and some features/interfaces are subject to change
Took me days to get some modules to work after an update.
At the moment apache 1.3 is sufficient for me.....
Apache2 is still under development and some features/interfaces are subject to change
At the moment apache 1.3 is sufficient for me.....
I just installed apache 1.3.27 and i added all line as said in this manual: http://www.php.net/manual/en/install.apache.php
But then when i start my apache server it sais that it can't find the c:/php/sapi/php4apache.dll
Should i use CGI binary instead of Module?
But then when i start my apache server it sais that it can't find the c:/php/sapi/php4apache.dll
Should i use CGI binary instead of Module?
install.txt
open a command line and try to execute it. Does this work?
e.g.
In the .zip-Version of php for windows is a php-cli.exeYou need to ensure that the dlls which php uses can be found. The precise
dlls involved depend on which web server you use and whether you want to
run php as a cgi or as a server module. php4ts.dll is always used. If you are
using a server module (e.g. isapi or apache) then you will need the relevent
dll from the sapi folder. If you are using any php extension dlls then you
will need those as well. To make sure that the dlls can be found, you can
either copy them to the system directory (e.g. winnt/system32 or
windows/system) or you can make sure that they live in the same directory
as the main php executable or dll your web server will use (e.g. php.exe,
php4apache.dll).
open a command line and try to execute it. Does this work?
e.g.
Code: Select all
echo "<?php phpinfo() ?>" | php-cli.exeHello,
Win2K Apache 4.2.34 PHP 4.2.4-dev
Your test
echo "<?php phpinfo() ?>" | php-cli.exe
works for me from the dos window! Thanks!
However, I have not been able to invoke the phpinfo display from my browser. It always responds with file not found.
I have added the "AddType application/x-httpd-php .php .html .inc" line to httpd.conf as per the install.txt documentation. And doc_root has been set up in the php.ini file as well.
The testphp.php file containing "<?php phpinfo() ?>" is located off document root. My index.html works fine, but the testphp.php file is always not found.
Any ideas?
Win2K Apache 4.2.34 PHP 4.2.4-dev
Your test
echo "<?php phpinfo() ?>" | php-cli.exe
works for me from the dos window! Thanks!
However, I have not been able to invoke the phpinfo display from my browser. It always responds with file not found.
I have added the "AddType application/x-httpd-php .php .html .inc" line to httpd.conf as per the install.txt documentation. And doc_root has been set up in the php.ini file as well.
The testphp.php file containing "<?php phpinfo() ?>" is located off document root. My index.html works fine, but the testphp.php file is always not found.
Any ideas?