![]() |
fastcgi and php with ispconfig
Howtos about fastcgi and php that are used or consulted:
http://www.debianhowto.de/de/howtos/...ache2_php-fcgi http://www.syscp.de/wiki/contrib/PHP-FCGI-ger Apache2 Install In the first step you install apache2-mpm-worker Code:
apt-get install apache2-common apache2-mpm-worker apache2-threaded-devCode:
/etc/init.d/apache2 restartBuild Suexec then you load the apache sources to compile a new suexec for fastcgi Code:
cd /rootCode:
#define AP_HTTPD_USER "www"Code:
#define AP_HTTPD_USER "www-data"Code:
#define AP_LOG_EXEC DEFAULT_EXP_LOGFILEDIR "/suexec_log" /* Need me? */Code:
#define AP_LOG_EXEC "/var/log/apache2/suexec.log" /* Need me? */Code:
#define AP_DOC_ROOT DEFAULT_EXP_HTDOCSDIRCode:
#define AP_DOC_ROOT "/var/www"Code:
vi suexec.cCode:
/* no file owner checkYou need the apache2-header-files to compile suexec Code:
cp -p /usr/include/apache2/* .Code:
make suexecCode:
ls -l suexecCode:
cp suexec /usr/lib/apache2/suexec-fcgiCompile PHP (next step you can install by debian packages without compiling) Code:
$ cdCode:
apt-get install libmysqlclient14-dev libxml2-devif any packages missed use Code:
apt-cache search "MISSED"Inofficial Debain Packages for PHP5: Code:
echo "deb http://people.debian.org/~dexter php5.1 sarge" >> /etc/apt/sources.listlibapache2-mod-fastgi: you musst edit the "/etc/apt/source.list" and include the non-free sector. It show like that: Quote:
Code:
apt-get updateCode:
vi /etc/apache2/mods-available/fastcgi.confQuote:
----------------------------------------------------------------------- now you must install ispconfig, if you didn't have it or you modify it by own ----------------------------------------------------------------------- fast-cgi start script You need a fast-cgi starter for all web hosts: Code:
cd /root/ispconfig/standard_cgisQuote:
Quote:
----------------------------------------------------------------------- ispconfig copy this to /var/www/web*/ if you activate the standard_cgis, it a way to use fastcgi, but certainly not the optimal with ispconfig! ------------------------------------------------------------------------ modify ISPConfig you must edit the vhost.conf.master Code:
vi /root/ispconfig/isp/conf/vhost.conf.masterQuote:
----------------------------------------------------------------------------- It's a simple way for fastcgi, php and ispconfig. But i searched a way without edit ispconfig files because updates of ispconfig. I'm pleased to get feedback and better solutions ;) and I hope that fastcgi find a way into the default installation of ispconfig :) |
Hi,
thanks for the ISPCOnfig FastCGI howto. We will integrate PHP FastCGI support in one of the next dev releases. |
I have update the howto, with a better solution.
so you can can activate or disable it with the php button. Link to the current howto with the patchfile |
The current version of tosser's tutorial can be found here: http://www.howtoforge.com/forums/showthread.php?t=4606
I close this thread (so that tosser does not need to update two threads); if you need the current version of the tutorial or have questions, please go to the other thread. :) |
| All times are GMT +2. The time now is 08:29. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.