options.conf settings

Status
Not open for further replies.

PSD

Verified User
Joined
Apr 12, 2013
Messages
24
Hi hoping somone can advise.

My server hhd went down after 5yrs and the datacentre have added new hhd with clean installs DA centos7 Custombuild 2.0


in options.conf settings are now

PHP:
#PHP Settings
php1_release=5.6
php1_mode=mod_php
php2_release=no
php2_mode=php-fpm

mod_ruid2=yes


I need php5.3 with mod_ruid2 for an old account changing options.conf to this be ok

PHP:
#PHP Settings
php1_release=5.6
php1_mode=mod_php
php2_release=5.3
php2_mode=php-fpm


Not sure of php2_mode=php-fpm works ok with mod_ruid2=yes ?

Is it ok to have a jump in php versions php1_release=5.6 php2_release=5.3

my options.conf would there be any other setting i would need to change??

PHP:
#PHP Settings
php1_release=5.6
php1_mode=mod_php
php2_release=5.3
php2_mode=php-fpm
opcache=no
htscanner=no
php_ini=no
php_timezone=Europe/London
php_ini_type=production
ioncube=no
zend=no
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.6
mariadb=10.0
mysql_inst=no
mysql_backup=yes
mysql_backup_gzip=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=apache
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=yes
userdir_access=yes
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=srv1.web.com
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=no
roundcube=yes
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=no
clamav_exim=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
pureftpd_uploadscan=no
suhosin_php_uploadscan=no

#Mail Settings
exim=no
eximconf=no
eximconf_release=4.5
blockcracking=no
easy_spam_fighter=no
spamd=no
sa_update=daily
dovecot=yes
dovecot_conf=yes
pigeonhole=no

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files2.directadmin.com

#Cronjob Settings
cron=no
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cloudlinux_beta=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=no
new_pcre=no


--------------------------------
would this be correct for the update

PHP:
cd /usr/local/directadmin/custombuild

./build update
./build apache
./build php n
./build php-fpm
./build mod_php
./build mod_ruid2
./build rewrite_confs


thanks for anyhelp...
 
Hello,

I'd suggest that you stick with PHP-FPM for the both PHP versions, and in this case you don't need mod_ruid2 at all. If for any reason you want to use .htaccess to change PHP settings you still can install Apache/PHP-FPM with htscanner addon.

These commands

Code:
cd /usr/local/directadmin/custombuild 
./build update
./build clean
./build apache
./build php
./build rewrite_confs

will be sufficient in most to build any setup of Apache+PHP.
 
Hi there thanks for the info

if i use

php1_release=5.6
php1_mode=php-fpm
php2_release=5.3
php2_mode=php-fpm


do i also need to change mod_ruid2=no

then

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build apache
./build php
./build rewrite_confs

----------------------

would also the PHP Version Selector show for the client select which of the 2
php1_release=5.6
php2_release=5.3

many thanks psd
 
Yes, you need to disable mod_ruid, and yes there should be a PHP selector displayed in Enhanced skin.
 
Hi thanks again....

i can see the selector now and it works fine...changing php versions.
but am still having problems with one site running an old script and am sure its Apache.
error: Unable to resize photos. Please check file/folder permissions, error log [proxy_fcgi:error]

first build
php5.6 mode=mod_php same error log [proxy_fcgi:error]

changed to two versions
php-fpm php 5.3 same error log [proxy_fcgi:error]
php-fpm php 5.6 same error log [proxy_fcgi:error]

running Apache 2.4.27 new hhd with clean installs DA centos7 Custombuild 2.0 7 days ago.

downgrading Apache 2.4.27 to Apache:2.4.16

can i do this way or is it to much of a jump??

cd /usr/local/directadmin/custombuild
echo "apache:2.4.16:" > custom_versions.txt
./build apache

cheers PSD
 
Feel free to change the Apache version per your needs within 2.4.x branch.
 
wow Alex ....changed apache2.4:2.4.16:

then
./build apache

make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.16'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Enabling httpd in systemd...
AH00526: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
Invalid command 'ProtocolsHonorOrder', perhaps misspelled or defined by a module not included in the server configuration



****
AH00526: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
Invalid command 'ProtocolsHonorOrder', perhaps misspelled or defined by a module not included in the server configuration
****
/etc/systemd/system/httpd.service has NOT been installed because of no HAVE_SYSTEMD in the otuput!!
****

Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using 1xx.2xx.232.1xx for your server IP
Restarting apache.
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@svr1 custombuild]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-10-06 12:52:06 BST; 8s ago
Process: 24182 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 24180 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 24180 (code=exited, status=1/FAILURE)

Oct 06 12:52:06 svr1.web.com systemd[1]: Starting The Apache HTTP Server...
Oct 06 12:52:06 svr1.web.com httpd[24180]: AH00526: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpm...conf:
Oct 06 12:52:06 svr1.web.com httpd[24180]: Invalid command 'ProtocolsHonorOrder', perhaps misspelled or define...ation
Oct 06 12:52:06 svr1.web.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 06 12:52:06 svr1.web.com kill[24182]: kill: cannot find process ""
Oct 06 12:52:06 svr1.web.com systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 06 12:52:06 svr1.web.com systemd[1]: Failed to start The Apache HTTP Server.
Oct 06 12:52:06 svr1.web.com systemd[1]: Unit httpd.service entered failed state.
Oct 06 12:52:06 svr1.web.com systemd[1]: httpd.service failed.



output
/etc/httpd/conf/extra/httpd-phpmodules.conf

ProtocolsHonorOrder On
Protocols h2 h2c http/1.1
LoadModule systemd_module /usr/lib/apache/mod_systemd.so
LoadModule mpm_event_module /usr/lib/apache/mod_mpm_event.so

now apache stopped Phil
 
Status
Not open for further replies.
Back
Top