Created
July 5, 2016 15:35
-
-
Save anonymous/64f3a4b080cea549a3ed8cb46628c40b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useradd: user 'phpmyadmin' already exists | |
[1;32;40m--------------------------------------------------------------- | |
(B[m[1;33;40mCreate User: phpmyadmin | |
(B[m[1;33;40muid=502(phpmyadmin) gid=502(phpmyadmin) groups=502(phpmyadmin),500(nginx) | |
(B[m[1;32;40m--------------------------------------------------------------- | |
(B[m | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mInstalling phpmyadmin from official git repository... | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;33;40mThis process can take some time depending on | |
(B[m[1;33;40mspeed of the repository and your server... | |
(B[m | |
Initialized empty Git repository in /usr/local/nginx/html/27718_mysqladmin7402/.git/ | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mSetup /usr/local/nginx/conf/phpmyadmin.conf ... | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;33;40mCreate phpmyadmin htaccess user/pass... | |
(B[m[1;32;40mpython /usr/local/nginx/conf/htpasswd.py -c -b /usr/local/nginx/conf/htpassphpmyadmin adminTTQ8npCCaJA= ae7jdE3Yc57zBjjgykOcsvF7i1I= | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m | |
\cp -af /usr/local/nginx/conf/php.conf /usr/local/nginx/conf/php_27718_mysqladmin7402.conf | |
[1;33;40m--------------------------------------------------------------- | |
(B[mserver { | |
# listen 80; | |
listen 80 default_server backlog=2048 reuseport; | |
server_name THBX-Cloud001-I002; | |
root html; | |
access_log /var/log/nginx/localhost.access.log main buffer=256k flush=5m; | |
error_log /var/log/nginx/localhost.error.log error; | |
# ngx_pagespeed & ngx_pagespeed handler | |
#include /usr/local/nginx/conf/pagespeed.conf; | |
#include /usr/local/nginx/conf/pagespeedhandler.conf; | |
#include /usr/local/nginx/conf/pagespeedstatslog.conf; | |
# limit_conn limit_per_ip 16; | |
# ssi on; | |
location /nginx_status { | |
stub_status on; | |
access_log off; | |
allow 127.0.0.1; | |
#allow youripaddress; | |
deny all; | |
} | |
location / { | |
# block common exploits, sql injections etc | |
#include /usr/local/nginx/conf/block.conf; | |
# Enables directory listings when index file not found | |
# autoindex on; | |
# Shows file listing times as local time | |
# autoindex_localtime on; | |
# Enable for vBulletin usage WITHOUT vbSEO installed | |
# try_files $uri $uri/ /index.php; | |
} | |
# example nginx-http-concat | |
# /csstest/??one.css,two.css | |
#location /csstest { | |
#concat on; | |
#concat_max_files 20; | |
#} | |
include /usr/local/nginx/conf/phpmyadmin.conf; | |
include /usr/local/nginx/conf/staticfiles.conf; | |
include /usr/local/nginx/conf/include_opcache.conf; | |
include /usr/local/nginx/conf/php.conf; | |
#include /usr/local/nginx/conf/phpstatus.conf; | |
include /usr/local/nginx/conf/drop.conf; | |
#include /usr/local/nginx/conf/errorpage.conf; | |
include /usr/local/nginx/conf/vts_mainserver.conf; | |
}[1;33;40m--------------------------------------------------------------- | |
(B[m[1;33;40mNON-STATIC IP configuration | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mcat /usr/local/nginx/conf/phpmyadmin.conf | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[mlocation ^~ /27718_mysqladmin7402/ { | |
rewrite ^/(.*) https://THBX-Cloud001-I002/$1 permanent; | |
} | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mcat /usr/local/nginx/conf/phpmyadmin_https.conf | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[mlocation ^~ /27718_mysqladmin7402/ { | |
#try_files $uri $uri/ /27718_mysqladmin7402/index.php?$args; | |
include /usr/local/nginx/conf/php_27718_mysqladmin7402.conf; | |
auth_basic "Private Access"; | |
auth_basic_user_file /usr/local/nginx/conf/htpassphpmyadmin; | |
allow 127.0.0.1; | |
#allow 116.106.32.35; | |
#deny all; | |
} | |
[1;33;40m--------------------------------------------------------------- | |
(B[m | |
[1;32;40mtouch /usr/local/nginx/conf/phpfpmd/phpfpm_myadmin.conf | |
(B[m | |
[1;33;40mDynamically set PHP memory_limit based on available system memory... | |
(B[m | |
[1;33;40mTotal Mem: 7870 MB | |
(B[m[1;33;40mReal Free Mem: 3198 MB | |
(B[m[1;33;40mMem Limit: 1421 MB | |
(B[m | |
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok | |
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful | |
Stopping nginx: [60G[[0;32m OK [0;39m] | |
Starting nginx: [60G[[0;32m OK [0;39m] | |
Gracefully shutting down php-fpm .......... done | |
Starting php-fpm [05-Jul-2016 14:40:24] NOTICE: PHP message: PHP Warning: Version warning: Imagick was compiled against Image Magick version 1682 but version 1683 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0 | |
done | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mSSL Vhost Setup... | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mGenerating self signed SSL certificate... | |
(B[m[1;32;40mJust hit enter at each of the prompts | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m | |
Generating RSA private key, 2048 bit long modulus | |
...........................................................................................................................+++ | |
..........+++ | |
e is 65537 (0x10001) | |
Signature ok | |
subject=/C=US/ST=California/L=Los Angeles/O=THBX-Cloud001-I002/OU=IT/CN=THBX-Cloud001-I002 | |
Getting Private key | |
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok | |
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful | |
Stopping nginx: [60G[[0;32m OK [0;39m] | |
Starting nginx: [60G[[0;32m OK [0;39m] | |
Gracefully shutting down php-fpm .......... done | |
Starting php-fpm [05-Jul-2016 14:40:55] NOTICE: PHP message: PHP Warning: Version warning: Imagick was compiled against Image Magick version 1682 but version 1683 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0 | |
done | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mCreate update script: | |
(B[m[1;32;40m/root/tools/phpmyadmin_update.sh | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mCreate cronjob for auto updating phpmyadmin: | |
(B[m[1;32;40m/root/tools/phpmyadmin_update.sh | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mCreate uninstall script: | |
(B[m[1;32;40m/root/tools/phpmyadmin_uninstall.sh | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mPassword protected 27718_mysqladmin7402 | |
(B[m[1;32;40mat path /usr/local/nginx/html/27718_mysqladmin7402 | |
(B[m[1;32;40mconfig.inc.php at: /usr/local/nginx/html/27718_mysqladmin7402/config.inc.php | |
(B[m[1;32;40m WEB url: | |
(B[m | |
[1;37;40m https://THBX-Cloud001-I002/27718_mysqladmin7402 | |
(B[m | |
[1;32;40mLogin with your MySQL root username / password | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m | |
[1;32;40mphpmyadmin htaccess login details: | |
(B[m[1;32;40mUsername: adminTTQ8npCCaJA= | |
(B[m[1;32;40mPassword: ae7jdE3Yc57zBjjgykOcsvF7i1I= | |
(B[m[1;32;40mAllowed IP address: 116.106.32.35 | |
(B[m | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mphpmyadmin update script at: /root/tools/phpmyadmin_update.sh | |
(B[m[1;32;40mAdd your own cron job to automatically run the update script i.e. | |
(B[m | |
[1;37;40m 15 01 * * * /root/tools/phpmyadmin_update.sh | |
(B[m | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mphpmyadmin uninstall script at: /root/tools/phpmyadmin_uninstall.sh | |
(B[m | |
[1;37;40m /root/tools/phpmyadmin_uninstall.sh | |
(B[m | |
[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mSSL vhost: /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf | |
(B[m[1;32;40mphp-fpm includes: /usr/local/nginx/conf/php_27718_mysqladmin7402.conf | |
(B[m[1;32;40mphp-fpm pool conf: /usr/local/nginx/conf/phpfpmd/phpfpm_myadmin.conf | |
(B[m[1;32;40mdedicated php-fpm pool user: phpmyadmin | |
(B[m[1;32;40mdedicated php-fpm pool group: nginx | |
(B[m[1;32;40mdedicated php error log: /var/log/php_myadmin_error.log | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m[1;32;40mSSL vhost access log: /var/log/nginx/localhost_ssl.access.log | |
(B[m[1;32;40mSSL vhost error log: /var/log/nginx/localhost_ssl.error.log | |
(B[m[1;33;40m--------------------------------------------------------------- | |
(B[m | |
Total phpmyadmin Install Time: 118.819128588 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment