Apache mod_userdir not working
Hi
I have just moved over from Plesk to cPanel so I may be a little green here so any help greatly appreciated.
I have gone into WHM under Security Center-->Apache mod_userdir Tweak and Enabled mod_userdir Protection.
Then I have excluded 2 domains that I wanted to see using the shared IP address.
2 things I am confused about:
1. What I have noticed is that when I do check the Enable mod_userdir Protection and hit the save button, then go back into this page it is unchecked? Is this normal? Should it not remain checked? How can I verify if this is enabled?
2. Assuming the above is correct, when I try and exclude a domain or 2, so that they show up with IP/~somusername it does not work.
This is a brand new setup and when I had a single domain created, it worked. However when I added a second domain and tried to test it again, neither are working.
My basic workflow is:
1. Download Wordpress and unzip
2. Create database
3. Install Wordpress using the IP/~username
4. Import Wordpress from old server using clone
Unfortunately I am falling on step #3 :-(
Any help greatly appreciated.
-
Hello :) You will also need to exclude protection for "DefaultHost (nobody)" under "Apache mod_userdir Tweak" if you want to temporarily access websites over the IP address itself. Please keep in mind that the best way to view a website before it's DNS is updated is to modify the hosts file on your personal computer. The hosts file is documented here: [url=http://en.wikipedia.org/wiki/Hosts_(file)]hosts (file) - Wikipedia, the free encyclopedia This allows you to keep mod_userdir protection enabled, and view the website through the domain name itself. Thank you. 0 -
I was finally able to get this working. You also have to recompile easy4apache without
remove:
mod_ruid2
mod_passenger
mod_mpm_itk
mod_proxy_fcgi
mod_fcgid
InstallMod_suexec
mod_suphpThen go into Apache_mode_user dir tweak and do enable it and exclude default only.
It wont save the setting in the portal, but the configuration is updated.Then PHP will work again on the tempurl.
Curtesy of: https://www.nicktailor.com/?p=19050
Please sign in to leave a comment.
Comments
2 comments