Apache httpd 2.4.1 Released

Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_suphp.so into server: /usr/lib/apache/mod_suphp.so: undefined symbol: ap_log_rerror
sam problem. Have you fix? I've centos 6.3
 
hi,
My production server is down because I build apache 2.4.
Few days ago, I install suPHP and mod_ruid2.
After build apache the server is down.

PHP 5.4.7 Installed.
Rewriting all users httpd.conf files, please wait...
Debug mode. Level 10

dataskq: command: action=rewrite&value=httpd
Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_ruid2.so into server: /usr/lib/apache/mod_ruid2.so: undefined symbol: unixd_config

Please help me.

thanks
 
thank SeLLeRoNe for your quick reply.
I tried to rebuild mod_ruid2 but no luck.
Now I have upgraded to CustomBuild 2 and rebuilding all.
Hope the problem can be solved.

edited:
My problem has been solved.
Thank for your support!
 
Last edited:
I got it to work. How to:
Code:
wget -O mod_ruid2-0.9.4.tar.bz2"http://downloads.sourceforge.net/project/mod-ruid/mod_ruid2/mod_ruid2-0.9.4.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmod-ruid%2Ffiles%2Fmod_ruid2%2F&ts=1330166943&use_mirror=kent"
tar xjf mod_ruid2-0.9.4.tar.bz2
cd mod_ruid2-0.9.4
perl -pi -e 's/unixd_config/ap_unixd_config/' mod_ruid2.c
perl -pi -e 's/#include "mpm_common.h"/#include "mpm_common.h"\n#include "unixd.h"/' mod_ruid2.c
apxs -a -i -l cap -c mod_ruid2.c

That's it!

Hi,

Try to install mod_ruid2 using your way, but still got error:

[root@mars mod_ruid2-0.9.7]# apxs -a -i -l cap -c mod_ruid2.c
/var/www/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -c -o mod_ruid2.lo mod_ruid2.c && touch mod_ruid2.slo
In file included from /usr/include/sys/capability.h:34,
from mod_ruid2.c:53:
/usr/include/linux/capability.h:70: error: expected specifier-qualifier-list before â__le32â
apxs:Error: Command failed with rc=65536
.
Thank you in advance.
 
Why not? All versions of CB support that for about a few months.

Please explain. Are you saying that in CB you can run both suphp and mod_ruid2 at the same time on the very same and only one php version?
 
I suppose we should wait for a definitive response from smtalk, but my bet would be that we cannot, as they are both apache modules which implement php through apache.

Jeff
 
Please explain. Are you saying that in CB you can run both suphp and mod_ruid2 at the same time on the very same and only one php version?

Yes, you can run mod_ruid2 and suPHP (or even PHP-FPM) at the same time. I made mod_ruid2 compatible with suPHP about a few months ago, together with some other patches for it (sadly, suPHP is not actively developed anymore, so patches like apache 2.4 support was a must, so I created some other patches at the same time).
 
Yes, you can run mod_ruid2 and suPHP (or even PHP-FPM) at the same time. I made mod_ruid2 compatible with suPHP about a few months ago, together with some other patches for it (sadly, suPHP is not actively developed anymore, so patches like apache 2.4 support was a must, so I created some other patches at the same time).

Why would anyone run both suphp and mod_ruid2 at the same time?

How would you do it, would you run suphp/mod_ruid2 as cgi or cli? Because with suphp it is needed to run php as cgi, but with mod_ruid2 you can run php as cli. SO WHAT IS IT, THEN?

I am running custombuild 2.0 and suphp and php as cgi. I was planning to upgrade to custombuild 2.0 and run mod_ruid2 and php as cli. Is that still possible?

This is really confusing to me, your answer does not make any sense to me. Please make clear what you are saying!
 
Why would anyone run both suphp and mod_ruid2 at the same time?
suPHP is a tool for executing PHP scripts. mod_ruid2 is a suexec module for apache. It's a question like "why would anyone need PHP if they run apache". With mod_ruid2 everything what is executed in virtualhost (html, CGI files etc.) runs with user rights. You can check the README file od mod_ruid2 and you will find nothing about PHP. With suPHP you get PHP scripts (only) executed with user rights.

How would you do it, would you run suphp/mod_ruid2 as cgi or cli? Because with suphp it is needed to run php as cgi, but with mod_ruid2 you can run php as cli. SO WHAT IS IT, THEN?
I think I aleady answered this. You install mod_ruid2, it's a module of apache. Then you can choose any mode (handler) for PHP. mod_php is probably the most effective/fastest method with mod_ruid2, but it doesn't mean that other handler cannot be chosen. If you like the additional features of PHP-FPM, and mod_ruid2 is a must for you, you can run them together with no problems. Some like to have mod_ruid2 installed on the system and php1_mode set to mod_php, php2_mode set to suphp. This way they get PHP scripts executed under a username of the user with both setups of PHP.

I am running custombuild 2.0 and suphp and php as cgi. I was planning to upgrade to custombuild 2.0 and run mod_ruid2 and php as cli. Is that still possible?

This is really confusing to me, your answer does not make any sense to me. Please make clear what you are saying!
Sorry, but I don't understand the question. Are you sure you are running custombuild 2.0? If yes, then no upgrade is needed. If it is a lower version (1.1 or 1.2), then there are no problems to upgrade to 2.0 and have php1_mode=mod_php and mod_ruid2=yes set. I hope that I got your questions answered. If not, don't hesitate to ask anything. Thanks.
 
[..]Sorry, but I don't understand the question. Are you sure you are running custombuild 2.0? If yes, then no upgrade is needed. If it is a lower version (1.1 or 1.2), then there are no problems to upgrade to 2.0 and have php1_mode=mod_php and mod_ruid2=yes set. I hope that I got your questions answered. If not, don't hesitate to ask anything. Thanks.

I am not running custombuild 2.0 yet, I made a mistake in writing that in the reply. Thank you for the explanation, it is a little more clear to me now. But still a bit confused, and I will try to investigate more.

I am only running one php version, and do not want to run several, but only to run one php version.

I am running custombuild 1.2 with apache 2.4.3, mysql 5.5.28, and php 5.4.9 and running suphp and php as cgi. My plan now is to upgrade to custombuild 2.0 without changing my current setup of suphp and php as cgi. I need to figure out how the settings in custombuild 2.0 should be for suphp running php as cgi (with no other php versions, only one), then I will upgrade to custombuild 2.0. Then when I have finished the upgrade to custombuild 2.0, I will let some time go by to discover and fix possible problems - after that I want to convert from suphp and php as cgi, to use mod_ruid2 and php as cli. That is the plan. And when I convert, I do not want to keep suphp, but only run mod_ruid2.
 
Last edited:
Back
Top