Tag: Apache

Apache won’t restart: [crit] (98)Address already in use: make_sock: could not bind to port 8090

by admin on Sep.07, 2009, under DirectAdmin

Note this is an old guide. It was for apache 1.3 with customapache. The current boot script we provide shouldn’t have this issue.
If apache is not completely shutting down, consider trying graceful restarts (see related link below) and also ensure your system is updated such that you don’t have any outdated php scripts on the server.


[crit] (98)Address already in use: make_sock: could not bind to port 8090
or
[crit] (98)Address already in use: make_sock: could not bind to port 443
or
[crit] (98)Address already in use: make_sock: could not bind to port 80
If you see this error in your /var/log/httpd/error_log, it would mean that apache isn’t shutting down completely before trying to restart. This means that the new process won’t be able to bind to the given ports because they’re still being used by the old copy of apache that wasn’t completely shut down.
To solve this, use a different boot script that will wait for all apache processes to stop before starting the new one:

cd /usr/local/directadmin/customapache
rm -f httpd*
./build update

Once you have the new scripts downloaded, you need to install them:
RedHat:

cp httpd /etc/init.d/httpd
chmod 755 /etc/init.d/httpd
chkconfig httpd reset

FreeBSD:

cp httpd_freebsd /usr/local/etc/rc.d/httpd
chmod 755 /usr/local/etc/rc.d/httpd

Incoming search terms:

98)Address already in use: make_sock: could not bind to address [::]:8888,address already in use make_sock could not bind to address 443,(98)address already in use make_sock could not bind to address 80,make_sock: could not bind to address [::]:8888,port 80 and 443 already in use,port 80 or 443 already in use,Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443
Leave a Comment :, , , , , more...

DirectAdmin – Site Statistics

by admin on Jul.27, 2009, under Tutorial

Checking Disk Space and Bandwidth 

To check disk space and bandwidth usage, click on the "Statistics" icon from the main control panel menu.  At the top of the screen you will see these tables:

The numbers in the tables represent megabytes, and approximately 1000 megabytes = 1 gigabyte. 

You are provided with two different disk space / bandwidth measurements.  The first table lists usage by domain and the second table lists total usage.  Total usage is generally higher than domain usage because total usage statistics include factors that are separate from your domain, such as MySQL databases and control panel use.  It is possible to host several domains on one account, so separating domain and total usage is necessary.

Note:  DirectAdmin uses total usage (not domain usage) to determine when quotas have been exceeded.

Accessing System Logs

At the top of the Statistics menu are three text links: "Backed up Apache Logs," "Apache Usage Log," and "Apache Error Log."

Backed up Apache Logs

Clicking the "Backed up Apache Logs" link will bring you to a File Manager screen containing a list of .tar.gz files named by domain/subdomain and month.  For example:

Here we see four backups for the month of April: the subdomains (admin, newsub, and reseller), and the backup for the main domain (Apr-2003.tar.gz).  Backed up Apache logs contain both usage and error data.

Click on the file name of the backup to download it.

Note:

Log files are owned by the server administrator and cannot be deleted.  Log files do not count towards your disk space quota.

Apache Usage and Error Logs

Apache usage and error logs can be viewed directly by clicking on the "Apache Usage Log" or "Apache Error Log" link. 

The raw logs appear in a large text box that looks like this:

The above image is an example of an error log.  Viewing raw logs are a great way to troubleshoot specific problems, such as installing and executing scripts.  Both logs (usage and error) are backed up monthly and archived in /home/domain.com/logs.  Please see the previous section ("Backed up Apache Logs") for more information.

Viewing Account Information

The main Statistics menu provides a great deal of information.  As mentioned above, the first two rows of the table (Bandwidth / Disk Space) provide total usage.  That is, DirectAdmin uses these numbers for quota purposes (and not the numbers in the Domain Statistics table — see first section entitled "Checking Disk Space and Bandwidth").

When your account reaches the maximum bandwidth usage, your site will stop functioning until the first day of the next month.  When your account reaches the maximum disk space usage, you will not be able to upload to your site until some files are deleted.

The information in this table is self-explanatory and will not be discussed in depth.  If you haven’t done so already, please set your current e-mail address in the "Email" field and click "Save."

Webalizer Statistics

In the main Statistics menu, click on the appropriate domain name to launch Webalizer.  Please note that your site must be up for 24 hours and have some log activity before Webalizer statistics will become active.

At the first Webalizer screen, you will see a chart (like the one above) and a list of months in a table below.  Click on the month you want to view.  Webalizer statistics are very detailed and will provide a great deal of information about site traffic, most requested URLs, exit points, location of visitors, and much more.

Incoming search terms:

directadmin Disk space,directadmin bandwidth disc usage is not shown,directadmin bandwidth usage,directadmin overview mail quota,Disk Space directadmin,shared host how much disc space does direct admin use,turn on apache error log directadmin
Leave a Comment :, , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Kontak

Budhi Indah A 31
Cimindi Cimahi 40514
West Java
Indonesia

Phone/SMS :
Info/Bantuan : 62-8158-6270622
Billing/konfirmasi : 62-8888-763551

Self Advertise


My site is worth $7548.2.
How much is yours worth?