mod_suphp how to get apache portable runtime issue working?
mod_suphp how to get apache portable runtime issue working?
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?
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?
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
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.
Lemonbit Internet Dedicated Server Management
Breun is right...
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
Jordan
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.
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.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
I believe everybody would like something like suPHP to be default on Plesk, but sadly it isn't (yet?).
Lemonbit Internet Dedicated Server Management
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.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.
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
My suphp.conf file looks like thisjdaustin 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?
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
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
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
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
In the atomic-testing repository: http://3es.atomicrocketturtle.com/atomic-testing/art/BDMM wrote:Where are they?
Lemonbit Internet Dedicated Server Management