Installing C++ preprocessor in DirectAdmin
If you encounter this error message, this would imply that you do not have g++ installed:
checking whether we are using the GNU C++ compiler… no
checking whether g++ accepts -g… no
checking dependency style of g++… none
checking how to run the C++ preprocessor… /lib/cpp
*** The make has failed, do you want to try to make again? (y,n):
The gcc-c++ rpm and all it’s dependancies are required to resolve the issue.
Some dependancies include:
libstdc++-devel
libstdc++
If you have up2date, simply run:
or
Source include: http://directadmin.com/
If you have an RSA PRIVATE KEY then you would have a password encrypted key.
This will not work with DirectAdmin since it would require someone to type in a password each time apache restarts.
You do not have to start over, you can convert this password protected key into a normal key by typing:
openssl rsa -in /path/to/your/key -out /the/new/key
where you’d replace the bold values with appropriate values.
This will ask you for the password you specified when you created the original key.
It will then create a non-password-protected key that you can use for DA.
Source: http://directadmin.com/
How to downgrade to apache 1.3.33 and php 4.3.11 in DirectAdmin
cd /usr/local/directadmin/customapache
./build clean
perl -pi -e ’s/1.3.34/1.3.33/’ build
perl -pi -e ’s/1.3.34/1.3.33/’ configure.apache_ssl
perl -pi -e ’s/2.8.25/2.8.24/’ build
perl -pi -e ’s/4.4.1/4.3.11/’ build
And then run.
./build update_data
./build all d
Try removing –with-openssl from your configure.php file and recompile php.
cd /usr/local/directadmin/customapache
vi configure.php
#remove –with-openssl from the file, save, exit.
./build clean
./build php n
How to modify the open_basedir setting for one domain in DirectAdmin
To change the open_basedir value when using php in CLI mode (not suPHP), you can do so by going to:
Admin Level -> Custom httpd configuration -> domain.com
In the top text area, insert this one line:
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/|
which is the default value in the templates. Edit the paths in that line to meet your needs.
Source : http://directadmin.com/