CB2.0 PHP5.5 MOD_RUI2 and OPC

wpw

Verified User
Joined
Sep 9, 2014
Messages
18
Hi guys,
I'm trying to get PHP5.5 MOD_RUI2 and OPC running but without luck, somehow the owner remains Apache.

This is "my method" (please correct me if I'm wrong?)
Thanks a lot for your input!
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

cd /usr/local/directadmin/custombuild
./build update
./build mod_ruid2
./build apache
./build rewrite_confs

#Setup options.conf: Change PHP version to 5.5 Apache to 2.4, and mysql to 5.6 (plus set it to install)

vi options.conf

#now change to the following:
php1_release=5.5
apache_ver=2.4
mysql=5.6
mysql_inst=yes
opcache=yes

#Now do the following:
#this is required if you change options.conf
./build update

#this will display everything that will be updated
./build versions

#this will install everything (but you should do ./build rewrite_confs after.
./build all d
./build rewrite_confs

vi /usr/local/lib/php.ini

#Paste this
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/opcache.so
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

# libcap-devel is required and has to be installed before proceeding with the mod_ruid2 intallation.
yum -y install libcap-devel curl

# Download and build the latest version of mod-ruid2
curl -L http://sourceforge.net/projects/mod-ruid/files/latest/download\?source\=files | tar jx
cd mod_ruid2*
apxs -a -i -l cap -c mod_ruid2.c

# Add “RMode config” and “RUidGid apache access” to the httpd.conf file
sed -i '/Group apache/a \\n# Mod_ruid\nRMode config\nRUidGid apache access' /etc/httpd/conf/httpd.conf

# Add “RUidGid webapps webapps” to the httpd-directories.conf file
sed -i '/<\/IfModule>/a \\tRUidGid webapps webapps' /etc/httpd/conf/extra/httpd-directories.conf

# Change ownership of the /var/www/html directory
chown -R webapps:webapps /var/www/html/

# We need to restart Apache for the changes to take effect
/etc/init.d/httpd configtest
/etc/init.d/httpd restart
 
Last edited:
Hello,

With custombuild 2.x you need to install modruid2 with build script (in /usr/local/directadmin/custombuild/), so you don't need to do anything starting from:

Code:
[COLOR=#333333]# Download and build the latest version of mod-ruid2

in your post.

Make sure to have the latest and default templates for apache and virtual hosts.[/COLOR]
 
Hi Alex,
Thanks for the advice, I'll try without that part. If I'm not mistaking 'm right it's:

./build mod_ruid2
./build apache
./build rewrite_confs
service httpd restart
 
Extensions and modules for apache should be built after apache

Code:
./build update
./build set mod_ruid2 yes
./build apache
./build mod_ruid2
./build rewrite_confs
 
Is it maybe possible to "optimise" my steps as in the first post? I'm absolutely no expert but I've got at least one other VPS coming up to configure and would like to re-use the method.
I would like to run PHP 5.5 with the files used and owned by the group/user and not apache in combination with OPCaching.
I've been researching for days now and the method/configuration as shown seemed like the "best" for my application (multi user, mostly Joomla and CRM installations)

Thanks a lot for your effort and input! :)
 
Extensions and modules for apache should be built after apache

Code:
./build update
./build set mod_ruid2 yes
./build apache
./build mod_ruid2
./build rewrite_confs

Thank you!

ps: is there a way to add OPC into this?
ps2: phpinfo still is: User/Group apache(498)/500 :(
 
Last edited:
Make sure to restart apache, and try this:

Code:
./build php

if after this the issue persists, then you've got probably corrupted/customized templates, apache config files.
 
I've installed the VPS clean and tried, no luck, mod_ruid2 doesn't seem to get installed :(

Should be here but is not...

./build apache
./build autoconf
./build automake
./build awstats
./build clamav
./build curl
./build dovecot
./build exim
./build freetype
./build iconv
./build icu
./build ioncube
./build libjpeg
./build libpng
./build libtool
./build libxml2
./build libxslt
./build m4
./build mailman
./build mcrypt
./build mhash
./build mod_perl
./build mysql
./build pcre
./build php
./build proftpd
./build pureftpd
./build suphp
./build spamassassin
./build webalizer
./build zend
./build zlib
 
Last edited:
Are you sure to run CustomBuild 2.x?

Code:
./build version
?

Excuse me for the late reply, I've updated CB and it worde right away. I figured the latest was pre-installed, shouldn't have done that :(
 
Back
Top