ingyingamar Posted November 22, 2007 Share Posted November 22, 2007 Hi all.......I have written a content management system(cms for short) for about 50 virtual domains that reside on my server. All the domains have access to the cms files in each respective virtual directory. My issue here is that I want to have just ONE copy of the cms files that all have access to and not compromise my source code. I have modified openbase_dir in httpd.conf so that all virtual domains can read the files BUT they can also retrieve the source code...... 1. Is there a way to make the files ONLY executable.... 2. The common files contain functions only....is there a way add those functions to php at apache/php startup so all have access.....(this would be a cool thing if php could do that....) thanks for any suggestions offered..... Quote Link to comment Share on other sites More sharing options...
kratsg Posted November 22, 2007 Share Posted November 22, 2007 So the php file is located on their server? Meaning they can FTP and access it? And what you want is a single one that handles all 50 "people"? I'm a little lost on the question here. Quote Link to comment Share on other sites More sharing options...
ingyingamar Posted November 22, 2007 Author Share Posted November 22, 2007 Hi.....I want just one copy of the cms files (they can't FTP to it) so that they can only execute the files and not copy the php source code (I also don't want to use an encoder). Quote Link to comment Share on other sites More sharing options...
trq Posted November 22, 2007 Share Posted November 22, 2007 Chmod all the files to 661. Quote Link to comment Share on other sites More sharing options...
ingyingamar Posted November 22, 2007 Author Share Posted November 22, 2007 I have tried that......it gives me a permission denied error.....you need read permissions to execute a php script..... Quote Link to comment Share on other sites More sharing options...
rab Posted November 22, 2007 Share Posted November 22, 2007 make sure apache can access them Quote Link to comment 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.