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?
Help with the wrong path
Moderator: General Moderators
- Lonestarjack
- Forum Commoner
- Posts: 31
- Joined: Tue Nov 11, 2008 7:13 am
- Location: Texas
Re: Help with the wrong path
One is using port 80, one is using port 8080. Also, check your DocumentRoot.
- mecha_godzilla
- Forum Contributor
- Posts: 375
- Joined: Wed Apr 14, 2010 4:45 pm
- Location: UK
Re: Help with the wrong path
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
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