Creating a Non-root User with Sudo Access on Ubuntu

Published on

Add a new user. sudo useradd <username> Add a sudo entry. sudo visudo Below the section heading # User privilege specification add the following entry. <username> ALL=(ALL:ALL) ALL Create the home folder sudo mkdir /home/<username> chown <username>:<usergroup> /home/<username> -R Set the password for the user. sudo passwd <username> Add the following entry to the /etc/passwd … Continue reading Creating a Non-root User with Sudo Access on Ubuntu

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

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

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

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

Apache 2.4 Laravel Server Configuration

Published on

<VirtualHost *:80> ServerAdmin webmaster@PROJECT_NAME.com DocumentRoot /var/www/PROJECT_NAME/public/ ServerName PROJECT_DOMAIN <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/PROJECT_NAME/public/> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted Allow from all </Directory> #ErrorDocument 404 / ErrorLog ${APACHE_LOG_DIR}/PROJECT_NAME_error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/PROJECT_NAME_access.log combined </VirtualHost> <IfModule … Continue reading Apache 2.4 Laravel Server Configuration

Creating a Laravel 5 Project on Ubuntu 14.04 with Apache 2.4

Published on

Clone the project. composer create-project laravel/laravel PROJECT_NAME –prefer-dist or laravel new PROJECT_NAME For instructions on how to install composer see Installing Composer on Ubuntu. If you get a message that mcrypt is not installed you will need to install it. sudo apt-get install php5-mcrypt To boot up a quick server page you can use PHP’s … Continue reading Creating a Laravel 5 Project on Ubuntu 14.04 with Apache 2.4

Installing Composer on Ubuntu

Published on

cd /tmp curl -s http://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/ alias composer=’/usr/local/bin/composer.phar’ Reference: https://getcomposer.org/download/