Raz Sofer

Registered
Feb 17, 2017
4
0
1
Israel
cPanel Access Level
Root Administrator
Hello. I bought a VPS server today from OVH with a cPanel license, I managed to configure everything except accessing the website preview (The website is still under development, so I don't have a domain yet.). When I type "http://ip/~username" I get an Error 404.
The website's files does exist in the "public_html" folder.

Oh - and I do have WHM access and SSH as well.
 

Raz Sofer

Registered
Feb 17, 2017
4
0
1
Israel
cPanel Access Level
Root Administrator
Thank you for the quick reply!
When I try to enable the option, I get a warning:
"Web server processes on this system currently run as the user. For security reasons, mod_userdir is disabled in this case. Consequently, no changes you make in this interface will take effect until mod_userdir is enabled. To use mod_userdir, you must disable mod_ruid2 and mpm_itk and recompile EasyApache."
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

The instructions should work unless you are using some type of custom network configuration.

If you'd prefer to use Mod_Userdir, you can disable those modules in the build profile via EasyApache. To run EasyApache, use WHM's EasyApache 4 interface (WHM Home >> Software >> EasyApache 4).

Thank you.
 

Raz Sofer

Registered
Feb 17, 2017
4
0
1
Israel
cPanel Access Level
Root Administrator
Hello,

The instructions should work unless you are using some type of custom network configuration.

If you'd prefer to use Mod_Userdir, you can disable those modules in the build profile via EasyApache. To run EasyApache, use WHM's EasyApache 4 interface (WHM Home >> Software >> EasyApache 4).

Thank you.
Hello Michael.
I have disabled Mod_ruid2, but mpm_itk was already disabled.
The page is not showing an Error 404, but it does say "Not Supported", black title on white background.
I think it's worth to mention that the website use wordpress, if it has any affection on the subject.
 

sktest123

Well-Known Member
Jan 31, 2017
99
6
8
kochin
cPanel Access Level
Root Administrator
Just create a php info page and check whether it's executed , possibly it's php handler issue or mis configuration via Apache.
You can also check whether the php files are exec within command line .
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
I have disabled Mod_ruid2, but mpm_itk was already disabled.
The page is not showing an Error 404, but it does say "Not Supported", black title on white background.
I think it's worth to mention that the website use wordpress, if it has any affection on the subject.
Hello,

The "Not Supported" message will occur when using the "CGI" handler with Apache Mod_Userdir. You will need to use another handler (e.g. suphp) if you want to utilize Apache Mod_Userdir. Documentation on selecting PHP handlers with EasyApache 4 is available at:

Manage PHP Handlers in EasyApache 4 - EasyApache 4 - cPanel Documentation

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
#x.x.x.x ~username where x is IP of remote ovh vps under distribution Cpanel/WHM
Hello,

The entry should use the domain name as opposed to the username. EX:

Code:
1.2.3.4 domain.tld
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,
I did what you said me and ping the IP adresse, unfortunately no new things happened!

When I try to access http://1.2.3.4/~username or do a direct click on IP from, cPanel account information. I still get cpanel 404 not found page?
Adding that line to your hosts file allows you to browse directly to the domain name in your web browser (e.g. domain.tld) rather than using the Mod_Userdir URL.

Thank you.