Jump to content

How to syncronize files between vhosts - HELP


djrobo

Recommended Posts

I have developed and ecommerce application in PHP which has a shop front and an admin area. Ive not quite finished the admin area, so am constantly updating the pages/scripts. however i have several clients currently using my ecommerce application who all reside on my VPS. I need some way for the client version to check for updates from my latest version.

 

im not sure the best way to do this and because of the open_basedir restrictions the client version would not be able to access the latest version which is stored on my root dir. I thought about ftp, but the files are all on the same server and i thought ftp would be slower and a waste of resources etc.

 

Any suggestions would be much appreciated.

 

thanks

Link to comment
Share on other sites

with basedir restrictions, just make additions to the "domain" within your VPS. depending on the nature of your VPS (ie, assuming it's linux and if it's set up anything like mine), it'll be at /var/www/vhosts/{domainname}/conf/httpd.include.

 

i've got a setup quite similar, only i actually run my sites all off one framework installation. eg:

 

/var/www/vhosts/framework/ <- contains my framework. i chose not to install framework into root as i didnt like the idea of giving full server access to php scripts.

 

/var/www/vhosts/site1/conf/httpd.include <- open_basedir changed to include framework dir

/var/www/vhosts/site1/httpdocs/ <- my first site which uses framework

 

/var/www/vhosts/site2/conf/httpd.include <- open_basedir changed to include framework dir

/var/www/vhosts/site2/httpdocs/ <- my second site which uses framework

 

etc

 

whether that a) is the best way or b) answers your question properly, i dont know. all I know personally is that if i make changes to my framework in terms of improvements or additions, they're immediately accessible to all the sites that use it. once my framework is fully up and rocking and i'm happy with it, then maybe i'll start to seperate things a little bit....

Link to comment
Share on other sites

Thanks for the advice.

 

Do you know if alias's will work. for example setup an alias in my clients domain pointin to my developing folder where my ecom shop resides.

 

www.myclientsdomain.co.uk/admin

would actually be

www.mydomain.co.uk/develop/myapp

 

something on these lines.

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.