Victor Santos

Registered
Aug 22, 2016
1
0
1
Brazil
cPanel Access Level
Root Administrator
Hello o/ I crack my mind trying solve this problem!

When i try acess Ip/~user/infophp.php i get error : "Not Supported", and i have change the
Apache mod_userdir Tweak on WHM/Cpanel and dont have any change.

After see in this forum one post talking i need change my PHP Handler to suPHP and change public_html to group "user : nobody" i have oher error: "500 Internal Server Error".

I really dont know how i fix this, i need my clients have a temp address :( Any help me pls...

prntscr.com/c96gq3
image.prntscr.com/image/05c4df9d6e6d40b28a664128f8b1f2f4.png
/image.prntscr.com/image/08cec9cf5eab47718e39788796e08586.png
/prntscr.com/c96gq3
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
When i try acess Ip/~user/infophp.php i get error : "Not Supported"
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

After see in this forum one post talking i need change my PHP Handler to suPHP and change public_html to group "user : nobody" i have oher error: "500 Internal Server Error".
The following document provides more information on suPHP, including the recommended file permissions:

PHP Handlers - EasyApache 4 - cPanel Documentation

Let us know the specific entry in /usr/local/apache/logs/error_log when you see the "500" error message on your website after updating the permissions to meet those requirements.

Thank you.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,269
62
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
So, if the production server runs PHP on cgi mode, it will never be able to show temporary URLs using the IP?
Isn't there any workaround to it?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
So, if the production server runs PHP on cgi mode, it will never be able to show temporary URLs using the IP?
Isn't there any workaround to it?
That's correct. It's a change that stems from the following case implemented in cPanel version 58:

[security] Fixed case SEC-142: Code execution as other user accounts through the PHP CGI handler.

Long term, the plan is to replace Apache Mod_Userdir's "website preview" functionality with a more secure solution.

Thank you.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,269
62
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Long term, the plan is to replace Apache Mod_Userdir's "website preview" functionality with a more secure solution.
Long term? How many time would long term be? Users need temporary URLs, specially when it comes to web designers using reseller packages.
Should I open a Feature Request for this?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
Hello @Kent Brockman,

There's no time frame to provide at this time, as it's still in the early phases of discussion. Yes, please open a feature request and let us know the URL once it's approved. I'll make sure it's linked to the existing internal case.

We've also added a new entry to the Apache FAQ document regarding this behavior:

Apache FAQ - Documentation - cPanel Documentation

Thank you.