Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 16th May 2007, 15:34
h2o h2o is offline
Junior Member
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
Default

Thanks for this great howto! Really!

I was myself trying to compile the patched suexec on a debian/etch and I encourted the same compilation errors reported above by mtuser. Actually, it is just enough to "./configure" before building suexec.

So, I suggest the following mods to be applyed to the howto;

apt-get install apache2.2-common apache2-threaded-dev apache2-mpm-worker
mkdir /root/install
cd /root/install
apt-get source apache2.2-common
cd apache2-2.2.3/
debian/rules
./configure
cd support
vi suexec.c
make suexec

and voil.

Hope that helps.

Regards,
--
h2o
Reply With Quote
The Following 2 Users Say Thank You to h2o For This Useful Post:
meemu (16th May 2007), mtuser (17th May 2007)
Sponsored Links
  #12  
Old 17th May 2007, 08:04
mtuser mtuser is offline
Member
 
Join Date: Jan 2006
Location: Bangkok
Posts: 40
Thanks: 19
Thanked 4 Times in 4 Posts
Send a message via ICQ to mtuser Send a message via Yahoo to mtuser Send a message via Skype™ to mtuser
Default

Thank you I'll try
__________________
ispconfig v3 site test.
Reply With Quote
  #13  
Old 21st May 2007, 06:14
mtuser mtuser is offline
Member
 
Join Date: Jan 2006
Location: Bangkok
Posts: 40
Thanks: 19
Thanked 4 Times in 4 Posts
Send a message via ICQ to mtuser Send a message via Yahoo to mtuser Send a message via Skype™ to mtuser
Default

Apache can not start
Quote:
#/etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 21 of /etc/apache2/mods-enabled/fastcgi.conf:
Invalid command 'Action', perhaps misspelled or defined by a module not included in the server configuration
failed!
line 21:
Quote:
Action php-fastcgi /php-fastcgi/php-fcgi-starter
__________________
ispconfig v3 site test.

Last edited by mtuser; 21st May 2007 at 14:02.
Reply With Quote
  #14  
Old 21st May 2007, 15:39
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default

Try enabling the actions module in apache2

Code:
a2enmod actions
Reply With Quote
  #15  
Old 22nd May 2007, 07:54
mtuser mtuser is offline
Member
 
Join Date: Jan 2006
Location: Bangkok
Posts: 40
Thanks: 19
Thanked 4 Times in 4 Posts
Send a message via ICQ to mtuser Send a message via Yahoo to mtuser Send a message via Skype™ to mtuser
Default

php can not be run
http://myweb.com/phpinfo.php

500 error - Internal Server Error!

web error.log
Quote:
[Tue May 22 08:16:38 2007] [error] [client 192.168.10.22] FastCGI: comm with (dynamic) server "/var/www/php-fastcgi$
[Tue May 22 08:16:38 2007] [error] [client 192.168.10.22] FastCGI: incomplete headers (0 bytes) received from serve$
Apache2/error.log
Quote:
srv01:/# tail -f /var/log/apache2/error.log
[Tue May 22 12:50:35 2007] [warn] FastCGI: (dynamic) server "/var/www/php-fastcgi/web1/php-fcgi-starter" (uid 10001, gid 10001) restarted (pid 7543)
[Tue May 22 12:50:35 2007] [warn] FastCGI: (dynamic) server "/var/www/php-fastcgi/web1/php-fcgi-starter" (pid 7543) terminated by calling exit with status '1'
[Tue May 22 12:50:35 2007] [warn] FastCGI: (dynamic) server "/var/www/php-fastcgi/web1/php-fcgi-starter" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
hmm it may be too hard for me. nothing done.
give up.
Thank you I need to learn more.
__________________
ispconfig v3 site test.

Last edited by mtuser; 22nd May 2007 at 08:11.
Reply With Quote
  #16  
Old 22nd May 2007, 12:03
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default

can you post the content of /var/www/php-fastcgi/web1/php-fcgi-starter ?
Reply With Quote
  #17  
Old 23rd May 2007, 19:18
mtuser mtuser is offline
Member
 
Join Date: Jan 2006
Location: Bangkok
Posts: 40
Thanks: 19
Thanked 4 Times in 4 Posts
Send a message via ICQ to mtuser Send a message via Yahoo to mtuser Send a message via Skype™ to mtuser
Default

I'm sorry. I can't. I just changed it to suPHP.
__________________
ispconfig v3 site test.
Reply With Quote
  #18  
Old 30th July 2007, 12:41
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
Default per directory settings support

One thing I noticed about this solution is that you lose the comfort of per directory php settings.
So today I had a look around and found this:

http://trac.lighttpd.net/trac/wiki/HowToPhpHtaccess

It allows for parsing .htaccess files with php settings into directories and parses them for php-cgi. The only thing that it's really missing for a complete replacement of all php module features is a place where to define settings a user cannot override. This one, though, prevents users from overwriting open_basedir and safe_mode stuff (if safe_mode is set).
Reply With Quote
  #19  
Old 31st July 2007, 11:19
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by meemu
...


Change accordingly, Line 567 (first and last line of this snippet).
Code:
/* no file owner check
    if ((uid != dir_info.st_uid) ||
        (gid != dir_info.st_gid) ||
 
 
        (uid != prg_info.st_uid) ||
        (gid != prg_info.st_gid)) {
        log_err("target uid/gid (%ld/%ld) mismatch "
                "with directory (%ld/%ld) or program (%ld/%ld)\n",
                uid, gid,
                dir_info.st_uid, dir_info.st_gid,
                prg_info.st_uid, prg_info.st_gid);
        exit(120);
    }
  */

...
Now patch ISPConfig to use php-fastcgi instead of the php module and create the starter in the right place. This patch also changes the default permissions of new web sites to 750 and adds www-data to every group created by ISPConfig.
Why do you patch sussec, does'nt it work like for apache2 from its default?

Why do you adds www-data to every group created by ISPConfig?

I'm using apache2.0 together with php-fast-cgi and sussec on sarge3.1 but there was no need to cange something like you told. Is all this different with etch?

Last edited by tom; 31st July 2007 at 11:35.
Reply With Quote
  #20  
Old 6th October 2007, 12:43
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
 
Default

Would be cool to know against which version of /root/ispconfig/scripts/lib/config.lib.php this diff was taken like with diff -u or so (includes context)
From the date of your post I would think
ISPConfig-2.2.12 (2007-04-17 00:18)
which I'm going to try now...

Last edited by jmroth; 6th October 2007 at 12:45.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fastcgi and php with ispconfig tosser Installation/Configuration 14 18th January 2009 13:41
Cron - PHP: Call to undefined function: gzinflate() safoo Server Operation 12 26th January 2007 17:49
fastCGI and PHP just wont work! meridianblade Server Operation 13 9th January 2007 18:30
fastcgi and php with ispconfig tosser Tips/Tricks/Mods 3 25th June 2006 21:01


All times are GMT +2. The time now is 17:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.