Adding Password Authentication on Apache with Ubuntu 14.04

Published on

Update packages and make sure apache2-utils is installed. sudo apt-get update sudo apt-get install apache2 apache2-utils Add the user to the password file. (Only use the -c parameter the first time to create the file.) sudo htpasswd -c /etc/apache2/.htpasswd USERNAME Configure the access control within the virtual host definition /etc/apache2/sites-available/HOST_CONF_FILE. Add the lines in red. … Continue reading Adding Password Authentication on Apache with Ubuntu 14.04

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

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