There are some important paths such as public_html, httpdocs, httpsdocs, cgi-bin and access logs folders you need to remember all the time especially when you setup websites on Linux server.
I’ve just purchased a new Virtual Dedicated Server located in the US at Godaddy because my old dedicated server at iweb located in Canada but over 20% of my visitors are come from US and I also want to reduce monthly cost a bit.
I’m moving all my websites to the VPS and have to search html/https document, cgi-bin and http logs folder so many times. Therefore, I collect these common paths for further use and would to share to my readers.
1. cPanel
+ HTTP Document Folder:
/home/<username>/public_html/ |
+ HTTPS Document Folder:
/home/<username>/public_html/ |
+ CGI-BIN Folder:
/home/<username>/public_html/cgi-bin/ |
+ HTTP Access Logs And Error Logs:
/usr/local/apache/domlogs/ |
2. Plesk
+ HTTP Document Folder:
/var/www/vhosts/<domain>/httpdocs/ |
+ HTTPS Document Folder:
/var/www/vhosts/<domain>/httpsdocs/ |
+ CGI-BIN Folder:
/var/www/vhosts/<domain>/cgi-bin/ |
+ HTTP Access Logs And Error Logs:
/var/www/vhosts/<domain>/statistics/logs/ |
3. Virtualmin
+ HTTP Document Folder:
/home/username/public_html |
+ HTTPS Document Folder:
/home/username/public_html |
+ CGI-BIN Folder:
/home/username/cgi-bin |
+ HTTP Access Logs And Error Logs:
/home/username/logs |
Below are from Godaddy Support – Critical Paths:
perl
/usr/bin/perl |
php
/usr/bin/php |
sendmail
/usr/sbin/sendmail |
4. Simple Control Panel
HTTP Document Root
/home/<username>/public_html/ |
HTTPS Document Root
/home/<username>/public_html/ |
CGI-BIN
/home/<username>/public_html/cgi-bin/ |
HTTP Logs
/var/log/httpd/ |
5. No control panel
HTTP Document Root
/etc/httpd/htdocs/ |
HTTPS Document Root
/etc/httpd/htdocs/ |
CGI-BIN
/etc/httpd/cgi-bin/ |
HTTP Logs
/etc/httpd/logs/ |
Note: some paths are common across servers, while others differ between control panels and versions.