Skip to content

Web Developer Blog

Category: Apache

Check if Apache is Running Prefork or Worker

apachectl -l
Author adminPosted on July 22, 2012Categories ApacheLeave a comment on Check if Apache is Running Prefork or Worker

Check the Number of Concurrent Processes

ps -ef | grep http | wc -l

Author adminPosted on March 27, 2012Categories ApacheLeave a comment on Check the Number of Concurrent Processes

Increase the Maximum Number of Concurrent Access

vim /etc/httpd/conf/httpd.conf

ServerLimit 4000
StartServers 30
MinSpareServers 30
MaxSpareServers 45
MaxClients 4000
MaxRequestsPerChild 4000

Reference: http://tc.itkee.com/sysapp/detail-158c.html

Author adminPosted on March 27, 2012July 22, 2012Categories ApacheLeave a comment on Increase the Maximum Number of Concurrent Access

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80

Problem:
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80

Solution:

netstat -lnp | grep 80
kill -9 process ID

Author adminPosted on March 14, 2012Categories ApacheLeave a comment on Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80

Enable password on Apache by htpasswd

1. Add the following lines to .htaccess

AuthName “NAME”
AuthType Basic
AuthUserFile “/path/.htpasswd”
require valid-user

2. Create htpasswd by this command:

htpasswd -c /path/.htpasswd USERNAME

Author adminPosted on July 16, 2011Categories ApacheLeave a comment on Enable password on Apache by htpasswd

Posts navigation

Previous page Page 1 Page 2

Categories

  • Amazon EC2
  • Apache
  • Apple
  • Bootstrap
  • Browser
  • Campaign Monitor
  • CDN
  • CentOS
  • Chrome
  • Composer
  • Concrete5
  • cPanel
  • CSS
  • Debian Linux
  • DNS
  • Drupal
  • eDM
  • Facebook
  • FirePHP
  • Flash
  • git
  • Gmail
  • Google Apps
  • Google Map
  • Horde
  • Hosting
  • HTML
  • HTML 5
  • Image Optimization
  • iPad
  • Java
  • Javascript
  • jQuery
  • Linux
  • Mac
  • Magento
  • Materials
  • MetaWeblog
  • MODx
  • MySQL
  • Nginx
  • Node.js
  • Payment Gateway
  • Paypal
  • Perl
  • Photoshop
  • PHP
  • Plesk
  • Programming
  • Push Message
  • Putty
  • React Native
  • Security
  • SEO
  • Shopify
  • SSH
  • SSL
  • Sublime Text
  • Tumblr
  • Uncategorized
  • WampServer
  • Web
  • Web Design
  • Windows
  • Wordpress
  • XenServer












Web Developer Blog Proudly powered by WordPress