PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Sep 26, 2017 6:12 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Help with the wrong path
PostPosted: Sat Mar 09, 2013 3:20 pm 
Offline
Forum Commoner
User avatar

Joined: Tue Nov 11, 2008 8:13 am
Posts: 31
Location: Texas
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?


Top
 Profile  
 
PostPosted: Sat Mar 09, 2013 5:04 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6353
Location: Montreal, Canada
One is using port 80, one is using port 8080. Also, check your DocumentRoot.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Sun Mar 10, 2013 2:54 pm 
Offline
Forum Contributor
User avatar

Joined: Wed Apr 14, 2010 4:45 pm
Posts: 375
Location: UK
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group