PHP Developers Network

Help with the wrong path
Page 1 of 1

Author:  Lonestarjack [ Sat Mar 09, 2013 3:20 pm ]
Post subject:  Help with the wrong path

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:
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 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?

Author:  Celauran [ Sat Mar 09, 2013 5:04 pm ]
Post subject:  Re: Help with the wrong path

One is using port 80, one is using port 8080. Also, check your DocumentRoot.

Author:  mecha_godzilla [ Sun Mar 10, 2013 2:54 pm ]
Post subject:  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 by default (in the OS settings) so the port number you're using is more likely to be the issue.


Mecha Godzilla

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group