Tag: Apache

Litespeed upgrade 18/08/2009

by admin on Nov.21, 2011, under News

Pelanggan YTH

Hari ini, kami telah melakukan update untuk Litespeed web server yang digunakan pada hosting server kami yaitu vhost 03, vhost 04, vhost 05 dan vhost 06. Adapun kelebihan dari versi terbaru ini adalah :

Version              Release Date      Type
Web Server 4.0.10     08-18-2009     Minor bug fixes and Security enhancements

* Fixed 503 errors and can tolerant PHP crash under certain situation.
* Changed admin console to suEXEC mode, which is more secure and stricter on file permissions.
* Improved PHP build script in admin console.
* Fixed a bug that causes 403 access deny when access file containing symbolic link.
* Fixed a few minor Apache compatibility issues.

Incoming search terms:

how to install litespeed on directadmin
Leave a Comment :, , , , more...

Apache won’t start and there is nothing in the logs

by admin on Sep.25, 2011, under DirectAdmin

Chance are, if apache isn’t starting and isn’t logging anything, the error_log is full preventing apache from starting. To double check that, run:

cd /var/log/httpd
ls -lS | less

If any file is around 2-3 gig (or more), then chances are, that’s the problem.
The solution is to remove the logs, restart apache, and then implement preventative measures.
1)

cd /var/log/httpd/
rm -f error_log
rm -f access_log
rm -f suexec_log
rm -f fpexec_log
/sbin/service httpd restart ("/usr/local/etc/rc.d httpd restart" for FreeBSD)

2) Get logrota to rotate daily

perl -pi -e ‘s/weekly/daily/’ /etc/logrotate.conf
perl -pi -e ‘s/rotate 4/rotate 2/’ /etc/logrotate.conf

If apache still doesn’t start, check /var/log/messages and try recompiling apache.

Incoming search terms:

apache wont start,apache running tidak lama,cpanel apache won\t restart
Leave a Comment :, , , , more...

Apache stops responding but is running

by admin on Sep.23, 2011, under DirectAdmin

A few things that could cause that are:
Possible Causes:
1) MaxClients set to a value too low
2) If you have over about 800 VirtualHost entries (domains, subdomain, ssl, etc.. ), the ErrorLog files open too many file descriptors and apache won’t be able to log the errors and may stop responding. This number can vary per box depending on the limit, and setup of the system. (lower/higher)
Solutions:
1) edit /etc/httpd/conf/httpd.conf and increase the MaxClients setting to something like 200 or 300.
2)

cd /usr/local/directadmin/data/templates
cp virtual_host*.conf custom
cd custom

# remove all the ErrorLog lines (or comment them out) from the 4 virtual_host*.conf files that are in the custom directory.

perl -pi -e ‘s/Error/#Error/’ virtual_host*.conf
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

Apache should be restarted automatically after a few minutes later (rewrite might take a while with over 800 sites).
If that’s not enough to lower the limit and the problem persists, also try commenting out the CustomLog entries:

perl -pi -e ‘s/CustomLog/#CustomLog/’ virtual_host*.conf

and repeat the above echo command to rewrite the httpd.conf files.
3) Other possible information:
Edit /usr/include/bits/typesizes.h and set
#define __FD_SETSIZE 32768
and then recompile with customapache or custombuild.
On FreeBSD, it’s /usr/include/sys/select.h or /usr/include/sys/types.h
Change:
#define FD_SETSIZE 1024U
to
#define FD_SETSIZE 32768U
then recompile apache/php
4) edit /etc/sysctl.conf and add:
fs.file-max = 32768
and run:

/sbin/sysctl -w fs.file-max=32768
/sbin/sysctl -w kern.maxfiles=32768
/sbin/sysctl -w kern.maxfilesperproc=32768

then recompile apache/php
Other possible entires for the sysctl.conf:
kern.maxfiles = 32768
kern.maxfilesperproc = 32768
5) Another way to free up FileDescriptors (FDs) is to disable ssl on any domain that does not require it.
A quck way to check is to type:

ls -la /home/*/domains/*/private_html/index.html

quickly scan the list for any index.html that isn’t betwen 200-300 bytes in size. Any that are not in that range will have been edited and the user is probably using ssl, so take note of those usernames and domains. Now, the quick way to do a mass SSL shutoff for domains is to type:

perl -pi -e ‘s/ssl=ON/ssl=OFF/’ /usr/local/directadmin/data/users/*/domains/*.conf

Then turn ssl=ON back on for any users who need it. Note that this is an end user level setting, so they have the ability to turn it back on themselves via Domain Setup. Then type the action=rewrite&value=httpd command as mentioned in step 2 above.
What this does is reduced the number of FD’s by 50%. Since many people rarely use SSL, disabling it reduceds half of all virtualhosts, since all domains, subdomains, etc.. have 2 virtualhosts each with ssl, and only 1 each without ssl.
6) Openssl bug. Either update openssl and recompile apache, or patch apache 2:
http://issues.apache.org/bugzilla/show_bug.cgi?id=43717


Related error messages:
[error] System: Too many open files in system (errno: 23)
host: isc_socket_create: not enough free resources socket.c:2117: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources

Incoming search terms:

aphache tidak running,directadmin apache 3 not responding
Leave a Comment :, , , , , , more...

Setting up DA with an SSL certificate

by admin on Jul.01, 2011, under DirectAdmin

You can switch DirectAdmin to use SSL instead of plain text. -> https instead of http on port 2222.
Note that this is for the DirectAdmin connection on port 2222, *not* for apache.
If you’re tryting to setup a certificate for your domain through apache, use this guide.
If you do not have your own certificates, you’ll need to create your own:

/usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /usr/local/directadmin/conf/cakey.pem -out /usr/local/directadmin/conf/cacert.pem -days 9999 -nodes

chown diradmin:diradmin /usr/local/directadmin/conf/cakey.pem
chmod 400 /usr/local/directadmin/conf/cakey.pem


This is the old method, use either the one above, or this one. The end result is the same, but takes more steps.

openssl req -new -x509 -keyout /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cacert.pem -days 3653

openssl rsa -in /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cakey.pem

rm -f /usr/local/directadmin/conf/cakey.pem.tmp
chown diradmin:diradmin /usr/local/directadmin/conf/cakey.pem
chmod 400 /usr/local/directadmin/conf/cakey.pem

(Paste these one at a time as the first 2 require user input)


If you already have your own certificate and key, then paste them into the following files:
certificate: /usr/local/directadmin/conf/cacert.pem
key: /usr/local/directadmin/conf/cakey.pem
Edit the /usr/local/directadmin/conf/directadmin.conf and set SSL=1 (default is 0). This tells DA to load the certificate and key and to use an SSL connection. DirectAdmin needs to be restarted after this change.
If you also have a CA Root Certificate, this can be specified by adding:
carootcert=/usr/local/directadmin/conf/carootcert.pem
into the /usr/local/directadmin/conf/directadmin.conf file (won’t exist by default) and by pasting the contents of the caroot cert into that file.
Note, as of 1.30.2, you can set the value of the SSL redirect should a User connect to an https connection with plaintext http.
http://www.directadmin.com/features.php?id=801
As of 1.33.3, you can enable a ssl cipher to force SSLv3, and disable SSLv2:
http://www.directadmin.com/features.php?id=957

Incoming search terms:

apache penerapan certificate ssl,jasa konfigurasi ssl certificate
Leave a Comment :, , , , more...

LiteSpeed Web Server 4.0.5 Released

by admin on Apr.09, 2011, under News

LiteSpeed Technologies, Inc. has released LiteSpeed Web Server 4.0.5.
LiteSpeed Web Server is the leading high-performance, high-scalability web server, featuring Apache interchangeability. When serving static content, LiteSpeed surpasses well-respected content accelerators including thttpd, boa and TUX. When it comes to dynamic content, LiteSpeed is more than 50% faster in PHP content delivery than Apache with mod_php.
This is a minor feature/security enhancement release including improved Apache compatibility, a new hacking shield to actively defend buffer overflow attempts, license management tool in cPanel/WHM plug-in.
Customer using a previous version of LiteSpeed Web Server is recommended to upgrade to this release.

About LiteSpeed Technologies, Inc.

Based in New Jersey, LiteSpeed Technologies is a U.S. company dedicated to software technologies that enable faster Internet content delivery and infrastructure cost reduction for large websites, service providers, and enterprise data centers.
LiteSpeed Web Server, the company’s flagship product, is quickly becoming the industry leader of the web server market in terms of performance, scalability and security.
LiteSpeed Web Server is the only full-featured, optimized web server that is interchangeable with Apache. LiteSpeed Web Server seamlessly integrates with web hosting software including popular control panels.
Version Release Date Type
Web Server 4.0.5 06-26-2009 Minor Feature/Security Enhancements
  • Added support for mod_auth_passthrough to seamlessly integrate with cPanel FrontPage extension.
  • Implemented hacking shield to actively defend hacking attempts of buffer overflow.
  • Fixed a browser compatibility issue by turning off GZIP compression when there is a custom “Content-Encoding” response header added by CGI script.
  • Added license management in cPanel/WHM plug-in.

Incoming search terms:

LiteSpeed Web Server hack,software faster internet 2011
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?