How to Increase PHP Upload Limit on a cPanel Server

By default, PhpMyAdmin in a cPanel server imposes an upload limit of 50MB. So, importing a SQL file larger than 50MB may time out. To increase the default upload limit, just follow these steps. First, log in with SSH and root. Next, search the path of php.ini (generally, it’s located

How to Fix cPanel Error: Sorry the Domain is Already Set Up

If your cPanel account is giving you the error “Sorry the domain is already set up,” it’s probably due to one of two different reasons. On it’s own, this error simply means that the domain in question still exists within the virtualhost in the apache httpd.conf configuration file. In the

Lost the Direct Admin admin password

It will be in /usr/local/directadmin/scripts/setup.txt if you haven’t delete it yet or changed the password. If you have already changed it after install: – To change it from ssh as root you can just type: passwd admin ** note that DA changes quite a few things when the passwords are

Install Direct Admin on FreeBSD

Step 1) Do you meet the system requirements? – Clean OS FreeBSD 4.7, 4.8, 4.9, 4.10, 4.11, 5.0, 5.1, 5.2, 5.2.1, 5.3, 5.4, 6.0, 6.1 – At least one external IP address (NAT/LAN-based systems will NOT work) – SSH installed, gcc installed (these are usually standard with 99% of systems)

Install Direct Admin on Linux systems

Step 1) Do you meet the system requirements? – Clean OS install: Redhat 7.2, 7.3, 8.0, 9.0, Fedora (any version), CentOS (any version). PS :- The setup file for Redhat also works for Fedora and CentOS (any version). – At least one external IP address (NAT/LAN-based systems will NOT work).

Install SSL for Direct Admin

Setup SSL Certificates for Direct Admin: This step is only required if you wish to use DirectAdmin through SSL. You will also have to change set SSL=1 in the directadmin.conf file. ( /home/directadmin/directadmin.conf ) # openssl req -new -x509 -keyout /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cacert.pem # openssl rsa -in /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cakey.pem

Make diskuage, bandwidth and webalizer stats update more frequently

Cron is the tool used to control the update frequency of the stats. You can easily change the frequency by modifying the cron job. Cron file for RedHat: /etc/cron.d/directadmin_cron Cron file for FreeBSD: /etc/crontab Edit the cron file and locate the line that looks like the following: 10 0 *

Downgrade from apache 2 back to apache 1.3

If you need to go back to apache 1.3 after installing apache 2, you’ll need to do the following: 1) Restore the old httpd.conf file: cp -f /etc/httpd/conf/httpd.conf.1.3.backup /etc/httpd/conf/httpd.conf 2) Get DirectAdmin to use the old httpd.conf files for the users. Edit the /usr/local/directadmin/conf/directadmin.conf file and change apache_ver=2.0 to apache_ver=1.3.

Upgrade PHP4 to PHP5 in Direct Admin control panel

SSH to server as root and then perform the following: https://www.directadmin.com/forum/showthread.php?s=&threadid=5663&highlight=php5 * Compile the PHP 5 lib for Apache * – Download php to a temporary directory (https://www.php.net/downloads.php) – cd [the temporary directory] – tar zxvf php-5.0.x.tar.gz – cd php-5.0.x – /usr/local/directadmin/customapache/configure.php ( _ap2 for Apache2) – make – make