Shared website codebase

avanderree

New member
Joined
Jul 7, 2015
Messages
4
I've a PHP webapplication and want to give access to this application via 2 seprate vhosts/users. I've stored this application in /var/www/{webapp} en made a simlink from public_html to that folder. (for both users)
How can i manage the permissions so that both users can access the codebase? I'm using PHP-FPM (PHP 5.6)
 
Hello,

Why do you need symlink from /var/www/{webapp} to a folder in public_html? Isn't it possible to include files from /var/www/{webapp} ?
 
Hello,

Why do you need symlink from /var/www/{webapp} to a folder in public_html? Isn't it possible to include files from /var/www/{webapp} ?

I want to use a "shared codebase" (folder) with application and library like roundcube is working. So i only have to update the codebase once if i have a new version. I've made a simlink for the 2 users from public_html to the codebase document-root, but that's not working cause the files are not accessable. (created a "appgroup" and added the 2 users to that group but that doesn't do the trick) How does roundcube run? A seperate (fpm) spool?
 
Roundcube work using alias, so you may want to put your codebase in /var/www/html and create the alias in /etc/httpd/conf/extra/httpd-alias.conf

Regards
 
I want to use a "shared codebase" (folder) with application and library like roundcube is working. So i only have to update the codebase once if i have a new version. I've made a simlink for the 2 users from public_html to the codebase document-root, but that's not working cause the files are not accessable. (created a "appgroup" and added the 2 users to that group but that doesn't do the trick) How does roundcube run? A seperate (fpm) spool?

I don't have right now a server with PHP-FPM enabled, so I can't say for sure. Symlink might or not work because of target and source owners miss-match. If you really need the code in public_html for reading only you could use mount --bind
 
Back
Top