Skip to content

summeroff/litesiteconfiger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

It is a fork of script made by Seb Dangerfield at http://www.sebdangerfield.me.uk/?p=513

What script does:

  • creates virtual server confing for nginx
  • creates pool config for php-fpm
  • creates folders for site, logs and stuff in /var/www/user_name
  • add linux user to "secure" php-fpm instance from other sites
  • add user to vsftpd list so it can has sftp access to /var/www/user_name
  • add config for logrotate

Target system: debian wheezy

Usage: There is 2 steps: generate and deploy

To prepare configs for hosting use following command: ./create_site_config.sh sites_domain user_name

sites_domain - mydomain.com user_name - name for lunux user what will be created to run php-fpm pool

After that script done you can go to ./domain_name and run next script do deploy prepared files to system

To undo creation: ./remove_php_site.sh sites_domain user_name

There can be many sites for one user just use the same user_name each time

About

Script to create simple site configs for nginx+php-fpm+ env

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages