[SOLVED] upgrading to php problem

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

[SOLVED] upgrading to php problem

Post 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.
Last edited by phice on Sun Apr 18, 2004 3:43 pm, edited 2 times in total.
Image Image
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post 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?
Image Image
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post 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
Image Image
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post 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:
Image Image
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post 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.
Image Image
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

I was wondering why other programs were working and mine weren't. ;)
Image Image
Post Reply