apache-configuration

  1. T

    how to use dhparam 4096

    Cpanel's default support for secure parameters for Diffie-Hellman key exchange is not optimal, and even considered insufficient by some official organisations. See for example : IT Security Guidelines for Transport Layer Security (TLS) That's why I want to increase them. This is what I've...
  2. H

    Error: apache_php_fpm.lock

    After installing NGINX proxy for cPanel I'm getting this error in "Server Information" under all cPanel accounts: Error: The system failed to create the file “/var/run/chkservd/apache_php_fpm.lock” (as EUID: 1004, EGID: 1005 1005) because of the following error: No such file or directory How...
  3. B

    HTTP/1.0 Connection: keep-alive, but Apache replies with HTTP/1.1 Connection: close?

    Hi, Apache config question here. I'm dealing with an unusual project where I need to interface a WHM v104.0 w/ Apache 2.4 server with an old piece of technology from the early 90's with the simplest HTTP requests possible, so I have a socket on the old computer connected to the WHM server and I...
  4. H

    LiteSpeed is not running. Apache is not running.

    Previously I had bought a litespeed license, then litespeed has expired and is no longer running. My question is, why can't my website be opened, is it because my WHM apache is not active? and how to activate apache?
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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;}' |...
  13. 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...
  14. 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...
  15. R

    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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...