Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| yum install mailx -y |
| # /etc/yum.repos.d/mariadb.repo | |
| [mariadb] | |
| name = MariaDB | |
| baseurl = http://yum.mariadb.org/10.0/centos6-amd64 | |
| gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB | |
| gpgcheck=1 |
| server { | |
| listen 80; | |
| server_name example.com; | |
| access_log /var/log/nginx/example.com.access.log; | |
| error_log /var/log/nginx/example.com.error.log; | |
| root /var/www/example.com; | |
| index index.php; |
| server { | |
| server_name domain.com; | |
| rewrite ^(.*) http://www.domain.com$1 permanent; | |
| } | |
| server { | |
| server_name www.domain.com; | |
| #The rest of your configuration goes here# | |
| } |
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and PHP-FPM | |
| sudo yum install -y nginx php-fpm | |
| # Install PHP extensions | |
| sudo yum install -y php-devel php-mysql php-pdo \ | |
| php-pear php-mbstring php-cli php-odbc \ |
| # /etc/yum.repos.d/nginx.repo | |
| [nginx] | |
| name=nginx repo | |
| baseurl=http://nginx.org/packages/centos/6/$basearch/ | |
| gpgcheck=0 | |
| enabled=1 |
| server { | |
| # Redirect yoursite.com to www.yoursite.com | |
| server_name yoursite.com; | |
| rewrite ^(.*) http://www.yoursite.com$1 permanent; | |
| } | |
| server { | |
| # Tell nginx to handle requests for the www.yoursite.com domain | |
| server_name www.yoursite.com; |
| #!/bin/sh | |
| #current info | |
| CUR_URL=development.server.com | |
| CUR_DB_HOST=database_host | |
| CUR_DB_NAME=database_name | |
| CUR_DB_USER=database_user | |
| CUR_DB_PASS=database_password | |
| CUR_PATH=/path/to/site/ | |
| server { | |
| # Redirect yoursite.com to www.yoursite.com | |
| server_name yoursite.com; | |
| rewrite ^(.*) http://www.yoursite.com$1 permanent; | |
| } | |
| server { | |
| # Tell nginx to handle requests for the www.yoursite.com domain | |
| server_name www.yoursite.com; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.