CodeAnywhere is a great cloud IDE to create web apps but it lacks that latest install of Laravel. So I used blank centos6.5 stack as my base and then following this step to setup laravel environtment.
sudo yum update
sudo yum install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
After that, we’ll install the basic packages required to run a fresh Laravel installation
sudo yum --enablerepo=remi,remi-php71 install git httpd php php-common mysql mysql-server php-pecl-zip php-mysql php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
wget https://getcomposer.org/composer.phar
chmod +x composer.phar
mv composer.phar /usr/bin/composer
sudo vim /etc/httpd/conf/httpd.conf
using vim edit the root directory to "/home/cabox/workspace"
sudo service httpd start11
sudo /sbin/chkconfig --levels 235 httpd on
sudo service mysqld start
sudo /sbin/chkconfig --levels 235 mysqld on
dont forget to run mysql secure installation
mysql_secure_installation
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs
sudo yum install gcc-c++ make
node -v
npm -v
composer global require "laravel/installer"
place composer's system-wide vendor bin directory in your $PATH so the laravel executable can be located by your system
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
source ~/.bashrc
laravel
laravel new app```
Hi,
I have installed the laravel successfully. But when I accessing in the browser I can only the files and directories list instead of a welcome page.