Skip to content

jcreforme/laravel-wordpress

Repository files navigation

Step Laravel Installation

$ 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

Steps Create BD for Larevel

mysql> CREATE DATABASE laravel_wordpress;
mysql> GRANT ALL ON laravel_wordpress.* to 'laravel'@'localhost' IDENTIFIED BY 'secret';
mysql> FLUSH PRIVILEGES;
mysql> quit

SET .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_wordpress
DB_USERNAME=laravel
DB_PASSWORD=secret

Apache config

$ 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

Instaling Wordpress

$ 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/

Steps Create BD for Wordpress

mysql> CREATE DATABASE wordpress_laravel;
mysql> GRANT ALL ON wordpress_laravel.* to 'laravel'@'localhost' IDENTIFIED BY 'secret';
mysql> FLUSH PRIVILEGES;
mysql> quit

Build Status Total Downloads Latest Stable Version License

About Laravel

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:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages