Page 1 of 1

Help with the wrong path

Posted: Sat Mar 09, 2013 2:20 pm
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?

Re: Help with the wrong path

Posted: Sat Mar 09, 2013 4:04 pm
by Celauran
One is using port 80, one is using port 8080. Also, check your DocumentRoot.

Re: Help with the wrong path

Posted: Sun Mar 10, 2013 2:54 pm
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