document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. [root@hostname ~]# cat /root/centminlogs/centminmod_phpmyadmin_install_060815-171457.log
  3. useradd: user 'phpmyadmin' already exists
  4. ---------------------------------------------------------------
  5. Create User: phpmyadmin
  6. uid=502(phpmyadmin) gid=502(phpmyadmin) groups=502(phpmyadmin),500(nginx)
  7. ---------------------------------------------------------------
  8.  
  9. ---------------------------------------------------------------
  10. Installing phpmyadmin from official git repository...
  11. ---------------------------------------------------------------
  12. This process can take some time depending on
  13. speed of the repository and your server...
  14.  
  15. Initialized empty Git repository in /usr/local/nginx/html/2471_mysqladmin21680/.git/
  16. Switched to a new branch 'STABLE'
  17. Branch STABLE set up to track remote branch STABLE from origin.
  18. ---------------------------------------------------------------
  19. Setup /usr/local/nginx/conf/phpmyadmin.conf ...
  20. ---------------------------------------------------------------
  21. ---------------------------------------------------------------
  22. Create phpmyadmin htaccess user/pass...
  23. python /usr/local/nginx/conf/htpasswd.py -c -b /usr/local/nginx/conf/htpassphpmyadmin adminS4SK1p3D/pI= n9cXNoYu4F1Gx22KBg12o0Eq6x0=
  24. ---------------------------------------------------------------
  25.  
  26. \\cp -af /usr/local/nginx/conf/php.conf /usr/local/nginx/conf/php_2471_mysqladmin21680.conf
  27. ---------------------------------------------------------------
  28. server {
  29. # listen 80;
  30. listen 80 default_server backlog=2048 reuseport;
  31. server_name hostname.cinebuffer.com;
  32. root html;
  33.  
  34. access_log /var/log/nginx/localhost.access.log main buffer=256k flush=5m;
  35. error_log /var/log/nginx/localhost.error.log error;
  36.  
  37. # ngx_pagespeed & ngx_pagespeed handler
  38. #include /usr/local/nginx/conf/pagespeed.conf;
  39. #include /usr/local/nginx/conf/pagespeedhandler.conf;
  40. #include /usr/local/nginx/conf/pagespeedstatslog.conf;
  41.  
  42. # limit_conn limit_per_ip 16;
  43. # ssi on;
  44.  
  45. location /nginx_status {
  46. stub_status on;
  47. access_log off;
  48. allow 127.0.0.1;
  49. #allow youripaddress;
  50. deny all;
  51. }
  52.  
  53. location / {
  54.  
  55. # block common exploits, sql injections etc
  56. #include /usr/local/nginx/conf/block.conf;
  57.  
  58. # Enables directory listings when index file not found
  59. # autoindex on;
  60.  
  61. # Shows file listing times as local time
  62. # autoindex_localtime on;
  63.  
  64. # Enable for vBulletin usage WITHOUT vbSEO installed
  65. # try_files $uri $uri/ /index.php;
  66.  
  67. }
  68.  
  69. # example nginx-http-concat
  70. # /csstest/??one.css,two.css
  71. #location /csstest {
  72. #concat on;
  73. #concat_max_files 20;
  74. #}
  75.  
  76. include /usr/local/nginx/conf/phpmyadmin.conf;
  77. include /usr/local/nginx/conf/staticfiles.conf;
  78. include /usr/local/nginx/conf/include_opcache.conf;
  79. include /usr/local/nginx/conf/php.conf;
  80. #include /usr/local/nginx/conf/phpstatus.conf;
  81. include /usr/local/nginx/conf/drop.conf;
  82. #include /usr/local/nginx/conf/errorpage.conf;
  83. include /usr/local/nginx/conf/vts_mainserver.conf;
  84.  
  85. }
  86. ---------------------------------------------------------------
  87. NON-STATIC IP configuration
  88. ---------------------------------------------------------------
  89. cat /usr/local/nginx/conf/phpmyadmin.conf
  90. ---------------------------------------------------------------
  91. location ^~ /2471_mysqladmin21680/ {
  92. rewrite ^/(.*) https://hostname.cinebuffer.com/$1 permanent;
  93. }
  94. ---------------------------------------------------------------
  95. cat /usr/local/nginx/conf/phpmyadmin_https.conf
  96. ---------------------------------------------------------------
  97. location ^~ /2471_mysqladmin21680/ {
  98. #try_files $uri $uri/ /2471_mysqladmin21680/index.php?$args;
  99. include /usr/local/nginx/conf/php_2471_mysqladmin21680.conf;
  100.  
  101. auth_basic "Private Access";
  102. auth_basic_user_file /usr/local/nginx/conf/htpassphpmyadmin;
  103. allow 127.0.0.1;
  104. #allow 198.48.224.216;
  105. #deny all;
  106. }
  107. ---------------------------------------------------------------
  108.  
  109. touch /usr/local/nginx/conf/phpfpmd/phpfpm_myadmin.conf
  110.  
  111.  
  112. Dynamically set PHP memory_limit based on available system memory...
  113.  
  114. Total Mem: 1891 MB
  115. Real Free Mem: 1702 MB
  116. Mem Limit: 756 MB
  117.  
  118. nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
  119. nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
  120. Stopping nginx: [ OK ]
  121. Starting nginx: [ OK ]
  122. Gracefully shutting down php-fpm . done
  123. Starting php-fpm done
  124. ---------------------------------------------------------------
  125. SSL Vhost Setup...
  126. ---------------------------------------------------------------
  127.  
  128. ---------------------------------------------------------------
  129. Generating self signed SSL certificate...
  130. Just hit enter at each of the prompts
  131. ---------------------------------------------------------------
  132.  
  133. Generating RSA private key, 1024 bit long modulus
  134. ..++++++
  135. ...++++++
  136. e is 65537 (0x10001)
  137. You are about to be asked to enter information that will be incorporated
  138. into your certificate request.
  139. What you are about to enter is what is called a Distinguished Name or a DN.
  140. There are quite a few fields but you can leave some blank
  141. For some fields there will be a default value,
  142. If you enter '.', the field will be left blank.
  143. -----
  144. Country Name (2 letter code) [XX]:State or Province Name (full name) []:Locality Name (eg, city) [Default City]:Organization Name (eg, company) [Default Company Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, your name or your server's hostname) []:Email Address []:
  145. Please enter the following 'extra' attributes
  146. to be sent with your certificate request
  147. A challenge password []:An optional company name []:Signature ok
  148. subject=/C=CA/ST=Ontario/L=Ottawa/O=TC/CN=hostname/emailAddress=
  149. Getting Private key
  150. nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
  151. nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
  152. Stopping nginx: [ OK ]
  153. Starting nginx: [ OK ]
  154. Gracefully shutting down php-fpm done
  155. Starting php-fpm done
  156. ---------------------------------------------------------------
  157. Create update script:
  158. /root/tools/phpmyadmin_update.sh
  159. ---------------------------------------------------------------
  160. ---------------------------------------------------------------
  161. Create cronjob for auto updating phpmyadmin:
  162. /root/tools/phpmyadmin_update.sh
  163. ---------------------------------------------------------------
  164. ---------------------------------------------------------------
  165. Create uninstall script:
  166. /root/tools/phpmyadmin_uninstall.sh
  167. ---------------------------------------------------------------
  168.  
  169. ---------------------------------------------------------------
  170. Password protected 2471_mysqladmin21680
  171. at path /usr/local/nginx/html/2471_mysqladmin21680
  172. config.inc.php at: /usr/local/nginx/html/2471_mysqladmin21680/config.inc.php
  173. WEB url:
  174.  
  175. https://hostname.cinebuffer.com/2471_mysqladmin21680
  176.  
  177. Login with your MySQL root username / password
  178. ---------------------------------------------------------------
  179.  
  180.  
  181.  
  182. ---------------------------------------------------------------
  183. phpmyadmin update script at: /root/tools/phpmyadmin_update.sh
  184. Add your own cron job to automatically run the update script i.e.
  185.  
  186. 15 01 * * * /root/tools/phpmyadmin_update.sh
  187.  
  188. ---------------------------------------------------------------
  189. phpmyadmin uninstall script at: /root/tools/phpmyadmin_uninstall.sh
  190.  
  191. /root/tools/phpmyadmin_uninstall.sh
  192.  
  193. ---------------------------------------------------------------
  194. SSL vhost: /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf
  195. php-fpm includes: /usr/local/nginx/conf/php_2471_mysqladmin21680.conf
  196. php-fpm pool conf: /usr/local/nginx/conf/phpfpmd/phpfpm_myadmin.conf
  197. dedicated php-fpm pool user: phpmyadmin
  198. dedicated php-fpm pool group: nginx
  199. dedicated php error log: /var/log/php_myadmin_error.log
  200. ---------------------------------------------------------------
  201. SSL vhost access log: /var/log/nginx/localhost_ssl.access.log
  202. SSL vhost error log: /var/log/nginx/localhost_ssl.error.log
  203. ---------------------------------------------------------------
  204.  
  205.  
  206. Total phpmyadmin Install Time: 225.072256328 seconds
');