Page 1 of 1
mod_suphp how to get apache portable runtime issue working?
Posted: Sat Aug 26, 2006 4:06 pm
by jdaustin
I've tried installing mod_suphp a few different ways and always get this error when http starts up:
Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/suphp.conf:
Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: undefined symbol: apr_procattr_error_check_set
I'm running 5.0.4:
http://www.twingeckos.com/phpinfo.php
Any Ideas?
Posted: Sat Aug 26, 2006 4:11 pm
by jdaustin
That should say php 5.0.4 and apache 2.0.40
Posted: Sat Aug 26, 2006 8:01 pm
by breun
Is this on a Plesk box? I've never heard of a succesfull install of suPHP on a machine running Plesk. If you get it working, I'm sure a lot of people are interested.
Breun is right...
Posted: Sun Aug 27, 2006 12:42 am
by jas8522
From what I've heard, you cannot use .htaccess files at the same time as suphp, but if you're not relying on the use of .htaccess, then it's supposed to be possible...
Jordan
Posted: Sun Aug 27, 2006 1:10 am
by jdaustin
Yes it's on a plesk box.
It doesn't work with .htaccess ? How weird. I know that Joomla uses .htaccess to do search engine related url rewriting.
One thing I really hate about the setup that plesk created is that it's very difficult to nail down what people are doing unless they're running CGI scripts. If I have one client doing something malicious using php it's hard to nail down which account did it since it runs as apache.
Posted: Sun Aug 27, 2006 5:35 am
by breun
I believe everybody would like something like suPHP to be default on Plesk, but sadly it isn't (yet?).
Posted: Thu Aug 31, 2006 10:16 pm
by BDMM
breun wrote:Is this on a Plesk box? I've never heard of a succesfull install of suPHP on a machine running Plesk. If you get it working, I'm sure a lot of people are interested.
I have suphp running on plesk 8.0.1 on FC2/php 4 and FC3/php 5. I run it on virtual hosts so it can be switched of on a directory basis. Ie I only use it when uploading files etc so that permissions get set directly. I have had no issues with .htaccess as far as I am aware.
http://forums.sw-soft.com/showthread.ph ... ight=suphp
Since upgrading to the php 5.0.4 though I seem to be getting some issues with swap space. The only difference between the php4 version and php5 version is that the php5 version uses php-cgi.
Does anyone have any ideas how to fix this.
Re: mod_suphp how to get apache portable runtime issue worki
Posted: Thu Aug 31, 2006 10:29 pm
by BDMM
jdaustin wrote:I've tried installing mod_suphp a few different ways and always get this error when http starts up:
Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/suphp.conf:
Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: undefined symbol: apr_procattr_error_check_set
I'm running 5.0.4:
http://www.twingeckos.com/phpinfo.php
Any Ideas?
My suphp.conf file looks like this
LoadModule suphp_module modules/mod_suphp.so
Also did you compile suphp from scratch. I found the dag rpms didn't work for me. And after upgrading to php5 I had to recompile suphp again.
Roo
Posted: Fri Sep 01, 2006 11:58 am
by scott
What about my suphp rpms? I haven't had a chance to test them myself, they're based on the fedora design.
Posted: Fri Sep 01, 2006 7:57 pm
by BDMM
Where are they?
Do they activate suphp server wide or can it be switched on/off for each vhost.
I run it through vhosts which means each site can have its own php.ini file and suphp can be turned on or off through the vhosts.conf file, which also allows suphp to be activated on a directory basis.
In fact it shouldn't be too difficult for swsoft to build it into the plesk control panel.
My suphp files are
/usr/sbin/suphp
/usr/lib/httpd/modules/mod_suphp.so
/etc/httpd/conf.d/suphp.conf - (only contains loadmodule line)
/etc/suphp.conf - (default config file)
/var/log/httpd/suphp_log - (error logs)
/etc/phpvirtual/[domain]/php.ini
I set up a php.ini for each domain I suppose this file could live in the vhost conf directory ie /home/httpd/vhosts/[domain]/conf/php.ini for simplicity and be auto created from a skel file. It would be advisable to activate the open_basedir restriction in each php.ini file
and then vhost.conf
[Directory /home/httpd/vhosts/[domain]/httpdocs]
php_admin_flag engine on
suPHP_Engine On
suPHP_ConfigPath "/etc/phpvirtual/[domain]"
AddHandler x-httpd-php .php
AddHandler x-httpd-php .php .php4 .php3 .phtml
suPHP_AddHandler x-httpd-php
[/Directory]
which basically switches suphp on, and points to the php.ini file.
The AddHandlers could probably be moved to the /etc/httpd/conf.d/suphp.conf but if I recall I had some problems if I left them in that file.
Roo
Posted: Sat Sep 02, 2006 4:01 am
by breun
BDMM wrote:Where are they?
In the atomic-testing repository:
http://3es.atomicrocketturtle.com/atomic-testing/art/
Posted: Sat Sep 02, 2006 1:36 pm
by scott
Im not doing anything plesk-centric with them at this time, these are just backports of the FC4/FC5 mod_suphp packages.