Jump to content

PHP not working under Apache


Recommended Posts

I sure hope you mean <?php and ?> not what you posted.

 

if you're installing them as seperate pieces of 'software' on a windows platform, there is an easier option for you so you don't have to pull your hair out.

 

http://www.apachefriends.org/en/xampp-windows.html will solve all your problems ;)

http://www.php-mysql-tutorial.com/wikis/php-tutorial/installing-php-and-mysql.aspx

 

that little guide right there can walk you through how to setup your php, mysql, and apache correctly to work and run under your windows platform.

That would be useful it didn't use outdated versions of apache, php and mysql.

 

Just installed apache, then PHP, but can't get apache to recognise the php, it ignores everything between <php and >

Just checked your Apaches configuration. You haven't setup your document root correctly. I see this one line 178

DocumentRoot "I:\DATA\CentralStorage\PD004\WEBSERVER\WS002"

 

However you have not reflected this change on line 205

<Directory "I:/APPS/Apache Software Foundation/Apache2.2/htdocs">

Change I:/APPS/Apache Software Foundation/Apache2.2/htdocs to I:\DATA\CentralStorage\PD004\WEBSERVER\WS002

 

Now make sure you restart Apache. This is important when you make any changes to Apaches configuration files. Make sure you are placing your html/php files in I:\DATA\CentralStorage\PD004\WEBSERVER\WS002. Now go to http://your_address_here/filename.php to run your php files.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.