djrobo Posted March 22, 2007 Share Posted March 22, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/43865-how-to-syncronize-files-between-vhosts-help/ Share on other sites More sharing options...
redbullmarky Posted March 22, 2007 Share Posted March 22, 2007 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.... Quote Link to comment https://forums.phpfreaks.com/topic/43865-how-to-syncronize-files-between-vhosts-help/#findComment-212939 Share on other sites More sharing options...
djrobo Posted March 26, 2007 Author Share Posted March 26, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/43865-how-to-syncronize-files-between-vhosts-help/#findComment-215238 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.