Skip navigation
Currently Being Moderated

PHP won't execute on Dream Weaver testing server

Jul 17, 2012 10:30 AM

I have successfully installed an Apache server and MySQL using Xampp.  Using Dream Weaver (CS5.5) I've created .php pages which (after setting up the site and testing server) successfully connect to a database.  However, php code on those pages won't execute.  The pages only display the text code when IE or Firefox links to http://localhost/filename.php.  Following is the Apache log file entries for those failed attempts. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 443. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 443. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 80. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 80. [Tue Jul 17 10:38:28 2012] [error] [client ::1] script 'C:/Program Files/xampp/htdocs/phpinfo.php' not found or unable to stat [Tue Jul 17 10:51:25 2012] [error] [client ::1] script 'C:/Program Files/xampp/htdocs/phpinfo.php' not found or unable to stat I've run out of ideas about how to solve this.  Anyone?

 
Replies
  • Currently Being Moderated
    Jul 17, 2012 11:51 AM   in reply to cyberbaffled

    Sounds like PHP isn't running.  I'd recommend posting in the XAMPP forum as they would be better equipped to solve your issue: http://www.apachefriends.org/f/viewforum.php?f=16

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2012 6:12 AM   in reply to cyberbaffled

    If PHP is running in other locations, then it's a configuration issue with the server whereby PHP is not allowed to run in the folder you have specified.  I can tell you filenames and areas to look for, but I'm personally have never found the XAMPP installation to be the most intuitive when it comes to editing which is why I pointed you in their direction.

     

    If you look in the httpd.conf file, you should see a DocumentRoot defined.  Make sure that the site definition is within that document root.  There should also be a Directory declaration ( <Directory "/path/to"> ) that should match the path of your DocumentRoot.  It is possible to serve documents from different areas of your computer.  Ususally this is done when you have things like phpMyAdmin above the root, so if you see multiple entries in there, some of which XAMPP installs itself, you should leave them alone and ask their support forum for help because they will know which entries the application puts in that you will not want to remove.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points