Difference Between Running PHP Using Fast CGI Or As An Apache Module?

Mar 10, 2008

I have been a web developer using PHP for years now, and my work laptop runs CentOS with PHP5 as an Apache Module. This suits me just fine for development, but now I want to setup a web server that runs PHP 4.4.8 and PHP 5.2.5 and offer hosting to people. I know PHP4 is very old, but I am looking to offer my users the freedom of choice, as there are still third party applications out there that may need to be run on PHP4.

I will want PHP 5 to be the default, and allow PHP 4 to be used if either the file extension is .php4, or they have a line in their .htaccess file. I have seen various tutorials in search engine results saying to run both, I can either do one of the following:

1. Install PHP5 as a module, and run PHP4 using FastCGI
2. Install PHP5 and PHP4 and run both using FastCGI
3. Install PHP4 as a module, and run PHP5 using FastCGI

In the future I will also be looking to support PHP6 once a stable version has been released, though that will probably be optional to begin with and require a line in the .htaccess file too - like PHP4. I will be using Apache 2.2.8 on CentOS 5.1. I am also looking to install Ruby on Rails and Django too, which I think use FastCGI.

What's the difference between running as an Apache Module, or using FastCGI? This will be for a shared hosting environment so performance over lots of connections, stability and security are my concerns. Should I run everything using FastCGI, if not, would the default PHP version be better off installed as an Apache Module?

View 5 Replies


ADVERTISEMENT

Plesk 11.x / Linux :: PHP Support 11.5.30 - Cannot Change Or Choose Running As Apache Module Or CGI Application

Jul 17, 2015

Hosting Settings

There is no php support - so i canĀ“t change or choose running as apache module or cgi application (s. screenshot)...

OS Ubuntu 12.04.5 LTS

Panel version 11.5.30 Update #50, last updated at July 17, 2015 03:46 AM

View 4 Replies View Related

Installed Imagemagick Perl Module But Its Not Running

Apr 15, 2008

I have installed image::magick perl module but its not running error is :--

Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Image/Magick/Magick.so' for module Image::Magick: libMagickCore.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at flickr.pl line 55
Compilation failed in require at flickr.pl line 55.
BEGIN failed--compilation aborted at flickr.pl line 55.

View 4 Replies View Related

PHP As Apache Module Vs. PHP As CGI Module

Nov 20, 2007

What are the advantages/disadvantages of running PHP as Apache module vs. running PHP as CGI module on your server?

View 5 Replies View Related

Apache 2 Difference?

Feb 1, 2008

i have apache verion Server Version: Apache/1.3.37 (Unix)...do you think that i must upgrade to apache 2?is it necessary?i will see an diffrence?

View 7 Replies View Related

Apache Module

Jul 4, 2007

I would like to know is there any module for Apache which can collect information like who is surfing our website and how many pages they have accessed in last one hour. I know awstats or webalizer can do this but i need some thing realtime on apache level.

View 4 Replies View Related

PHP 5.5 As Apache Module

Mar 12, 2015

I found a script that updated php to 5.5, however it's only enabling me to run it as a CGI script, if I want to run PHP an Apache module, it's still only 5.3. How can I upgrade the Apache version?

View 3 Replies View Related

Apache DDoS Module

Mar 8, 2007

What wil be the best way to protect an Apache server from a DDoS attack? Is there an Apache module for this type of problem?

View 14 Replies View Related

PHP As Apache Module Or As FastCGI

Jan 22, 2007

I have a server running Apache 2 with PHP as an Apache module. There are a few php scripts that use lots of cpu when they run and have lots of hits, but Apache is still running fine and pages and php scripts load pretty fast. I was just wondering if running PHP as fastcgi would use less cpu or make php scripts load faster.

View 0 Replies View Related

Apache :: How To Switch From 2.0 Handler To CGI / Fast CGI

Apr 13, 2013

I want to know how to change my server API from Apache 2.0 Handler to CGI fast CGI?

I am using kloxo xontrol panel

View 1 Replies View Related

How To Switch From Apache 2.0 Handler To CGI / Fast CGI

Oct 20, 2012

I want to know how to change my server API from Apache 2.0 Handler to CGI fast CGI?

View 4 Replies View Related

Anti-lecch Apache Module

Jan 19, 2008

i have a dedicated server that i use for stream flv files. In this server i have apache.

Do you know any apache solution for prevent streaming of flv files to others domain name ? I want to stop leeching and permit stream of files only for my domain name. The htaccess solution in my case don't works...

View 3 Replies View Related

Compiling Apache Module Error

Jan 28, 2007

I have recently installed the latest version of apache which is version 2.2.4 and it seems many modules were left out so I decided to add one of my favorite modules myself

I have DirectAdmin install so here is what I did

I edited this file: configure.apache_2
and at the end of the file added --enable-expires

After adding normally we would recompile apache I was doing that and I got this error

Code:
/usr/local/directadmin/customapache/configure.apache_2: line 24: --enable-expires: command not found

*** There was an error while trying to configure Apache 2. Check the configure.apache_2 file

Not sure what I'm doing wrong if someone could help me I would be greatful.

View 2 Replies View Related

Apache :: LDAP Authentication Module

Mar 22, 2015

I have some questions about the LDAP authentication module.I have a LDAP authentication with this config:

<AuthnProviderAlias ldap ldap-account>
AuthLDAPBindDN "CN=directory search,OU=Service-User,DC=company,DC=ch"
AuthLDAPBindPassword "xxxxx"
AuthLDAPURL "ldap://ldap.company.ch/ou=Users,dc=company,dc=ch?sAMAccountName?sub?(objectClass=*)"
</AuthnProviderAlias>

If a User logs in with username only, all works correct. If a user use the DomainUsername format, the login is rejected with "user not found".Should it not work with both login styles ? Or is there a option to reformat or rewrite the username before authentication without the "Domain part ?

View 1 Replies View Related

Enable Apache Module For VPS Migration

Apr 7, 2015

I am trying to migrate a VPS with:

- Plesk 12 (v12.0.18 Update #40) and
- Linux CentOS 6.6 (v2.6.32-504.12.2.el6.x86_64)
to another VPS with:
- Plesk 12 (v12.0.18_build1200140606.15) and
- Linux CentOS 6.6 (v2.6.32-504.12.2.el6.x86_64)

I tried to do the following:

- Tools & Settings / Tools & Resources / Migration & Transfer Manager / Start New Migration
- Data source: Transfer data from another server
- Transfer the following data / Migrate the whole server

Following error/warrning message is recieved then:The following Apache modules are disabled on the destination server: sysenv. Please enable these modules to prevent possible problems.

View 2 Replies View Related

Apache :: 2.4.3 - Difference Between Executing As Service Or As Application

Feb 12, 2013

I installed apache 2.4.3 in windows server 2003. Since i did not get administrator rights in this machine i could not install as a service.

I runned as an application through the command line console and is working fine.

Is there any difference regarding performance when running as a service or as an application?

Is there any other benefit or drawback of running as a service or as an application?

View 2 Replies View Related

Restart Apache (module Php5_module Error)

Apr 13, 2008

I am experiencing this problem right now. None of my website is running. But httpd status says running. What's wrong?

[root@cent cron]# apachectl restart
[Mon Apr 13 20:10:11 2008] [warn] module php5_module is already loaded, skipping

[root@cent cron]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Mon Apr 13 20:10:55 2008] [warn] module php5_module is already loaded, skipping

[root@cent cron]# service httpd status
httpd (pid 24100 24099 24098 24097 24096 24094) is running...

View 13 Replies View Related

Apache :: HTTPS - Generate Certificate And SSL Module

May 26, 2013

How to be able to fix my problem that is related to the https using apache2 (enabling https in apache2) at opensuse:

By the way, my opensuse version is:

openSUSE 12.1 (x86_64)
VERSION = 12.1
CODENAME = Asparagus

1) At the /etc/apache2/vhosts.d/vhost-ssl.conf, and if I do not have a name (as the server will be accessed using its IP address), can I place in the ServerName 192.168.0.5? Do I have to place it 192.168.0.5:443 or it is enough to be 192.168.0.5?

2) Is there a relation between the SSLCipherSuite values and the used method to generate the certificate?

3) I am afraid from the way that I am using to generate the certificate and the ssl module that is coming with apache2 at my machine which has opensuse. How can I select the right way?

Actually I used following commands to generate the .crt, .key and the .csr:

openssl genrsa -des3
openssl req -new -x509
openssl x509 -req

And that was from this link: [URL] .... But did not work with me !

Meanwhile I am placing:

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

4) Do I have to configure the virualhost? Do I have to create files under the directory /etc/apache2/vhosts.d? Because I will have one application to be browsed .. nothing more.

View 2 Replies View Related

Enable Php-fpm Serverwide - Disable Apache Module

Jun 1, 2014

Is there a possibility to enable php-fpm serverwide and to disable running php as apache on the server?

This for both existing subscriptions as for new subscriptions ?

View 6 Replies View Related

Installing Httpd-devel Module On Fedora Updates Apache

Feb 26, 2008

to install mod_evasive module on our Apache2 that runs on Fedora server. However, for that we need Apache's apxs to compile it. We found out that we can do that by running the

yum install httpd-devel
However, when we run that, we get the following:

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
httpd-devel i386 2.2.8-1.fc7 updates 144 k
Updating:
httpd i386 2.2.8-1.fc7 updates 1.0 M
openldap i386 2.3.34-7.fc7 updates 291 k
Installing for dependencies:
apr-devel i386 1.2.8-6 fedora 170 k
apr-util-devel i386 1.2.10-1.fc7 updates 54 k
cyrus-sasl-devel i386 2.1.22-8.fc7 updates 351 k
db4-devel i386 4.5.20-5.fc7 fedora 2.3 M
expat-devel i386 1.95.8-9 fedora 129 k
openldap-devel i386 2.3.34-7.fc7 updates 1.5 M
Updating for dependencies:
httpd-manual i386 2.2.8-1.fc7 updates 821 k
mod_ssl i386 1:2.2.8-1.fc7 updates 85 k
openldap-clients i386 2.3.34-7.fc7 updates 179 k

Transaction Summary
==========================================
Install 7 Package(s)
Update 5 Package(s)
Remove 0 Package(s)

Total download size: 7.0 M
We're kind of cautios, because we have never updated Apache on our live server. We'd prefer if we could download and install just the httpd-devel module. Is this possible?

If not, would this mess up any of our existing configuration? Could we expect any problems? And do we need to shut Apache down, then run the updates and only then restart it?

View 5 Replies View Related

Apache :: CGI Not Running Under 2.4

Jan 23, 2014

I've upgrade Apache to 2.4 and the CGI that worked under 2.2 are not working. Instead of executing the CGI, it just displays them.

View 2 Replies View Related

Apache Is Running, Site Is Down

Oct 28, 2008

All my sites, Cpanel and WHM are down, yet httpd is up and running. Any idea as to how I should go about troubleshooting this issue?

View 11 Replies View Related

Apache :: Running Website On VPS

May 9, 2013

I've installed apache on my windows 2008 vps . It's run and when I browse localhost , it's works fine . But when I enter the vps ip address , it says Chrome could not connect to ... , I'm sure that httpd is running on port 80 (I checked it via netstat -ao and task manage ) ....

View 1 Replies View Related

Apache :: Not Running CGIs

Feb 28, 2013

I'm not an admin, I can't make apache run cgi's, I have followed several documents in different pages without luck, I can run normal html pages but not cgi's. I only get the code displayed in screen.

View 1 Replies View Related

Running Apache On Windows Server

Oct 27, 2008

How stable is Apache for Windows XP Pro?

Can i get the mod_rewrite to work just fine?

Is this a good idea if im no linux buff, or should i just go ISS?

View 8 Replies View Related

How To Keep Number Of Apache Running Processes Down

Mar 30, 2007

I have small issue with load speed of pages when number of apache running processes goes over +-310, during peak traffic of day. IE: They load really slow.

Here's pic of what I mean:

=> [url]

Only thing that fixes it temporarily (at least until peak traffic ends) is to stop either httpd or mysql for several seconds, as everything cools down, then start it back up. Stop/starting mysql usually has longer terms temporary fix.

Anyway, would you have any ideas on what to configure or change within the system in order to keep the processes under 300?

The load is normal. Even at load 40, pages are blistering fast, as long as processes are under 300. So it's got nothing to do with load.

View 8 Replies View Related

Apache Always Fail (when Cpbackup Is Running)

Jul 11, 2007

My server was running a cronjob backup, and my apache always fail

root@b# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
/etc/init.d/httpd restart: httpd started
root@b# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
/etc/init.d/httpd restart: httpd started
root@b# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
/etc/init.d/httpd restart: httpd started

I can only restart them on my CPanel WHM

Attempting to restart httpd
Waiting for httpd to restart.... . . . . . . . . . . finished.

httpd status
root 5805 0.8 0.9 21092 19504 ? S 22:39 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
root 1012 4.0 0.6 23348 13828 ? Ss 22:39 0:00 /usr/local/apache/bin/httpd -DSSL

httpd started ok

root@b# service httpd restart
/etc/init.d/httpd restart: httpd restarted

View 14 Replies View Related

Apache: Httpd Not Running, Trying To Start

Jul 22, 2007

Code:
[root@serwer /]# httpd restart
/usr/sbin/httpd restart: httpd not running, trying to start
/usr/sbin/httpd restart: httpd could not be started

Code:
[root@serwer /]# httpd status
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile [url]

View 14 Replies View Related

Running Lighttpd Along Side Apache

Apr 19, 2007

How do I configure Lighttpd to serve images/javascript/css files that are littered about my websites? Can I just input the paths of all the directories that I want Lighttpd to serve from?

For example, I have 4 separate websites with each having a message board, main page etc... Could I have lighty serve the files from:

/var/www/html/site1/images
/var/www/html/site2/images
/var/www/html/site3/images
/var/www/html/site4/images
/var/www/html/site1/javascript
etc....

and have Apache serve the files from all the other directories?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved