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..... Link to comment https://forums.phpfreaks.com/topic/78471-php-file-security-issues/ 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. Link to comment https://forums.phpfreaks.com/topic/78471-php-file-security-issues/#findComment-397075 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). Link to comment https://forums.phpfreaks.com/topic/78471-php-file-security-issues/#findComment-397076 Share on other sites More sharing options...
trq Posted November 22, 2007 Share Posted November 22, 2007 Chmod all the files to 661. Link to comment https://forums.phpfreaks.com/topic/78471-php-file-security-issues/#findComment-397082 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..... Link to comment https://forums.phpfreaks.com/topic/78471-php-file-security-issues/#findComment-397085 Share on other sites More sharing options...
rab Posted November 22, 2007 Share Posted November 22, 2007 make sure apache can access them Link to comment https://forums.phpfreaks.com/topic/78471-php-file-security-issues/#findComment-397116 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.