• 0

Configuring PHP w/ Apache 2


Question

24 answers to this question

Recommended Posts

  • 0

Make sure this is somewhere in your httpd.conf:

Action application/x-httpd-php /php/php.exe

Change the path to the executable if the php folder is not in the root of the C: drive. Also, be sure to restart Apache after modifying httpd.conf.

Link to comment
Share on other sites

  • 0

Andrew, you're assuming he didn't install it as a Apache module.

If you did the whole module thing, make sure you've copied php5apache2.dll and php5ts.dll to wherever it asks you to.

Can you give us exact details?

Link to comment
Share on other sites

  • 0

Ok, I am a complete n00b at this... so where do I copy php5apache2.dll and php5ts.dll to? :blink:

I am running PHP 3.8.0 btw :p

Link to comment
Share on other sites

  • 0

EDIT: Um, maybe you would want try Eagle's guide first. He posted while I was writing. My guide was written in 10 minutes. That guy probably took some time. But mine works :p

PHP 3.8.0? Well, I'll tell you straight off IPB requires PHP 4.1.0 or better :p

Here are reasonably good steps to installing PHP on Apache. Let's please use new versions, so download yourself PHP 5 and Apache 1.3.3.1 or 2.0.50.

Install Apache using the installer. Make sure that it can serve up web pages. (Best chance if it doesn't: disable the Personal Web Page publishing service on Windows XP)

Download the ZIPped PHP from http://www.php.net. Unzip it to C:\PHP.

Take php.ini-recommended and copy it to C:\Windows. Rename to php.ini.

You'll probably want MySQL if you're using IPB. Uncomment the line about php_mysql.dll.

Copy C:\PHP\libmysql.dll to C:\Windows\System32.

Edit Apache's httpd.conf. Add the following line to the end of the LoadModule section (Note: where you put it doesn't matter, but group it with the related settings so it's easy to find) LoadModule php5_module c:/php/php5apache2.dll

Add the following lines to the end of the AddType section:

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

Restart Apache. You should be good to go!

Link to comment
Share on other sites

  • 0

Thanks loads SethandCheese!!

One more thing.. how can I set Apache to recognise index.php as the index file so that it doesnt show the directory when I type in /forums/install, etc. ?

Link to comment
Share on other sites

  • 0

Ok guys, it's workin now.. cheers

Now I need to know how to create a new SQL database and then import a backup

and I also need to know why no-one can view the page I have set at www.totalforums.us.. im the only person who can see it :blink:

Link to comment
Share on other sites

  • 0
Your firewall may be preventing people from the outside in, make sure port 80 is open and pointing to the machine with the web server on.

It is set to that :(

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.