Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>i'm also doing something like this. Only difference is that i'm not making copies of the core files. the system has one core and only specific files are copied.</p> <p>if you want to copy files then you have to take in consideration the following:</p> <ol> <li><p>an easy (less secured way) is to use the same user for all websites</p></li> <li><p>otherwise (in case you want to provide different accesses) - you must create a different owner for each website. you must set the owner/group for the copied files (this will be done by root).</p></li> <li><p>for the new website setup: either main domain will run as root, and then it will be able to execute a new website creation, or if you dont want your main domain to be root, you can do the following: create a cronjob (or php script that runs in a loop under CLI), that will be executed by root. it will check some database record every 2 minutes for example, and you can add from your main domain a record with setup info for new hosted website (or just execute some script that gains root access and does it without cron).</p></li> <li><p>the script that creates this can be done in php. it can be done in any language you wish, it doesn't really matter as long as it gets the correct access.</p></li> </ol> <p>in my case i'm using the same user since they are all my websites. disadvantage is that OS won't create restrictions, my php code will (i'm losing the advantage of users/groups permissions between different websites).</p> <p>notice that open_basedir can cause you some hassle, make sure you exclude correct paths (or disable it).</p> <p>also, there are some minor differences between fastCGI and suPHP (i believe it won't cause you too much trouble).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload