apache

  1. K

    In Linux or Unix enable apache file and directory indexing

    You can enable apache file and directory indexing by making changes in Apache config file: You can use directory options in Apache configuration file, httpd.conf file is an Apache configuration file. You can add below code in that file or you can also add that code in /etc/apache2/apache2.conf...
  2. K

    How to fix Apache error 408?

    We all know well that, there is a request transformation between the server and client. If the server doesn’t get a request from the client that too, within the mentioned timeframe. You will get Apache error 408 right! We usually term it a timeout error. Yes! Sometimes, the request sent by the...
  3. K

    Fixing the Apache Error: Unable to open logs httpd CentOS

    When managing your Apache server, you may come across this error that reads: Apache Error: Unable to Open Logs It usually occurs when restarting Apache. You can find this error in the /var/log/httpd/error_log file. To fix this error, you can execute this command: echo $ulimi If it returns a...
  4. K

    Steps to backup copy of apache

    You can enter below command to take the backup of your https.conf file. cp -a /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak If you are Ubuntu user then you have to use below command: sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak
  5. K

    Why does Apache keep going down in the Plesk server?

    You would have received an error by saying “server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting” At this time, note clearly - The Apache may get slow in the Plesk server. CentOS: RHEL-based distributions: /var/log/httpd/error_log Debian: Ubunty-based...
  6. K

    Steps to verify Apache module is enabled or not

    Cpanel provides various modules for Apache when Server node profile is enabled. You can check if module is installed or not on server then you can check this example: You can check if mod_rewrite is enabled or not on server and for that you can run below command: # httpd -M |grep rewrite...
  7. K

    Create a Page that Shows Apache Status

    To check the current status of an Apache server, you’d usually use the log files. But there’s another way of checking the same. You can create a web page that’d display the status. You can visit this page and see if the Apache server is working as intended. First, you need to add codes to the...
  8. K

    Apache not listening to particular IP address! Why?

    Normally Apache listening to all the IP address but if you are getting issue for any particular IP address then you can check the issue with below steps: Login to WHM. Go to Configuration » Apache Configuration » Reserved IPs Editor Here if you will find check with IP address then you have to...
  9. K

    Steps to modify Apache LogFormat

    You have to follow few simple steps to modify Apache LogFormat. For that it is must to have access of WHM panel. Login to WHM. Navigate to “Service Configuration » Apache Configuration » Global Configuration” You can make changes here, but make sure your changes should meet the Apache format...
  10. K

    Complete Guide to Virtual Hosting with Apache

    Virtual hosting allows you to host multiple websites or domains without having the need to create separate services for every domain. With this approach, you can manage your resources easily and efficiently. If you’ve been using Apache web server, you can set up three types of virtual hosts...
  11. K

    Steps to force restart Apache service

    If you are unable to restart Apache and continuously getting below error: Address already in use: make_sock: could not bind to port 80 Then you can run below command first and then try to restart Apache service: killall -9 httpd Now restart your Apache service: Service httpd restart
  12. K

    Steps to enable piped logging in Apache

    Piped logging means the number of open files Apache needs, if you want to reduce numberofopen filesthen you have to enable this option. Forthat you canfollow below steps: Login to WHM. Go to Apache Configuration under Service Configuration. Clink on “Piped Log Configuration” You will find...
  13. K

    How can we restart Apache via SSH?

    If you are server admin and need to restart Apache then you can check below steps: Login to your server via Putty. Now you will see the fields to enter Hostname and Port number. In hostname field you can either enter IP address or Hostname of server. Now you will see new windows where you have...
  14. K

    How to increase number of connections in Apache?

    To check number of connections, it is must to have root access of server. You can follow below steps to check number of connections: Login to WHM. Here click on “Apache configuration” under “Service configuration”. Now click on “Global configuration”. You can check these values Server Limit and...
  15. K

    Steps to change Apache port number

    Secure port for connecting Apache webserver is 443. If you want to change default Apache port from 80 then you can follow below steps: Login to your server with root access. You cannot perform this operation without root access. Now we have to update Apache configuration file which is...
  16. K

    Error: No matching DirectoryIndex in Apache

    By default Apache looks for index.html file not an index.html file, when it will not get it then you will get below error: AH01276: Cannot serve directory /usr/share/phpMyAdmin/: No matching DirectoryIndex (index.html) found. In apache configuration file you will find below line, <IfModule...
  17. bhawanisingh

    How to Restart apache in mac OS ?

    Are you using mac OS? If you are using Mac OS and you need to restart Apache (httpd) service on Mac OS then you have to enter commands. To restart Apache first you need to login as root user and open the ssh on server. After that you have to enter following commands in shell. To start Apache...
  18. bhawanisingh

    What Is APC (Alternative PHP Cache)?

    What Is APC? “APC” Stands for Alternative PHP Cache. The basic use of APC in your server is to speed up the interface of the website you own. When it's about PHP we all know that the basic need of PHP is to perform Dynamic Server Side Executions and Provide speed to the generation of results...
Top