Author |
|
sridharb
Joined: 09 Jun 2010 Posts: 16 Location: Chennai, India
|
Posted: Wed 09 Jun '10 21:42 Post subject: Problems with PHP and 2.2.15 |
|
|
Hi,
I upgraded from 2.2.11 to 2.2.15 of Apache.
I had issues with SSL (separate thread).
More importantly, my 5.3.1 version of php stopped working. Now, I see php code displayed as text.
Nothing in the error logs.
Any ideas?
Thanks,
Sridhar |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 10 Jun '10 10:15 Post subject: |
|
|
For your php code I guess you use <? instead of <?php ?
Than you have to short_open_tag =on in your php.ini
Why didn't you upgrade to 5.3.2 ? |
|
Back to top |
|
sridharb
Joined: 09 Jun 2010 Posts: 16 Location: Chennai, India
|
Posted: Thu 10 Jun '10 16:48 Post subject: Apache 2.2.15 and PHP |
|
|
Thanks for responding.
I figured out the problem - while upgrading to 2.2.15, I overwrote the mime.types file which contained the association between files of php extension and what to do with them.
[mime.types was incorrectly typed as magic.types. edited. _sb]
I didn't go to 5.3.2 because there was no eAccelerator available for that yet - at least the one in apachelounge that I use is still for 5.3.1.
Regards,
Sridhar
Last edited by sridharb on Thu 10 Jun '10 18:17; edited 1 time in total |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 10 Jun '10 17:14 Post subject: Re: Apache 2.2.15 and PHP |
|
|
sridharb wrote: | I overwrote the magic.types file which contained the association between files of php extension and what to do with them.
|
I wonder what you did. Don't you define the assosiation in your httpd.conf to the module or fcgi(d) ? |
|
Back to top |
|
sridharb
Joined: 09 Jun 2010 Posts: 16 Location: Chennai, India
|
Posted: Thu 10 Jun '10 18:15 Post subject: |
|
|
I have the lines
application/x-httpd-php php
application/x-httpd-php-source phps
in my mime.types file that were overwritten.
I think this caused the above problem.
Regards,
Sridhar |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 10 Jun '10 22:31 Post subject: |
|
|
I add this to httpd.conf. I wonder, but it seems to work that way.
My usual setup
Code: |
LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php5"
|
Good to know that there is a second way to install it |
|
Back to top |
|