apache-configuration

  1. nisamudeen97

    ScriptSock /etc/apache2/run/cgid_sock does not exist:

    All of a sudden all websites in the server has stopped working and it started showing 503 error. While checking at apache logs I can see the below error. [cgid:error] [pid 3859:tid 139722986870528] (2)No such file or directory: [client 31.210.20.125:50060] AH02833: ScriptSock...
  2. M

    Server side includes not working on .php files

    Due to the CMS framework we are using (OpenCart), we had to go with server side includes (SSI) to load text content on our webpages (which are dynamic PHP). No doubt php_include would be ideal, however the page templates does not allow php for security reasons. At any rate, we are able to get...
  3. P

    Apache Not Loading Websites or Loading Intermittently

    This afternoon my server stopped serving websites or has served them intermittently ever since. I thought it was due to using a Wordpress plugin called Media Cleaner, but after disabling it the problem continued. Then I tried restarting the httpd service which allowed some sites to load before...
  4. M

    Does "CGI Access" for a site not include "ScriptAlias /cgi-bin/ /home/<USER>/public_html/cgi-bin/" anymore in httpd.conf ?

    Hello, we have a client that needs "ScriptAlias /cgi-bin/ /home/<USER>/public_html/cgi-bin/" in httpd.conf It seems to me that "in the past" ticking the "CGI Access" in "Modify an Account" had as consequence of adding this in the VirtualHost / ServerName section of the site in httpd.conf...
  5. R

    How to only allow certain IPs to hit specific HTML pages?

    I am looking for any Apache or CSF method that will allow me to help better lock down my web server. All my public facing pages are *.HTML pages, all my server processing files are labeled .PHP. Meaning only .PHP files should be accessed by HTML files from my own servers. At the moment, all...
  6. Henry Aspden

    Litespeed .htaccess not working

    I have the following folder structure domain.com (/public_html/) sub.domain.com (/public_html/sub/) sub.domain.com/dir1/ (/public_html/sub/dir1/) sub.domain.com/dir1/dir2/ (/public_html/sub/dir1/dir2/) if I put the following in my .htaccess file at any of these directories DirectoryIndex...
  7. J

    Apache runs as "nobody" for non cpanel users... how to change this?

    Hi, CONTEXT 1 : I need apache to run as the cpanel user CONTEXT 2 : I need to do some shell_exec('ssh [email protected]') CONTEXT 3 : Cloudflare Argo tunnel is installed on 1 domain => this domain makes apache run as 'nobody' DETAILS : For all my domains (except 1) : when I do...
  8. B

    Optimising memory used by Apache httpd process

    I am comparing our 2 VPS - one with Centos 6 and the other with Centos 7. I am trying to figure out how to reduce httpd memory consumption on Centos 7. On Centos 6, the memory usage by httpd is something like this: ps aux | grep 'httpd' | grep -v grep | awk '{print $6/1024 " MB\t\t"$11;}' |...
  9. speckados

    Modify first site for shared IP. Catch all subdomain in Web Server

    One customer with dedicated server has a problem. If a customer create a point in his DNS for subdomain to point to server, and my customer has not create already a correspondent subdomain in server, server show first subdomain create on httpd.conf I've tried several ways on older post in this...
  10. O

    SOLVED CNAME not working

    Greetings ... I'm a pretty experienced DNS user but this one has me stumped. I host my own DNS via WHM (I'm authoritative) and use a secondary DNS service. I created a CNAME for wwww.MLDfoundation.org (yes, 4 w's) resolving to MLD.foundation MLD.foundation loads properly but...
  11. Rajeeva Lochana

    Tutorial How to install Apache from Source on Ubuntu before cPanel starts support for it.

    First of all, this is only useful if you want to know more about how programs work, and it might help you if you want to use an OS, which is not supported by cPanel, like for example, Ubuntu is not yet supported by cPanel but, going to be supported in the future, which was mentioned in this blog...
  12. J

    SOLVED SSL input filter read failed solutions

    Hello and Happy Halloween to all! I see a lot of "SSL input filter read failed" in my logs and the suggested solution is to modify the Apache Virtual Hosts with Include Files to ip-based hosts. 1) where is this file located and; 2) is this a good solution (I don't like modifying configuration...
  13. L

    Preferred Method of Changing SSLSessionCache SHMCB cache size

    There is an apache config variable called SSLSessionCache: https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslsessioncache The typical format is: shmcb:/path/to/datafile[(size)] I run a very high-traffic server (~1000 page views / second) and I believe that increasing the SHMCB cache...
  14. manoaratefy

    Apache2 is not logging access

    Good morning, There is no log evolution on /var/log/apache2/access_log and also on "domlogs". I think that there is a bug with Apache and/or with "splitlog" binary. I already tried to disable piped logs on WHM but it not help. Note that this logs entries still logged, but nothing else...
  15. MajorLancelot

    Disable Apache Configuration & DirectoryIndexing

    cPanel has over the years disabled by default WHM features that have become redundant. This is good since it reduces attack surface even in misconfigured servers. With cPanel File Manager, SSH, SFTP, Web Dav, etc, I was wondering why cPanel why the DirectoryIndex is still left enabled by...