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?
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
The phpinfo() link on the Xampp control panel brings up the designated information, so PHP is running in the context of Xampp. This has all the appearance of being a DW issue. I'll contact the Xampp forum, but I'm also hoping to hear more from this forum. I've given you a yes for a helpful answer.
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.
North America
Europe, Middle East and Africa
Asia Pacific