Help with the wrong path

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Lonestarjack
Forum Commoner
Posts: 31
Joined: Tue Nov 11, 2008 7:13 am
Location: Texas

Help with the wrong path

Post by Lonestarjack »

I had to reinstall everything on my laptop when a virus program wiped out my registry without first backing it up. Luckily I also installed PHPEd.

Now everything that worked before comes to a blank screen however I can execute the program with PHPEd.

This bombs out on my laptop:
http://127.0.0.1/utility/ad_hoc_query.php
With Status Code:500 Internal Server Error

This works on my laptop using either PHPEd or the URL address line.
http://localhost:8080/file:/C:/inetpub/ ... _query.php

I tried changing the connection to mysqli and changed from localhost to 127.0.0.1 but that didn't solve to problem. I did not see any port info in PHPINFO and wonder if there is a problem between 3306 and 8080 and if so where do I change it?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Help with the wrong path

Post by Celauran »

One is using port 80, one is using port 8080. Also, check your DocumentRoot.
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: Help with the wrong path

Post by mecha_godzilla »

Port 3306 is the default port for MySQL *unless* you're using socket connections, and the port that Apache will be listening on for web connections will be specified in your httpd.conf file.

Also, localhost normally maps to 127.0.0.1 by default (in the OS settings) so the port number you're using is more likely to be the issue.

HTH,

Mecha Godzilla
Post Reply