Install phpmyadmin on nginx

Paste this code inside the server{} code in your etc/nginx/sites-available/example.com file. location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; }...

0
0

SSH into your Amazon instance without a KeyPair

1.  SSH into your instance. 2.  Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes. One way to do this is to enter the command nano /etc/ssh/sshd_config, then scroll down toPasswordAuthentication.  Change the no to yes.  Then press Ctrl+X, and press the Y key to save and quit. 3.  Enter the command /etc/init.d/sshd reload. (for Ubuntu, enter the command reload ssh) 4.  Set your password...

0
0

Configure HTTPS with Linux

. Getting the required software For an SSL encrypted web server you will need a few things. Depending on your install you may or may not have OpenSSL and mod_ssl, Apache's interface to OpenSSL. Use yum to get them if you need them.   yum install mod_ssl openssl Yum will...

0
0

Generate SSL Certificate for Linux

If you want to test SSL on your web server, you probably want to generate a self-signed certificate before ordering up the real one. There are three steps: - generate SSL key w/o passphrase - generate certificate request - generate self-signed certificate # cd /etc/httpd/conf # mkdir ssl.key ssl.csr ssl.crt # openssl...

0
0