Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few suggestions #115

Closed
ponasromas opened this issue Aug 23, 2018 · 5 comments
Closed

Few suggestions #115

ponasromas opened this issue Aug 23, 2018 · 5 comments

Comments

@ponasromas
Copy link

Currently using this mod and it is fantastic. Have a few suggestions:

  • Domain remove: easy and fast way to delete all info about domain (vhost, ftp etc.)
  • PerconaDB support
  • Multi-PHP support (configurable per vhost)
  • Rudimentary mail support (create / delete mailbox)
@centminmod
Copy link
Owner

Hi thanks for suggestions

@Octolus
Copy link

Octolus commented Sep 12, 2018

Domain remove +1
Multi-PHP Support +1

Multi-PHP, would perhaps have a option to create a separate pool.

@centminmod
Copy link
Owner

multiple PHP-FPM pools has been supported optionally since 123.08stable and refined in 123.09beta01 https://community.centminmod.com/threads/centmin-mod-08-beta03-multiple-php-fpm-pools-support-added.3672/

@oscarsmx
Copy link

oscarsmx commented Nov 1, 2018

I did a simple script to delete domains:

https://github.com/oscarsmx/Simple-Centminmod-Domain-Removal

It's simple so it will only delete the folder at domains, nginx conf and ssl.

However it doesn't delete virtual ftp users I'll think about that later but as you can type anything you need to remember the user you use for that site.

@centminmod
Copy link
Owner

centminmod commented Nov 1, 2018

thanks @oscarsmx for sharing :)

FYI, For latest beta (123.09beta01), You also get a log file for each Nginx vhost created which also lists the commands in 123.09beta01 and higher example for http2.domain.com remove log at /root/centminlogs/centminmod_011118-171959_nginx_addvhost_nv.log

contents of /root/centminlogs/centminmod_011118-171959_nginx_addvhost_nv.log after nginx vhost creation would have something at end of log like

-------------------------------------------------------------
Commands to remove http2.domain.com

 pure-pw userdel cMpEOOo>0%tq;tO733{AT%
 rm -rf /usr/local/nginx/conf/conf.d/http2.domain.com.conf
 rm -rf /usr/local/nginx/conf/conf.d/http2.domain.com.ssl.conf
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com/http2.domain.com.crt
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com/http2.domain.com.key
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com/http2.domain.com.csr
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com
 rm -rf /home/nginx/domains/http2.domain.com
 rm -rf /root/.acme.sh/http2.domain.com
 rm -rf /root/.acme.sh/http2.domain.com_ecc
 rm -rf /usr/local/nginx/conf/pre-staticfiles-local-http2.domain.com.conf
 service nginx restart

-------------------------------------------------------------
vhost for http2.domain.com setup successfully
http2.domain.com setup info log saved at: 
/root/centminlogs/centminmod_011118-171959_nginx_addvhost_nv.log
-------------------------------------------------------------

if you used nv command to create nginx vhost, second log at /root/centminlogs/centminmod_011118-171959_nginx_addvhost_nv-remove-cmds-http2.domain.com.log will have

-------------------------------------------------------------
Commands to remove http2.domain.com

 pure-pw userdel cMpEOOo>0%tq;tO733{AT%
 rm -rf /usr/local/nginx/conf/conf.d/http2.domain.com.conf
 rm -rf /usr/local/nginx/conf/conf.d/http2.domain.com.ssl.conf
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com/http2.domain.com.crt
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com/http2.domain.com.key
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com/http2.domain.com.csr
 rm -rf /usr/local/nginx/conf/ssl/http2.domain.com
 rm -rf /home/nginx/domains/http2.domain.com
 rm -rf /root/.acme.sh/http2.domain.com
 rm -rf /root/.acme.sh/http2.domain.com_ecc
 rm -rf /usr/local/nginx/conf/pre-staticfiles-local-http2.domain.com.conf
 service nginx restart

-------------------------------------------------------------
vhost for http2.domain.com setup successfully
http2.domain.com setup info log saved at: 
/root/centminlogs/centminmod_011118-171959_nginx_addvhost_nv.log
-------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants