Login to your Ubuntu server with root user with your favorite SSH client Lets first update the operating system with all the latest packages with the command sudo apt-get update Let’s first install apache with the command sudo apt-get install apache2 You can see that apache is installed now and
If apache does not start , then please check the error logs with cpanel. The error “semget: No space left on device” shows that that your server has run out of semaphores. To check how many semaphores are being used, login to your server as root and run the following:
Quick Checking Your Apache Version Number If you need to check the Apache version number installed on your server, you can do so in one of a couple ways. In the default configuration, Apache will be set to display its version information on most of you error pages. This means
You can also check and monitor Apache server’s current status on the web page without using log files. Modify httpd.conf file and add the following code into it: ExtendedStatus On <Location /server-status> SetHandler server-status Deny from all Order deny,allow Allow from localhost 192.168,1,56 Allow from .anotherdomain.com </Location> Restart apache service:
Check the current version of apache by running httpd –v Then execute the following commands: cd /usr/local/directadmin/customapache ./build clean ./build update ./build apache_mod_ssl This should update both the configure options and the version of apache to the most recent version. Once the update is completed, restart apache: RedHat:/sbin/service httpd restart
When PHP runs as an Apache module, PHP files work under the Apache user/group known as “nobody”. For example, when a PHP file needs to write to another file or create/remove a file, it does so under the name “nobody”. In order to allow “nobody” to do this, you need
Fire the following command to take a backup of apache on your server: cp -a /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak Above is for Centos users For Ubuntu users ,please refer the following :- sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak
Log in as the root using ssh to your server Type the following commands: # cd /scripts # ./updatenow # ./easyapache Just follow on screen instructions to rebuild Apache for CPanel server under Linux/FreeBSD OSes. Please note that you should see a menu on screen asking you which option you
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.
edit: /usr/local/lib/php.ini Search for ; Maximum allowed size for uploaded files. upload_max_filesize = 2M Change the 2M to whatever new value you want, then restart apache.
An issue with php/apache is causing apache not to start in FreeBSD. It segfaults and core dumps, logged in the /var/log/httpd/error_log. 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 Possibly a mod_perl