Mins / TuxLite

A complete LAMP and LNMP setup script for Debian or Ubuntu
http://tuxlite.com
253 stars 112 forks source link

Print server/domain info #34

Closed matrixik closed 10 years ago

matrixik commented 10 years ago

Would be nice if TuxLite could print info about server/domain

For example: ./domain.sh info domain.com - would search for domain in all users accounts and when found print all info about it. Like folder path etc.

/home/user/domains/domain.com/
/etc/nginx/sites-available/domain.com
/etc/logrotate.d/domain-domain.com
git remote (or full git command for adding remote path)
domain folder sizes etc.

./setup.sh info would give us all info about server configuration, configuration file paths etc.

PHP version: 5.4.4
PHP config files:
    /etc/php5/fpm/php.ini
    /etc/php5/fpm/pool.d/user.conf
MySql version: 5.5.3
MySql config file:
    /etc/mysql/my.cnf
Size of all MySql databases: 12MB
Nginx version: 1.2.2
Nginx config file:
    /etc/nginx/nginx.conf
number of installed sites (any info that you consider useful) etc.

Best regards

Mins commented 10 years ago

Hmm, I'm not too convinced that this is something that will be used much. Most of the information listed are already documented.

However, I would be happy to add it in if you submit a merge request.