logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


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

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Problems with PHP and 2.2.15
Author
sridharb



Joined: 09 Jun 2010
Posts: 16
Location: Chennai, India

PostPosted: Wed 09 Jun '10 21:42    Post subject: Problems with PHP and 2.2.15 Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 10 Jun '10 10:15    Post subject: Reply with quote

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

PostPosted: Thu 10 Jun '10 16:48    Post subject: Apache 2.2.15 and PHP Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 10 Jun '10 17:14    Post subject: Re: Apache 2.2.15 and PHP Reply with quote

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

PostPosted: Thu 10 Jun '10 18:15    Post subject: Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 10 Jun '10 22:31    Post subject: Reply with quote

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 Smile
Back to top


Reply to topic   Topic: Problems with PHP and 2.2.15 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software