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 […]
Advertisement
More about Linux, Hostings, Website, Server, Microsoft and various advertisements will appear below.Apache with Samba or CIFS Shared Files
Web server and File server is good to be placed on different machine.
In my case, I have web server running apache+php+mysql under Centos Box, and File Server is on Windows Advanced Server 2000. The problem is apache cannot read the php file in Windows server.
All I have done :
I added line at fstab configuration
//192.168.1.3/data/media/code cifs […]