title: fix file permission to read write access squid configuration via php code in linux server centos with lamp setup
body: <p>For my new project i have to configure cent os linux server with lamp setup and install squid proxy server. Installed machine will act as a server in client side. The main purpose of the count the amount of bandwidth, their mac address , ip address will be logged in server it is will act like a proxy server. Every user will be assigned with bandwidth, total browsing hours, username, password etc. </p>
  
  <p>Each user can access INTERNET via installed proxy server after logging with the username and password defined to them.
  User management, mac address, ip addreess fetching all will be done using php code with linux command enabled for mac address from client machine and also for blacklist website filter. </p>
  
  <p>For every action of this project have to access squid configuration file located in /etc/squid/squid.conf for enabling internet support with mac filter and even iptables.</p>
  
  <p>But when my php code try to access the /etc/squid/squid.conf for processing . It is unable to access the file for read, write, append operation.</p>
  
  <p>In my server side i have define the file permission for /etc/squid/squid.conf with read write access with the code executing in my linux  server</p>
  
  <pre><code>chmod 777 /etc/squid/squid.conf
  </code></pre>
  
  <p>After assign the permission also the person logged in to the server unable to access the squid file for processing.</p>
  
  <p>Even the tried </p>
  
  <pre><code>chmod 666 /etc/squid/squid.conf
  </code></pre>
  
  <p>but no help</p>
  
  <p>How i have to configure my file permission for /etc/squid/squid.conf so even my i logged user via apache server can access the file for processing</p>