Sharing code for webserver using NFS
Separating machines between WebServer and the code server is kind of easy.
Basic knowledges you have to know is about httpd.conf, networkfilesystem, fstab, and user-group id
NetworkFileSystem is the one we will use to share the directory from the code server.
First : SeeĀ your httpd.conf filesĀ for each VirtualHost directives, you will find DocumentRoot for each VirtualHosts.
These […]
PHP code is separated from WebServer
Generally, people put together between the WebServer (httpd services) with php code.
For economic sakes , yes you may put it that way. No other choice.
But for easy maintenance and more security better you put WebServer and php code in separated machine even the Database server is also separated.
With this way you can create Web Server […]