Updating, recompiling, VirtualHost templates, customizations, php safemode … How to add all of the Include lines into your httpd.conf
Updating, recompiling, VirtualHost templates, customizations, php safemode … How to add all of the Include lines into your httpd.conf
If you want to reinstall DA (./directadmin i) on a live box, your /etc/httpd/conf/httpd.conf file will gets overwritten and emptied of all data. You will need to read all of the Include lines for your users so that their sites show up (you will be seeing the apache pages, or the shared IP pages instead)
Type:
cd /usr/local/directadmin/data/users
for i in `ls`; do { echo “Include /usr/local/directadmin/data/users/$i/httpd.conf” >> /etc/httpd/conf/httpd.conf; }; done;
Note that this add the including lines for *all* users.. so if you have add users to DA after you ran the “./directadmin i”, you will end up with duplicates. Make sure you do not have duplicate Include lines.. (apache won’t restart, it will let you know)
How to disable SSL2.0 in apache
To disable the SSL2.0 protocol (thus forcing 3.0),
for apache 1.3, find the line:
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
and change it to:
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:+eNULL
Please Note the 2 changes: a) remove the # character at the beginning of the line, and b) change +SSLv2 to !SSLv2
For apache 2.x, do the same thing, but instead it will be in the /etc/httpd/conf/ssl.conf file, or for the new apache system, /etc/httpd/conf/extra/httpd-ssl.conf (if you have both files, just change it in both).
mod_ssl: Init: Failes to generate temporary 512 bit RSA private key
This error appears to be show up sometimes when using MySQL 5 with –with-mysql=/usr.
There have been reports for that changing it to –with-mysqli=/usr/bin/mysql_config will fix this, but when I try it, the mysql client api in php was set up to mysql 3, so it wasn’t quite working. I used The solution that was to have them both in the configure.php:
–with-mysql=/usr \
–with-mysqli=/usr/bin/mysql_config \
Then recompile php:
./build clean
./build php n
Then I edited the /etc/httpd/conf/httpd.conf and changed:
Quite possibly, only the changes to the httpd.conf are actually required, but adding the extra functionality of mysqli probably will not hurt any.