Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
nomadsoul

Db Connection Ok, Html Folder Hangup

Recommended Posts

I'm quite sure I've got the db connection working because when I navigate to mysql.inc.php I just get a blank browser with no errors.

but when I navigate(through the browser url) to index.php, it hangs on connecting...

I suspect its one of the path variables - when I installed xaamp 1.7.4  port 80 was busy so I changed it to 85.

below are my path variables in config.inc.php:

 

// Determine location of files and the URL of the site:
define ('BASE_URI', 'C:\xampp\htdocs\ecommerce\virtual\knowledge\html');
define ('BASE_URL', 'localhost:85');
define ('PDFS_DIR', BASE_URI . 'pdfs/'); // Added in Chapter 5.
define ('MYSQL', BASE_URI . 'C:\xampp\htdocs\ecommerce\virtual\knowledge');

 

for the BASE_URL constant I tried:

localhost

127.0.0.1

127.0.0.1:85

and the current:

localhost:85

 

-and still continues to hang

 

I'm using the older xaamp because the new version wasn't working for me.

And I also have the exact setup on another computer -with the same configs and paths etc... and all is fine. Im trying to put it on my laptop as well

-using firefox

-windows 7 -later I will port to a real unix  box

Hope you all can help.

 

 


 

Share this post


Link to post
Share on other sites

I would first start by trying to access a non-dynamic resource through the URL, like an image or a CSS script. If that loads promptly without issue, then the problem is in index.php (or PHP in general). If it hangs, then the problem is with the XAMPP configuration. Make sure you're going through a URL, though.

Share this post


Link to post
Share on other sites

also, I am accessing phpmyadmin successfully with the url: localhost:85/phpmyadmin.   So I'm assuming I'll have to look through php.info to see whats up with ports and php. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...