Archive for the 'DirectAdmin Support' Category

SBDavid

How to disable SSL2.0 in apache

To disable the SSL2.0 protocol and 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

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).

Source : http://directadmin.com/

SBDavid

semget: No space left on device

semget: No space left on device

This relates to semaphores on your system (you’ve run out). Run the following to clear them out:

ipcs | grep apache | awk ‘{print $2}’ > sem.txt

And then run the following.

for i in `cat sem.txt`; do { ipcrm -s $i; }; done;
SBDavid

Increasing PHP Allowed memory size

Some times we get the following errors Fatal error: Allowed memory size of 123456 bytes exhausted

Php is setup is to limit memory usage per process. If we require more, this limit can be increased.

Edit

/usr/local/lib/php.ini

and set:

memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

to a higher value, like 20M. Save, exit, then restart apache.

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

« Prev - Next »