Upgrading from MySQL 5.5 to MySQL 5.6 on Ubuntu 14.04

Published on

Make a backup of the data in your existing database. mysqldump –lock-all-tables -u root -p –all-databases > dump.sql Update, upgrade and install MySql 5.6. sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server-5.6 If you get a message like the following: The following packages have unmet dependencies: mysql-server-5.6 : Depends: mysql-client-5.6 (>= 5.6.31-0ubuntu0.14.04.2) but … Continue reading Upgrading from MySQL 5.5 to MySQL 5.6 on Ubuntu 14.04

Resolving IBus Problems for IBus prior to 1.5.11

Published on

This is for if you’re on Ubuntu and when you start PhpStorm you get the warning IBus prior to 1.5.11 may cause input problems. See IDEA-78860 for details. These steps will fix the problem. Install the dependencies. sudo apt-get install libdconf-dev libnotify-dev intltool libgtk2.0-dev libgtk-3-dev libdbus-1-dev Download the ibus 1.5.11 source code. wget https://github.com/ibus/ibus/releases/download/1.5.11/ibus-1.5.11.tar.gz Extract … Continue reading Resolving IBus Problems for IBus prior to 1.5.11

Symfony2 Nginx Configuration File

Published on

server { listen 80; server_name PROJECT_DOMAIN; root /www/PROJECT_DOMAIN/web; # strip app.php/ prefix if it is present rewrite ^/app_dev\.php/?(.*)$ /$1 permanent; client_max_body_size 50m; location / { index app_dev.php; try_files $uri @rewriteapp; } location @rewriteapp { rewrite ^(.*)$ /app_dev.php/$1 last; } # pass the PHP scripts to FastCGI server from upstream phpfcgi location ~ ^/(app|app_dev|app_staging|config)\.php(/|$) { fastcgi_pass … Continue reading Symfony2 Nginx Configuration File

Installing WordPress on Ubuntu 14.04 Apache 2.4 on AWS

Published on

Create a database. mysql -h localhost -u root -p CREATE DATABASE WORDPRESS_DATABASE; CREATE USER WORDPRESS_USER@localhost IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON WORDPRESS_DATABASE.* TO WORDPRESS_USER@localhost; FLUSH PRIVILEGES; exit; Download WordPress and copy it to the document root. cd ~ wget http://wordpress.org/latest.tar.gz tar xzvf latest.tar.gz sudo mv wordpress/ /var/www/WORDPRESS_DIRECTORY/ Download some additional PHP modules WordPress will … Continue reading Installing WordPress on Ubuntu 14.04 Apache 2.4 on AWS

Installing Node.js on Ubuntu 14.04

Published on

Refresh your local package index. sudo apt-get update sudo apt-get install nodejs Install npm, which is the Node.js package manager. sudo apt-get install npm Because of a conflict with another package, the executable from the Ubuntu repositories is called nodejs instead of node. References: How to Install Node.js on an Ubuntu 14.04 server | DigitalOcean

Nginx Symfony2 Server Configuration

Published on

server { listen 80; #listen [::]:80 default_server ipv6only=on;root /usr/share/nginx/html; #index index.php index.html index.htm; server_name DOMAIN_NAME; root /var/www/SITE_DIRECTORY/web; # strip app.php/ prefix if it is present rewrite ^/app_dev\.php/?(.*)$ /$1 permanent; client_max_body_size 50m; location / { index app_dev.php; try_files $uri @rewriteapp; } location @rewriteapp { rewrite ^(.*)$ /app_dev.php/$1 last; } # pass the PHP scripts to FastCGI … Continue reading Nginx Symfony2 Server Configuration

Installing WordPress on Ubuntu 14.04 Nginx on AWS

Published on

Create a database. mysql -h localhost -u root -p CREATE DATABASE WORDPRESS_DATABASE; CREATE USER WORDPRESS_USER@localhost IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON WORDPRESS_DATABASE.* TO WORDPRESS_USER@localhost; FLUSH PRIVILEGES; exit; Download WordPress and copy it to the document root. cd ~ wget http://wordpress.org/latest.tar.gz tar xzvf latest.tar.gz sudo mv wordpress/ /var/www/WORDPRESS_DIRECTORY/ Download some additional PHP modules WordPress will … Continue reading Installing WordPress on Ubuntu 14.04 Nginx on AWS

Nginx Server Configuration on Ubuntu 14.04

Published on

server { listen 80 default_server; listen [::]:80 default_server ipv6only=on;root /var/www/SITE_DIRECTORY/html; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name DOMAIN_NAME; client_max_body_size 50m; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; # Uncomment to enable naxsi … Continue reading Nginx Server Configuration on Ubuntu 14.04

Nginx Server Configuration for WordPress on Ubuntu 14.04

Published on

server { listen 80 #listen 80 default_server; #listen [::]:80 default_server ipv6only=on; root /var/www/WORDPRESS_DIRECTORY; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name WORDPRESS_DOMAIN; client_max_body_size 50m; location / { # try_files $uri $uri/ =404; try_files $uri $uri/ /index.php?q=$uri&$args; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page … Continue reading Nginx Server Configuration for WordPress on Ubuntu 14.04

Setting Up a LAMP Server on Ubuntu 14.04

Published on

Update server. sudo apt-get update sudo apt-get upgrade Install git. sudo apt-get install git Install MySQL. sudo su apt-get install mysql-server mysql-client Install Apache2. apt-get install apache2 Install PHP (To search for PHP packages: apt-cache search php5). apt-get install php5 apt-get install libapache2-mod-php5 apt-get install php5-mysql apt-get install php5-curl apt-get install php5-gd apt-get install php5-intl … Continue reading Setting Up a LAMP Server on Ubuntu 14.04