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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: how to install Apache 2.4 + PHP 5.5 + FastCgi on RHEL/CentOS
Author
elavarasan



Joined: 26 Sep 2011
Posts: 53

PostPosted: Sat 28 Sep '13 18:51    Post subject: how to install Apache 2.4 + PHP 5.5 + FastCgi on RHEL/CentOS Reply with quote

Friends,

Please advise me that how to install Apache 2.4 with PHP 5.5, FastCgi on RHEL 5.

Currently, I'm running with Apache 2.2.3, PHP 5.3, mod_php. but i have noticed that mod_php is not stable when loading a huge concurrent access (1000 CC), it is eating more memory and CPU.

So I'm planning to setup FastCgi and do some testing to make sure that this is better than mod_php (Apache handler).

Thanks,
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sun 29 Sep '13 2:42    Post subject: Reply with quote

I use mod fcgid instead of mod_fastcgi how I did it can you here http://mariobrandt.de/archives/apache/compling-apache-2-4-on-ubuntu-or-debian-519/

Yes it is debian, but that works on redhat, too. For the PHP I take the distro default binaries. I had no fun compiling PHP too.
Back to top
elavarasan



Joined: 26 Sep 2011
Posts: 53

PostPosted: Mon 30 Sep '13 11:34    Post subject: Reply with quote

Thanks James Bond.,

I have followed your steps and almost completed every steps but at the last step FCGIWrapper /usr/lib/cgi-bin/php5 .php giving error message like Wrapper /usr/local/apache2/cgi-bin/php5 cannot be accessed: (2)No such file or directory .

Then when I check my installed PHP by using which php., it's showing /usr/local/bin location. so I did replace with this as FCGIWrapper /usr/local/bin/php .php .

But still i'm getting as Server API [Apache 2.0 Handler] instead of CGI/FCGI. via phpinfo script

So is there anything am i missed out or need to add anything?

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 01 Oct '13 18:47    Post subject: Reply with quote

That php5 in my tutorial is a symlink to php5-cgi i should correct that. so you may try whereis php5-cgi

Also make sure that you unload / comment out the php module aka apache handler.
Back to top


Reply to topic   Topic: how to install Apache 2.4 + PHP 5.5 + FastCgi on RHEL/CentOS View previous topic :: View next topic
Post new topic   Forum Index -> Apache