b) can you run this script:
<?php
phpinfo();
?>
c) if so, you have your problem solved, it just need some twicking with php.in settings (php.ini is in directory c:\winnt)
d) if not, you will have to check apache configuration (normally in the apache install directory ./conf/httpd.conf)
In it, check if the three lines:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Are present in the correct places in the file (i normally place the first "LoadMoule" as the last loadmodule to load, the "AddModule" as the last "AddModule" and the other somewhere after that with some lines like:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
</IfModule>
I normally also change the following:
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.php3 index.php4
</IfModule>
So that all sites will run any of those files as default in that order (or any other)...
Hope to have been of help,
Cheers...
Luis Ferro
TelaDigital
Nikolas Galanis wrote:
Hello
On a WIndows XP professional edition I am running Apache 1.3.27 with PHP 4.2.3. I am using this configuration to locally work on web projects before publishing them.
Although most of the things work ok, there are some times that the server returns a 500 internal error. It happens with the same scripts all the time. The simplest script that returns this error is the hello world script! I can't say this is a rule, but usually it happens when the part of the script that is actually executed is quite small. For example, if I have a script that works ok and on the top of it I add:
$dada = '1';
if ($dada) { echo 'Hello world'; }
else {
the rest of the script }
then it returns an internal error again.
I read about a bug in the apache's website. Are there any common experiences regarding this? Thanks.
--- [This E-mail scanned for viruses by Declude Virus] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php