Jump to content

PHP not installing


Recommended Posts

When i install PHP i'll get the point where it says pick a webserver and i don't know what to select. So I choose the bottom option which is continue with no webserver. And then i get this error: "Error trying to access httpd.conf file. You will need to manually configure the webserver." I have tried to download Apache but PHP never works with that ethier and this site VVVV says nothing about Apache soo.

 

http://www.databasedev.co.uk/microsoft-access-and-php.html.

Also I have no website. The site listed above (which is my guideline) says "Tip: This configuration has to be done on the computer where your web site is located."

 

Thanks.

 

Link to comment
Share on other sites

That article assumes you already have a server setup and is configured with PHP.

 

When installing Apache and PHP always install Apache first followed by PHP. However, it is much easier to install PHP without the installer, just download the zipped binaries package instead from php.net and extract the contents of the zip to C:\php

 

Once You have Apache and PHP installed, Apache will need to be configured with PHP. To do so first add PHP to the PATH Environment Variable.

Then open Apache's httpd.conf file and add the following lines

LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"

AddType application/x-httpd-php .php

 

Save the httpd.conf and restart Apache. That's it Apache and PHP are now ready to use. Save all your php files in Apaches htdocs folder and go to http://localhost to run them.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.