Deploy Laravel Web App to Windows Server 2012

Some software is required as follows: XAMPP (Apache, PHP, Tomcat) (https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/) Composer (https://getcomposer.org/Composer-Setup.exe) PostgreSQL 9.5 (https://www.postgresql.org/download/windows/) PgAdmin 4 v2 (v3 run on web base) (https://www.pgadmin.org/download/pgadmin-4-windows/) JAVA JDK 8 (https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) GIT (https://git-scm.com/download/) Install Laravel application as follows: Git clone Laravel project by using the command git clone https://link_to_project mywebapp Jump into a project folder and install Laravel by using composer cd mywebapp composer install Copy .env.example file … Continue reading Deploy Laravel Web App to Windows Server 2012

Deploy Laravel Web App to Server CentOS7

This note shows my mistakes in an early stage of using Laravel due to lack of understanding the way this framework works. This also shows my solution and my experience after solving this problem. Problem In the beginning, I deploy my project to Apache by using Git to clone and pull a project from my PC. Later, I used `php artisan serve –host=110.xxx.xx.xx –port=8080 ` … Continue reading Deploy Laravel Web App to Server CentOS7

How to install a production environment for Laravel and Java web app on CentOS7.

Requirement applications: PHP ^7.0 Composer Apache PostgreSQL Git SQL server driver JAVA 8 TOMCAT 9 Process: APACHE Install httpd by using yum install httpd Start httpd service sudo systemctl start httpd.service SELinux is disabled on the Vultr CentOS 7 x64 server instance by default. If you turn it on manually, you need also configure SELinux as below: sudo setsebool -P httpd_can_network_connect on sudo setsebool -P … Continue reading How to install a production environment for Laravel and Java web app on CentOS7.

Deal with Swift-TransportException when sending Gmail from Laravel application

Error: ” Swift_TransportException Connection could not be established “ The problem has occurred when we send a mail from the production server using Gmail. The notice of exception is shown below. Swift_TransportException Connection could not be established with host smtp.gmail.com [Permission denied #13] Causes This problem is caused by SELinux. So we will run some command for accepting httpd can open the socket and send … Continue reading Deal with Swift-TransportException when sending Gmail from Laravel application

Laravel Command Sheet

This is a Laravel commands board which are often used by me. I think it is good for aggregate some used command for quick searching. Function Command Install Laravel installer via Composer composer global require “laravel/installer” Create a project via Laravel installer laravel new [projectname] Create project via Composer composer create-project –prefer-dist laravel/laravel [projectname] Run local development server php artisan serve Run development server on … Continue reading Laravel Command Sheet