Page 1 of 1

[SOLVED] upgrading to php problem

Posted: Sun Apr 18, 2004 12:34 am
by phice
I decided to upgrade PHP today and the installation went perfect. But, I'm having a problem with Interal Server Problems within my php files.

What seems to be fairly persistant is that none of the variables passed through the url (eg: index.php?variable=value) isn't processed. Also, some of my php files don't work entirely. It seems to be a 500 Internal Server problem.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, don@onlygeeks.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.29 Server at localhost Port 80
I did nothing to the config files after the installation, so that might be some help.

This is my localhost computer, running Windows XP Pro with Apache 1.3.29 & PHP 4.3.6.

Posted: Sun Apr 18, 2004 1:05 am
by phice
Also, I got a window saying to set permissions to IUSR_machinename, but I can't find any information on what IUSR_machinename is?

Posted: Sun Apr 18, 2004 3:00 am
by JAM
IUSR_machinename is IIS (I belive). So thats wierd as youre using Apache.
I did nothing to the config files after the installation, so that might be some help.
The ini files likely changes from build to build, so you ought to replace the old with the new one, rearranging the settings in it to fit your needs.
You can of course keep the old one to look at, but it should be replaced.

Only thing I can think of atm.

[Edit:]

Found this regarding IUSR_ : http://support.microsoft.com/default.as ... US;q311481 to verify with.

Posted: Sun Apr 18, 2004 1:11 pm
by phice
I get a popup after installation saying:
PHP 4.3.6 has been successfully installed.

Press the OK button to exit this installation.

NT users may need to set appropriate permissions for the various php files and directories. Usually IUSR_MachineName (or the user your web servre runs as) will need read write access to the uploadtmp and session directories, and execute access for php.exe and php4ts.dll
I run as administrator the whole time, I so I don't think that's a problem.

You can view my phpinfo @ http://www.onlygeeks.com/phpinfo.html

Posted: Sun Apr 18, 2004 2:05 pm
by phice
Also, when I said I did nothing to the php.ini file after installation, I mean that I let the installation overwrite the previous version.


An hour ago, I tried the .zip version of 4.3.6. I unzipped it to C:/PHP (deleting all existance of the old php, of course) and editing php.ini to the correct locations for session.save_path and the temp folder's location. I'm still getting these problems. :mad:

Posted: Sun Apr 18, 2004 3:42 pm
by phice
Bah, it was a problem with my laziness. ;)

I normally always use $var instead of $_GET["var"] when taking variables from the url in my coding. Everything's working fine now.

Posted: Mon Apr 19, 2004 10:39 am
by JAM
Ahaha.. Serves you right phice. ;)

Abit to late in the thread to add ideas, but I guess you don't need any anymore. Glad it worked out.

Posted: Mon Apr 19, 2004 1:04 pm
by phice
I was wondering why other programs were working and mine weren't. ;)