G
Hello,
On a CentOS 6.5 server running OLS (I've tried both v1.2.9 & v1.3.2) I've created a new user named "test" (this is just an example) as well as a public_html folder inside.
Then I created a phpinfo page at /home/test/public_html/phpinfo.php
Using the "PHP_SuEXEC" Virtual Host Template, I created a new Virtual Host with the following settings:
Virtual Host Name: test
Domain: test.com
Member Virtual Host Root: /home/test
and instantiated it.
Finally I went into the Virtual Host -> External App -> Edit and set:
suEXEC User: test
suEXEC Group: test
So my Virtual Host is configured like this:
Virtual Host Root: /home/test/
Config File: $SERVER_ROOT/conf/test.xml
Document Root: $VH_ROOT/public_html/
File/Directory Permissions:
/home/test/ is of course owned by test:test
/home/test/public_html is owned by test:nobody (I also tried test:test)
all files inside /home/test/public_html/ are owned by test:test
Unfortunately whatever file I try to access when I visit "test.com", I get a 404 error.
The only similar discussion I found about this matter is here: https://groups.google.com/forum/#!topic/openlitespeed-development/SaL0BeGSAvA
however I would like to know if there's been any progress towards supporting this.
If supporting Virtual Host Roots outside of /usr/local/lsws/ is not planned, can you provide an alternative setup where full PHP SuEXEC functionality can be used?
ie. create a unix user, set ownership of a htdocs/public_html folder to that user, and execute PHP as that user.
Thanks a lot in advance!
On a CentOS 6.5 server running OLS (I've tried both v1.2.9 & v1.3.2) I've created a new user named "test" (this is just an example) as well as a public_html folder inside.
Then I created a phpinfo page at /home/test/public_html/phpinfo.php
Using the "PHP_SuEXEC" Virtual Host Template, I created a new Virtual Host with the following settings:
Virtual Host Name: test
Domain: test.com
Member Virtual Host Root: /home/test
and instantiated it.
Finally I went into the Virtual Host -> External App -> Edit and set:
suEXEC User: test
suEXEC Group: test
So my Virtual Host is configured like this:
Virtual Host Root: /home/test/
Config File: $SERVER_ROOT/conf/test.xml
Document Root: $VH_ROOT/public_html/
File/Directory Permissions:
/home/test/ is of course owned by test:test
/home/test/public_html is owned by test:nobody (I also tried test:test)
all files inside /home/test/public_html/ are owned by test:test
Unfortunately whatever file I try to access when I visit "test.com", I get a 404 error.
The only similar discussion I found about this matter is here: https://groups.google.com/forum/#!topic/openlitespeed-development/SaL0BeGSAvA
however I would like to know if there's been any progress towards supporting this.
If supporting Virtual Host Roots outside of /usr/local/lsws/ is not planned, can you provide an alternative setup where full PHP SuEXEC functionality can be used?
ie. create a unix user, set ownership of a htdocs/public_html folder to that user, and execute PHP as that user.
Thanks a lot in advance!