PHP code serving multiple websites on same servr

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
prathyushlalkj
Forum Newbie
Posts: 1
Joined: Tue May 18, 2010 10:49 pm

PHP code serving multiple websites on same servr

Post by prathyushlalkj »

Hi

I have 10s of websites running on same server , all has same admin panel built in PHP. On admin side there is an option to select website to admin for. Administrator can upload files to different websites but its not uploading . To tell you the directory structure, like follows

/var/www/vhosts/website1.com/httpdocs/admin/
/var/www/vhosts/website2.com/httpdocs/uploads/
/var/www/vhosts/website3.com/httpdocs/uploads/
/var/www/vhosts/website4.com/httpdocs/uploads/

etc

/var/www/vhosts/website1.com/httpdocs/admin/ is the master website where admin panel running. But through admin panel its not uploading files to '/var/www/vhosts/website2.com/httpdocs/uploads/' folder.

Thanks in advance for your help

thanks
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: PHP code serving multiple websites on same servr

Post by Benjamin »

Most likely the admin account does not have write access to the other accounts.
Post Reply