Apache - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/apache/ Dedicated Servers, Private Cloud & Colocation Wed, 17 Jan 2024 14:36:36 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 Steps to resolve the error Apache Error: “semget: No space left on device” https://www.hivelocity.net/kb/steps-to-resolve-the-error-apache-error-semget-no-space-left-on-device/ https://www.hivelocity.net/kb/steps-to-resolve-the-error-apache-error-semget-no-space-left-on-device/#respond Wed, 30 Jan 2013 14:20:55 +0000 https://kb.hivelocity.net/?p=11103 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: ipcs –s Now to bring …

Steps to resolve the error Apache Error: “semget: No space left on device” Read More »

The post Steps to resolve the error Apache Error: “semget: No space left on device” appeared first on Hivelocity Hosting.

]]>
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:

ipcs –s

Now to bring up the Apache service again, one has to clear the semaphores.

And for that execute the following command:

for whatever in `ipcs -s | awk ‘{print $2}’`; do ipcrm -s $whatever; done

Above command may not work with old servers. In that case, you have to do the following :

/sbin/service httpd stop
ipcs -s | grep nobody | gawk ‘{ print $2 }’ | xargs -n 1 ipcrm sem
/sbin/service httpd start

If this is a common issue occurring , you may want to increase the semaphore limits on your hosting server.

You can do that by adding the following to the /etc/sysctl.conf file:

# For increasing the semaphore limits & extend Apache’s uptime:

kernel.msgmni = 512
kernel.sem = 250 128000 32 512

Later on a user can load the new settings into the kernel:

sysctl -p

That’s it

The post Steps to resolve the error Apache Error: “semget: No space left on device” appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/steps-to-resolve-the-error-apache-error-semget-no-space-left-on-device/feed/ 0
How to Check the Apache Version on a Linux Dedicated cPanel Server https://www.hivelocity.net/kb/how-to-check-apache-version-on-a-linux-dedicated-cpanel-server/ https://www.hivelocity.net/kb/how-to-check-apache-version-on-a-linux-dedicated-cpanel-server/#respond Wed, 30 Jan 2013 14:20:00 +0000 https://kb.hivelocity.net/?p=11099 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 the easiest way to check …

How to Check the Apache Version on a Linux Dedicated cPanel Server Read More »

The post How to Check the Apache Version on a Linux Dedicated cPanel Server appeared first on Hivelocity Hosting.

]]>
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 the easiest way to check your version number is to visit a link to a file that does not actually exist, such as: https://domain.com/unknownfile.txt.

If for whatever reason, this does not show you your current Apache version, you can also check using the command line.

 

Checking Your Apache Version Using the Command Line

To check your server’s current version of Apache using the command line, please refer to the following steps:

  1. First, log in to your server as root user.
  2. Next, enter the following command:

    root@mybox [~]# /usr/local/apache/bin/httpd -v

    Or simply:

    root@mybox [~]# httpd -v

    This will return a short response that includes both the current version number as well as the date the binary was built. It should look something like this:

    Server version: Apache/2.2.16 (Unix)
    Server built: Oct 3 2010 11:41:41

And with that, you should now be able to check the installed version of apache on your server.

 

Popular Links

Looking for more information on Apache? Search our Knowledge Base!

Interested in more articles about Operating Systems? Navigate to our Categories page using the bar on the left or check out these popular articles:

Popular tags within this category include: Linux, Windows, Apache, CentOS, Debian, Fedora, RedHat, and more.

Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.

 

The Hivelocity Difference

Seeking a better Dedicated Server solution? In the market for Private Cloud or Colocation services? Check out Hivelocity’s extensive list of products for great deals and offers.

With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.

Unsure which of our services is best for your particular needs? Call or live chat with one of our sales agents today and see the difference Hivelocity can make for you.

The post How to Check the Apache Version on a Linux Dedicated cPanel Server appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-check-apache-version-on-a-linux-dedicated-cpanel-server/feed/ 0
What’s the fix for the error “[Tue Mar 28 04:29:42 2006] [notice] child pid 24546 exit signal File size limit exceeded (25)” https://www.hivelocity.net/kb/whats-the-fix-for-the-error-tue-mar-28-042942-2006-notice-child-pid-24546-exit-signal-file-size-limit-exceeded-25/ https://www.hivelocity.net/kb/whats-the-fix-for-the-error-tue-mar-28-042942-2006-notice-child-pid-24546-exit-signal-file-size-limit-exceeded-25/#respond Wed, 30 Jan 2013 14:12:10 +0000 https://kb.hivelocity.net/?p=11063 If you find the error messages in /etc/httpd/logs/error_log as follows :- [Tue Mar 28 04:29:42 2006] [notice] child pid 24546 exit signal File size limit exceeded (25) This means that you have a log file that is greater than 2GB in size. To fix this run the following : cd /etc/httpd/domlogs du -sh * | …

What’s the fix for the error “[Tue Mar 28 04:29:42 2006] [notice] child pid 24546 exit signal File size limit exceeded (25)” Read More »

The post What’s the fix for the error “[Tue Mar 28 04:29:42 2006] [notice] child pid 24546 exit signal File size limit exceeded (25)” appeared first on Hivelocity Hosting.

]]>
If you find the error messages in /etc/httpd/logs/error_log as follows :-

[Tue Mar 28 04:29:42 2006] [notice] child pid 24546 exit signal File size

limit exceeded (25)

This means that you have a log file that is greater than 2GB in size.

To fix this run the following :

cd /etc/httpd/domlogs
du -sh * | grep [0-9]G

This should show you the file that is causing issues e.g. example.com.log.

To reset it, but loosing the webstats run

cd /etc/httpd/domlogs
rm example.com.log
touch domain.com.log
/etc/init.d/httpd stop
/etc/init.d/httpd start

Do not use just an Apache restart but a full stop/start to make sure it closes all its old files.

The post What’s the fix for the error “[Tue Mar 28 04:29:42 2006] [notice] child pid 24546 exit signal File size limit exceeded (25)” appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/whats-the-fix-for-the-error-tue-mar-28-042942-2006-notice-child-pid-24546-exit-signal-file-size-limit-exceeded-25/feed/ 0
How can you have a page which would show you apache status? https://www.hivelocity.net/kb/how-can-you-have-a-page-which-would-show-you-apache-status/ https://www.hivelocity.net/kb/how-can-you-have-a-page-which-would-show-you-apache-status/#respond Wed, 30 Jan 2013 14:05:59 +0000 https://kb.hivelocity.net/?p=11037 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: /etc/init.d/apache2 restart You will …

How can you have a page which would show you apache status? Read More »

The post How can you have a page which would show you apache status? appeared first on Hivelocity Hosting.

]]>
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:

/etc/init.d/apache2 restart

You will see following parameters in the browser window:-

current date and time CPU usage, total uptime, total access made to web server and total traffic. In the same browser page you could able to see PID, scoreboard which tells you about closing connections, logging connections, client’s IP address,load status, VHost name and the request made for particular pages link.

Now you need to enter following URL in the browser from valid IP address mentioned in the above

code i.e. 192.168.1.56 or from localhost or from browser from anotherdomain.com:

https://your-apache-configured-web-server.com/server-status

This will give you all the details having apache sever status in the browser window.

If you don’t want to specify domain name in the above code then you can make a comment in front

of it by doing:

# Allow from .anotherdomain.com

You can also use following command to get the apache server status automatically after few seconds:

https://your-apache-configured-web-server.com/server-status?refresh=N

where N is a number of seconds to refresh the status web page.

The post How can you have a page which would show you apache status? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-can-you-have-a-page-which-would-show-you-apache-status/feed/ 0
How to update apache to the latest version? https://www.hivelocity.net/kb/how-to-update-apache-to-the-latest-version/ https://www.hivelocity.net/kb/how-to-update-apache-to-the-latest-version/#respond Wed, 30 Jan 2013 14:01:45 +0000 https://kb.hivelocity.net/?p=11027 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 FreeBSD:/usr/local/etc/rc.d/httpd restart

The post How to update apache to the latest version? appeared first on Hivelocity Hosting.

]]>
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

FreeBSD:/usr/local/etc/rc.d/httpd restart

The post How to update apache to the latest version? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-update-apache-to-the-latest-version/feed/ 0
How to backup a copy of apache? https://www.hivelocity.net/kb/how-to-backup-a-copy-of-apache/ https://www.hivelocity.net/kb/how-to-backup-a-copy-of-apache/#respond Wed, 30 Jan 2013 13:45:01 +0000 https://kb.hivelocity.net/?p=10963 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

The post How to backup a copy of apache? appeared first on Hivelocity Hosting.

]]>
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

The post How to backup a copy of apache? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-backup-a-copy-of-apache/feed/ 0
Downgrade from apache 2 back to apache 1.3 https://www.hivelocity.net/kb/how-do-i-downgrade-from-apache-2-back-to-apache-1-3-2/ https://www.hivelocity.net/kb/how-do-i-downgrade-from-apache-2-back-to-apache-1-3-2/#respond Sun, 14 Nov 2010 09:39:53 +0000 https://kb.hivelocity.net/?p=2272 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. Then type echo “action=rewrite&value=ips” >> …

Downgrade from apache 2 back to apache 1.3 Read More »

The post Downgrade from apache 2 back to apache 1.3 appeared first on Hivelocity Hosting.

]]>
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. Then type

echo “action=rewrite&value=ips” >> /usr/local/directadmin/data/task.queue
echo “action=rewrite&value=httpd” >> /usr/local/directadmin/data/task.queue
echo “action=directadmin&value=restart” >> /usr/local/directadmin/data/task.queue

3) Now you can recompile apache 1.3

rm -f /usr/lib/apache/*
cd /usr/local/directadmin/customapache
./build clean
./build all

4) Fix the modules link:

cd /etc/httpd
rm -f modules
ln -s /usr/lib/apache modules

5) Restore the old boot script:
FreeBSD:

cp -f /usr/local/directadmin/customapache/httpd_freebsd /usr/local/etc/rc.d/httpd
chmod 755 /usr/local/etc/rc.d/httpd
/usr/local/etc/rc.d/httpd restart

RedHat:

cp -f /usr/local/directadmin/customapache/httpd /etc/init.d/httpd
chmod 755 /etc/init.d/httpd
/etc/init.d/httpd restart

The post Downgrade from apache 2 back to apache 1.3 appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-do-i-downgrade-from-apache-2-back-to-apache-1-3-2/feed/ 0
Increase the max upload filesize in apache/php https://www.hivelocity.net/kb/how-do-i-increase-the-max-upload-filesize-in-apachephp-2/ https://www.hivelocity.net/kb/how-do-i-increase-the-max-upload-filesize-in-apachephp-2/#respond Sun, 14 Nov 2010 09:39:32 +0000 https://kb.hivelocity.net/?p=2270 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.

The post Increase the max upload filesize in apache/php appeared first on Hivelocity Hosting.

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

The post Increase the max upload filesize in apache/php appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-do-i-increase-the-max-upload-filesize-in-apachephp-2/feed/ 0
Upgrade PHP4 to PHP5 in Direct Admin control panel https://www.hivelocity.net/kb/how-do-i-upgrade-php4-to-php5-in-direct-admin-control-panel-2/ https://www.hivelocity.net/kb/how-do-i-upgrade-php4-to-php5-in-direct-admin-control-panel-2/#respond Sun, 14 Nov 2010 09:35:45 +0000 https://kb.hivelocity.net/?p=2257 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 install * This was the …

Upgrade PHP4 to PHP5 in Direct Admin control panel Read More »

The post Upgrade PHP4 to PHP5 in Direct Admin control panel appeared first on Hivelocity Hosting.

]]>
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 install

* This was the install procedure * (Check if /usr/lib/apache/libphp5.so exists)

You can copy the php-dist.ini to /usr/local/lib/php.ini and edit for Register Globals on etc. (OR JUST USE THE OLD ONE IF YOU DON’T KNOW WHAT TO CHANGE )

* Configure you’re apache (2) *

– vi /etc/httpd/conf/httpd.conf

** On my machine the httpd conf is already altered:

#
# Dynamic Shared Object (DSO) Support
#
LoadModule php4_module /usr/lib/apache/libphp4.so
LoadModule frontpage_module /usr/lib/apache/mod_frontpage.so
LoadModule perl_module /usr/lib/apache/mod_perl.so
LoadModule php5_module /usr/lib/apache/libphp5.so

** QUOTE OUT THE LoadModule php4_module:

#
# Dynamic Shared Object (DSO) Support
#
#LoadModule php4_module /usr/lib/apache/libphp4.so
LoadModule frontpage_module /usr/lib/apache/mod_frontpage.so
LoadModule perl_module /usr/lib/apache/mod_perl.so
LoadModule php5_module /usr/lib/apache/libphp5.so

Restart apache And all should work GREAT!

If it doesn’t work, UNQUOTE the LoadModule php4_module and QUOTE the LoadModule php5_module and restart apache

The post Upgrade PHP4 to PHP5 in Direct Admin control panel appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-do-i-upgrade-php4-to-php5-in-direct-admin-control-panel-2/feed/ 0
Install Servlets https://www.hivelocity.net/kb/install-servlets/ https://www.hivelocity.net/kb/install-servlets/#respond Sun, 14 Nov 2010 08:01:32 +0000 https://kb.hivelocity.net/?p=2170 This function allows you to install Tomcat on a specific hosting account. To access the Account Functions Menu, click on Account Functions, on the main screen of your WebHost Manager interface. Click on Install Servlets. Select the user name or domain name you wish to install servlets for from the scrolling list that appears. Click …

Install Servlets Read More »

The post Install Servlets appeared first on Hivelocity Hosting.

]]>
This function allows you to install Tomcat on a specific hosting account.

  1. To access the Account Functions Menu, click on Account Functions, on the main screen of your WebHost Manager interface.
  2. Click on Install Servlets.
  3. Select the user name or domain name you wish to install servlets for from the scrolling list that appears.
  4. Click on Install to install Tomcat servlets for that domain.
  5. Repeat steps 2 through 4 as necessary.

For more information about Tomcat, please see: Apache Tomcat

The post Install Servlets appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/install-servlets/feed/ 0
Server status (Apache Status) https://www.hivelocity.net/kb/server-status-apache-status/ https://www.hivelocity.net/kb/server-status-apache-status/#respond Sun, 14 Nov 2010 07:55:10 +0000 https://kb.hivelocity.net/?p=2142 Overview This function displays information about Apache. Most of the information is displayed in a table with a key to the symbols used underneath the table.       Steps 1 To access the Server Status Menu, click on Server Status, on the main screen of your WebHost Manager interface. 2 Click on Apache Status. …

Server status (Apache Status) Read More »

The post Server status (Apache Status) appeared first on Hivelocity Hosting.

]]>
Overview

This function displays information about Apache. Most of the information is displayed in a table with a key to the symbols used underneath the table.

 

 

 

Steps

1 To access the Server Status Menu, click on Server Status, on the main screen of your WebHost Manager interface.

2 Click on Apache Status.

3 Valuable information about Apache will be displayed.

The post Server status (Apache Status) appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/server-status-apache-status/feed/ 0