mod_userdir getting 404 error
I'm trying to use mod_userdir ......disabled mod_ruid2 etc.....but am now getting a 404 error when going to:
95.444.xx.xx/~siteusername
Why is that?
Also......there is no actual mod_userdir in Easy Apache 4 options list....so how is it enabled?
And last.....the Apache mod_userdir Tweak settings are unclear to me.
Does that just stop bandwidth stats from going to wrong user, or does that actually SET mod_userdir .....and what does the 'exclude' do?
Thanks for any input on this.......
z
-
Hello @Zardiw Can you tell me which php handler you're using? It is a bit difficult to troubleshoot this issue without further information on the configuration. Do you have any errors in the apache error log when attempting to load a site using mod_userdir? Thanks! 0 -
HI @Zardiw I would always recommend modifying your local hosts file over using mod_userdir for this purpose. If you don't know how to do this we have a guide here: If you must use mod_userdir for this purpose can you please go to WHN>>Software>>MultiPHP Manager -> PHP Handlers and tell me what is listed as being used currently? If SuPHP is not being used though you'd like to use it can you please go to WHM>>Software>>EasyApache4 Click customize on your current profile/Currently Installed packages, go to Apache Modules and select suPHP if it's not already selected. Once that's complete you should be able to set suPHP as the default handler for php 5.6. Please let me know if the issue persists once that's done. Thanks! 0 -
HI @Zardiw SO, what exactly do I put in my local HOSTS file so I don't have to use mod_userdir.
You would use the shared IP address of the server - two sites can be directed to the same IP address without issue you'll just add an entry for each, including an entry for the www. domain. Something like the following would work in the event that I had several sites I wanted to test all at the same IP address:192.168.1.95 test.com 192.168.1.95 www.test.com 192.168.1.95 anothertest.com 192.168.1.95 www.anothertest.com 192.168.1.95 3rdtest.com 192.168.1.95 www.3rdtest.com
I've installed suPHP now..........but still getting 404 errors.....
You've installed it but have you set it as the handler?0 -
Hi @Zardiw Wonderful, I'm glad it's working. This is the best way to test the sites prior to changing their DNS. You do not need to use mod_userdir any longer for this purpose. My assumption was that you were most likely using CGI previously. SuPHP works best with mod_userdir. 0 -
Also........mod_ruid2 is incompatiple with mod_suPHP apparently........will see if I can test the php scripts.
This is a known issue they are not compatible. mod_ruid2 is also not compatible with mod_userdir. Enable mod_ruid2 and disable mod_suPHP 2. Enable php56-php so I will be running under DSO, cause that's faster.
You will be able to do both of these - you don't need suPHP if you're not using userdir.How exactly is mod_userdir implemented/removed?
It's enabled/disabled through WHM>>Security Center>>Apache mod_userdir Tweak. This is the only place you can manage this. Thanks!0 -
Hi @Zardiw In the event you want Apache's explanation and information of mod_userdir it can be found here mod_userdir - Apache HTTP Server Version 2.4 Thanks! 0
Please sign in to leave a comment.
Comments
6 comments