$ cd /var/www/html
$ git clone https://github.com/laravel/laravel.git
$ mv laravel laravel-wordpress
$ cd /var/www/laravel-wordpress
$ sudo composer install
$ sudo chown -R www-data.www-data /var/www/html/laravel-wordpress
$ sudo chmod -R 755 /var/www/html/laravel-wordpress
$ sudo chmod -R 777 /var/www/html/laravel-wordpress/storage
$ sudo mv .env.example .env
$ php artisan key:generate
$ vi .env
mysql> CREATE DATABASE laravel_wordpress;
mysql> GRANT ALL ON laravel_wordpress.* to 'laravel'@'localhost' IDENTIFIED BY 'secret';
mysql> FLUSH PRIVILEGES;
mysql> quit
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_wordpress
DB_USERNAME=laravel
DB_PASSWORD=secret
$ sudo nano /etc/apache2/sites-enabled/000-default.conf
add:
Options FollowSymLinks
AllowOverride None
<Directory /var/www/html/laravel-wordpress>
AllowOverride All
$ sudo service apache2 restart
$ sudo curl -O https://wordpress.org/latest.tar.gz
$ sudo tar xzvf latest.tar.gz
$ sudo touch wordpress/.htaccess
$ sudo cp wordpress/wp-config-sample.php wordpress/wp-config.php
$ sudo mkdir wp-content/upgrade
$ sudo chmod g+w wp-content
$ sudo chmod -R g+w wp-content/themes
$ sudo chmod -R g+w wp-content/plugins
$ curl -s https://api.wordpress.org/secret-key/1.1/salt/
mysql> CREATE DATABASE wordpress_laravel;
mysql> GRANT ALL ON wordpress_laravel.* to 'laravel'@'localhost' IDENTIFIED BY 'secret';
mysql> FLUSH PRIVILEGES;
mysql> quit
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.