![cpanel whm with fantastico cpanel whm with fantastico](https://hackbazarsub.files.wordpress.com/2011/04/whmsoniccpanel6555713.png)
Please increase the amount of inotify watches allowed per user via `/proc/sys/fs/inotify/max_user_watches'. Save the script as “ /etc/init.d/inotifywaitd” and grant execute permission to this script.Įcho "Usage: /etc/init.d/inotifywaitd " ĮRRORS: Sometime you may get the following error while running this script, Newly created files under each users home directory are saved in location “/root/monitor/” with the filenames as each users name. SOLUTION: The following script spawns multiple ‘inotifywait’ processes into background, with each of these processes recursively monitoring and recording file creation events in each cpanel users documentroot. This command comes with the inotify-tools package. SITUATION: Customer wants to get the list of all newly created files under all cpanel users documentroot(/home/*/public_html).ĪSSUMPTIONS: The ‘inotifywait’ command is installed. Hope this info will be somewhat useful ? SCOPE: Using mod_proxy, we could forward requests coming to different servers and make the applications running from several different servers.
CPANEL WHM WITH FANTASTICO INSTALL
You can install it using, apt-get install libapache2-mod-proxy-html -yġ) Open up /etc/apache2/nf and add the following directives, Listen 80Ģ) Enable mod_proxy by copying the configuratons from ‘mods-available’ directory to ‘mods-enabled’ cp -pr /etc/apache2/mods-available/*proxy* /etc/apache2/mods-enabled/ģ) Create a virtualhost file “/etc/apache2/sites-enabled/” for website with the following contents, ĭocumentRoot /home/jackal/public_html/app1ĭocumentRoot /home/jackal/public_html/app2ĭocumentRoot /home/jackal/public_html/app3ĭocumentRoot /home/jackal/public_html/app4Ĥ) Test configuration and gracefully restart apache. home/jackal/public_html/app4 : Port 7004Ĥ) Apache mod_proxy module is installed. home/jackal/public_html/app3 : Port 7003
![cpanel whm with fantastico cpanel whm with fantastico](http://www.webdesigning101.com/wp-content/uploads/software-section-cpanel.jpg)
home/jackal/public_html/app2 : Port 7002 Now configure apache to serve all these four applications from four different ports.Ģ) Website name and documentroot, Name: ģ) Web application sub-directories and the ports going to be used, /home/jackal/public_html/app1 : Port 7001 SITUATION: Customer has a single website with four different web applications installed under four sub directories of the website. Now login to the server and check whether the commit made to repository are shown inside “/home/username/public_html”. Make modifications with the files and then commit to the repository, Now checkout the repository to your local directory, The post commit script will export the contents of the repository to the website documentroot and assigns the proper permission to the directory. Svn export -force file:///usr/local/apache/htdocs/repos/username/ /home/username/public_html/Ĭhown -R username:username /home/username/public_html/ Paste the following contents to that file,
CPANEL WHM WITH FANTASTICO PASSWORD
Jackal777 = Set authorization for user created in password file via “/usr/local/apache/htdocs/repos/username/conf/authz”ħ) Now finally create post commit hook inside the repository directory “/usr/local/apache/htdocs/repos/username/hooks/post-commit” and set execute permission for that file. Password-db = /usr/local/apache/htdocs/repos/username/conf/passwdĪuthz-db = /usr/local/apache/htdocs/repos/username/conf/authzĥ) Create a new user in user database file “/usr/local/apache/htdocs/repos/username/conf/passwd” Svn import /home/username/public_html file:///usr/local/apache/htdocs/repos/username -m "username"Ĥ) Now open up the svn repository configuration file “/usr/local/apache/htdocs/repos/username/conf/nf” and disable anonymous access and specify the user authentication and authorization files, Svnserve -d -r /usr/local/apache/htdocs/reposģ) Create a repository named ‘username’ and import its home directory(/home/username/public_html) to the repository,
![cpanel whm with fantastico cpanel whm with fantastico](https://images.kualo.com/kbimages/whm11-setup/whm-setup-29-fantastico/frame06_1.png)
Also make sure that the port 3690 is opened in firewall and you are starting the service as root user. Also use ‘svnserve’ daemon for setup and don’t use ‘mod_dav’.Ĥ) ‘username’ is the username of the websiteĢ) Create a directory named ‘repos’ inside the default documentroot of apache(ie, /usr/local/apache/htdocs/) and start the ‘svnserve’ daemon from that directory. Thus all updates to files inside documentroot can be done over svn instead of via ftp. SITUATION: Customer has a cpanel server with one domain hosted on a shared ip and wants to setup svn repository for this domain in such a way that whenever the svn commit operation takes place, the contents of the repository is exported to the documentroot.