November 8

open domain from IP address in cPanel (disable default cPanel page)

copy the file:
cp -pv /var/cpanel/templates/apache2_4/ea4_main.default /var/cpanel/templates/apache2_4/ea4_main.local

then update the skeleton in order to show the site over IP, something like this:
<virtualhost put_main_server_ip_here:80>
ServerName put_main_server_ip_here
DocumentRoot /home/username/public_html
ServerAdmin some@email

<directory "/">
AllowOverride All
</directory>

<ifmodule suphp_module>
suPHP_UserGroup username username
</ifmodule>

</virtualhost>
on file:
nano /var/cpanel/templates/apache2_4/ea4_main.local
rebuild the config and restart Apache:
/scripts/rebuildhttpdconf
service httpd restart


Copyright 2021. All rights reserved.

Posted 8 November 2018 by admin in category "simple memo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.