DocumentRoot

Issues related to compiling apache, php etc.. Updating Apache to the latest version

Issues related to compiling apache, php etc.. Updating Apache to the latest version. You can check the current version of apache by running

 

/usr/sbin/httpd -v

 


CustomBuild – current

If there you’re using a custombuild (as most new boxes are), now run the following

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

 


CustomApache – end-of-life

If there you are using customapache with the 1.3 version of it is to the most recent, now run the following:

cd /usr/local/directadmin/customapache
./build clean
./build update
./build apache_mod_ssl

If there you’re using apache 2.x, use “./build apache_2” instead of apache_mod_ssl.
This should be update both the configure options and the version of it to the most recent version.  Once the update is completing, you will need to restart apache:

RedHat:

/sbin/service httpd restart

FreeBSD:

/usr/local/etc/rc.d/httpd restart

checking how to run the C++ preprocessor… /lib/cpp

If you there encounter the following error message, this would imply that you do not have g++ installed:

 

 

 

 

The make has failed, if you want to try to make again? (y,n):

The gcc-c++ rpm and all it’s dependancies are requiring to resolve the issue.
Some dependancies inclue:
libstdc++-devel
libstdc++

Please run the following command on CentOS/RHEL/CloudLinux systems:

yum -y install gcc-c++

Debian/Ubuntu:

apt-get -y install g++

FreeBSD:

pkg install gcc

 

/usr/include/krb5.h:2606:24: et/com_err.h: No such file or directory

If you receive the this error

/usr/include/krb5.h:2606:24: et/com_err.h: No such file or directory

During compiling, run the following then try again:

yum install e2fsprogs-devel

or

up2date -u e2fsprogs-devel

 


For CentOS 6, this file is provided by:

yum install libcom_err-devel libcom_err

Updating and Compiling Apache and PHP

To update and compile everything, run the following:

 

 

 

Adding custom modules to apache for customapache

If there you want to add any extra modules to apache, they will need to be compile in. Any module that needs to be compile in will have a –with-module type flag which will need to be used.

To add this flag, run the following:

cd /usr/local/directadmin/customapache
vi configure.apache_ssl

#add your –with-module line to the end of the file, where –with-module should be replaced with requiring entry for the module you are installing.

See your module documentation.
# and then make sure the character exists at the end of all lines except the last one.

 

 

 

Then restart apache:
RedHat:

/sbin/service httpd restart

FreeBSD:

/usr/local/etc/rc.d/httpd restart

If there you run into problems, you may also need to recompile php as well:

./build php

Then you should restart apache again.

Leave a Reply

Your email address will not be published. Required fields are marked *