logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



PHP5 and apache 2.2

 
Post new topic   Reply to topic    Apache Forum Index -> Other Software



View previous topic :: View next topic  
Author Message
paulSC



Joined: 21 May 2006
Posts: 5

PostPosted: Mon 22 May '06 3:53    Post subject: PHP5 and apache 2.2 Reply with quote

I've been trying to get Apache to work with php5 but I'm having no success. Apache is installed fine and I got the zip files for php and them on my hard drive. I added the appropriate lines to httpd.conf and restarted apache. It restarts no problem but when I view php content I see nothing. I downloaded the updated php5 .dll from this site and rechecked my httpd.conf. Here are the lines I added to the top of the .conf file

# Add to your httpd.conf

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

I copied php.ini to the apache folder too.
Are there other steps that I'm missing?

thanks,
Paul
Back to top
pips



Joined: 03 May 2006
Posts: 65
Location: Manchester, UK

PostPosted: Mon 22 May '06 12:35    Post subject: Reply with quote

Paul, you might find something from my topic below:-

http://www.apachelounge.com/viewtopic.php?t=374

Phil.
Back to top
paulSC



Joined: 21 May 2006
Posts: 5

PostPosted: Mon 22 May '06 18:11    Post subject: Reply with quote

Thanks for the reply. The document looks good, I'll give it a try when I get home from work.

paul
Back to top
ddebidin



Joined: 17 Mar 2006
Posts: 3

PostPosted: Mon 22 May '06 19:18    Post subject: Reply with quote

The solution is simple to get php5 to work with apache 2.2.2.

The new apache is more strict with read permissions.

<Directory "C:/Program Files/PHP/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

Ensure that there's a directive to set allow permissions on the php installation dir.
Back to top
paulSC



Joined: 21 May 2006
Posts: 5

PostPosted: Mon 22 May '06 21:33    Post subject: Reply with quote

What file should that be in?

paul
Back to top
paulSC



Joined: 21 May 2006
Posts: 5

PostPosted: Sat 27 May '06 3:40    Post subject: Reply with quote

pips wrote:
Paul, you might find something from my topic below:-

http://www.apachelounge.com/viewtopic.php?t=374

Phil.


Thanks for the help. It worked great. The only issue I'm having now is after I start mysql with 'net start mysql5' I don't get a mysql> prompt. I'm trying to follow along with the tutorial from the mysql site but it's hard without having the prompt. Any suggestions? Thanks.
paul
Back to top
paulSC



Joined: 21 May 2006
Posts: 5

PostPosted: Sat 27 May '06 15:05    Post subject: Reply with quote

paulSC wrote:
pips wrote:
Paul, you might find something from my topic below:-

http://www.apachelounge.com/viewtopic.php?t=374

Phil.


Thanks for the help. It worked great. The only issue I'm having now is after I start mysql with 'net start mysql5' I don't get a mysql> prompt. I'm trying to follow along with the tutorial from the mysql site but it's hard without having the prompt. Any suggestions? Thanks.
paul


I figured it out.
Back to top
mightyspawn



Joined: 26 May 2006
Posts: 18

PostPosted: Sat 27 May '06 21:55    Post subject: Reply with quote

its under program files
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Other Software
Page 1 of 1