| Author |  | 
| paulSC 
 
 
 Joined: 21 May 2006
 Posts: 5
 
 
 | 
|  Posted: Mon 22 May '06 3:53    Post subject: PHP5 and apache 2.2 |   |  
| 
 |  
| 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
 
 |  | 
| Back to top |  | 
| paulSC 
 
 
 Joined: 21 May 2006
 Posts: 5
 
 
 | 
|  Posted: Mon 22 May '06 18:11    Post subject: |   |  
| 
 |  
| 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
 
 
 | 
|  Posted: Mon 22 May '06 19:18    Post subject: |   |  
| 
 |  
| 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
 
 
 | 
|  Posted: Mon 22 May '06 21:33    Post subject: |   |  
| 
 |  
| What file should that be in? 
 paul
 |  | 
| Back to top |  | 
| paulSC 
 
 
 Joined: 21 May 2006
 Posts: 5
 
 
 | 
|  Posted: Sat 27 May '06 3:40    Post subject: |   |  
| 
 |  
| 
 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
 
 
 | 
|  Posted: Sat 27 May '06 15:05    Post subject: |   |  
| 
 |  
|  	  | paulSC wrote: |  	  | 
 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
 
 
 | 
|  Posted: Sat 27 May '06 21:55    Post subject: |   |  
| 
 |  
| its under program files |  | 
| Back to top |  |