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
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: