PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 9th, 2006, 12:26 PM
Alanistic Alanistic is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 Alanistic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help Needed: Configuring Apache for PHP

Hi all, I was hoping someone would be able to help me. I'm planning on learning php and I'm in the process of configuring my computer (Win XP) with Apache, MySQL and PHP. Apache has been installed with no probs and I've got mySQL running too.

I've just installed php 5.1.6 for windows, and the book I'm using to get started says I need to edit the configuration for Apache to reconise the PHP files. It gives me three lines of code to add to the httpd.conf file. Those are:

LoadModule php5_module c:/php/php5apache.dll

AddModule mod_php5.c

AddType application/x-httpd-php .php .phtml


I've added the lines of code and have also created the phpinfo.php page and placed it in the apache htdocs folder, but now Apache fails to run (there is a failure when I try to run the service). When I remove the three lines it runs fine but obviously when I type in http://localhost/phpinfo.php to my browser I get the standard page cannot be displayed file.

Does anyone know what I'm doing wrong? I'm a trained java programmer and this is the first time I've tinkered with php and apache. Any advice would really be appreciated.

Reply With Quote
  #2  
Old October 9th, 2006, 01:42 PM
desrtfx desrtfx is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sometimes Austria, sometimes Sahara
Posts: 27 desrtfx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 sec
Reputation Power: 0
RE: Help Needed: Configuring Apache for PHP

Hi!

Since I am also not the "Server Guru" I used a verz simple trick - I got myself a copy of XAMPP - a complete package consisting of Apache, MySQL, PHP, & PHPMyAdmin - absolutely easy to install - stable - fast.

You can find XAMPP at www.apachefriends.org

Definitely easier than trying to configure Apache by yourself - especially when you are on windows and not in a production environment - there I would still rely on a LINUX implementation.

regards,
desrtfx (Georg)

Reply With Quote
  #3  
Old October 9th, 2006, 02:28 PM
Alanistic Alanistic is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 Alanistic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Help Needed: Configuring Apache for PHP

Thanks so much for the advice. I'll need to give it a try...it sounds so much easier than the way I'm doing it.

Would that make any difference to the php stuff when I get around to uploading it to the web?

Reply With Quote
  #4  
Old October 9th, 2006, 02:57 PM
desrtfx desrtfx is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sometimes Austria, sometimes Sahara
Posts: 27 desrtfx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 sec
Reputation Power: 0
RE: Help Needed: Configuring Apache for PHP

Hi again!

No, it wouldn't make any difference as long as you bear in mind that UNIX (and thus LINUX) Path & File Names are Case -sensitive (i.e. Root is not the same as root). Other than that I could not find any differences.

Anyhow, it's definitely worth giving XAMPP a try, the guys there are doing a phantastic job making it so easy for everyone to have a proper webserver running in no time. (I actually have even a local copy of the german site of Wikipedia running on my XAMPP - needed it for the times when I had no Internet at my work-location {Sahara})

Regards,
desrtfx

Reply With Quote
  #5  
Old October 18th, 2006, 04:38 PM
bsaksida bsaksida is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Slovenia Ljubljana
Posts: 188 bsaksida User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to bsaksida
RE: Help Needed: Configuring Apache for PHP

If you have apache 2.2.x then download from http://snaps.php.net/ php v5.2

then in httpd.conf:
LoadModule php5_module c:/php/php5apache2_2.dll

<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>

I Have newer used this:
AddModule mod_php5.c


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Help Needed: Configuring Apache for PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway