How to Update php and apache using Directadmin package ?

nadlerz

Verified User
Joined
Apr 29, 2012
Messages
142
My current version is:

PHP Version 5.2.17
Server version: Apache/2.2.22 (Unix)

Thanks!



Edit, Is it safe and advisable ?
 
You need to change options.conf in /usr/local/directadmin/custombuild/

Once done do:

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

For update apache and php.

Regards
 
You need to change options.conf in /usr/local/directadmin/custombuild/ , to What ?
What part of the file should I change and what should I replace ?
Kindly guide to for what is the best values their, Please..


Thanks !
 
Last edited:
This is What I have their:



Code:
#PHP settings. default_php possible values - 4 or 5, php5_ver - 5.2, 5.3 or 5.4
default_php=5
php5_ver=5.2
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
ioncube=no
zend=no
#Possible values - recommended or dist
php_ini_type=recommended

#Possible values - 5.0, 5.1, 5.5
mysql=5.0
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Possible values - 1.3, 2.0, 2.2 or 2.4
apache_ver=2.2
secure_htaccess=no
harden-symlinks-patch=yes

#Web applications
phpmyadmin=yes
atmail=no
squirrelmail=yes
roundcube=yes
uebimiau=no

#Mail options
exim=no
eximconf=no
clamav=no
mailman=no
spamassassin=no
mail-header-patch=yes
dovecot=yes

#Statistics
awstats=no
webalizer=yes

#FTP options
proftpd=no
pureftpd=no

#Jailed shell (beta)
jail=no

#Autoconf/automake/libtool options
autoconf=yes
automake=yes
libtool=yes
curl=yes

#new version of zlib and libxml2 (experts only)
new_zlib=no

#CustomBuild options
custombuild=1.1
autover=no
bold=yes
clean=yes
clean_old_tarballs=no
clean_old_webapps=yes
downloadserver=files5.directadmin.com
cleanapache=no

#Cron settings
cron=no
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=no

#Cloudlinux settings
cloudlinux=no
 
Code:
cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build set mysql 5.1
./build update
./build clean
./build apache d
./build php d
./build mysql d
 
Last edited:
It depend on what you wanna update.

follow scsi guide and if you wanna update apache to do before ./build apache d

Code:
./build set apache_ver 2.4

Regards
 
Code:
cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build set mysql 5.1
./build update
./build clean
./build apache d
./build php d
./build mysql d

php should be recompiled after mysql upgrade, so if you do it in that order, you should recompile php one more time after mysql upgrade.
 
I only want this to be upgraded to the latest stable version:

Apache
PHP
mysql


What's the correct steps to do?
I'm afraid my server will crashed if I commit errors.
 
Code:
cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build set mysql 5.1
./build set apache_ver 2.4
./build update
./build clean
./build mysql d
./build apache d
./build php d

Also you might need to run
Code:
./build rewrite_confs
after upgrading to Apache 2.4.
 
Last edited:
Again:

Code:
cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build set mysql 5.1
./build set apache_ver 2.4
./build update
./build clean
./build apache d
./build php d
./build mysql d
./build php d

If you are not able to manage errors by yourself (if any) i would highly sugget to ask for a payd server managment or pay someone for this job.

Me, nobaloney, scsi, zeiter and other are avaible to this kind of service.

Regards
 
I have this error:


make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.2'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 18 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

[root@server custombuild]#



Now, my site is offline :(
What should I do ?
 
How to rebuild ?
Done re-installing mod_rui2..
Still error in httpd restart.
 
If someone can assist me via Team Viewer, PLEASE... :(

My Team Viewer ID: 634 440 076

Please,..
 
Last edited:
Yes, of course my mistake, php should be recompiled after apache.

But memcached is not running anymore

That is too ambiguous. You should give us details, error messages, etc. Did you try to re-built it?
 
I'm currently trying to install mysql already:


[root@server custombuild]# ./build set mail-header-patch no
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
Changed mail-header-patch option from yes to no
[root@server custombuild]# ./build mysql d
You cannot install MySQL, because you do not have it set in options.conf file.
[root@server custombuild]#

What should I do in option.conf ?

Figured it out, Upgrading mysql right now...
 
Last edited:
Back
Top