These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.
Install Mcrypt using Homebrew
# PHP 7
#!/usr/bash | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
#Create a Desktop Entry | |
cat > ~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman |
v=8 # set to 4, 5, 6, ... as needed | |
curl -sL https://deb.nodesource.com/setup_$v.x | sudo -E bash - | |
Then install the Node.js package. | |
sudo apt-get install -y nodejs |
cd /tmp | |
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
rpm -ivh remi-release-7.rpm | |
You can install PHP7.0 in no-conflict mode. This means that your FPM service will be php70-php-fpm, your php.ini will be different, and your cli will be php70 | |
Code: | |
yum install php70-php-bcmath php70-php-cli php70-php-common php70-php-fpm php70-php-gd php70-php-intl php70-php-json php70-php-mbstring php70-php-mcrypt php70-php-mysqlnd php70-php-opcache php70-php-pdo php70-php-pear php70-php-pecl-uploadprogress php70-php-pecl-zip php70-php-soap php70-php-xml php70-php-xmlrpc - | |
Edit /etc/opt/remi/php70/php-fpm.d/www.conf |
select | |
p.idproducto, | |
p.nombreproducto, | |
p.idproveedor, | |
p.idcategoría, | |
p.unidadesenexistencia, | |
pr.nombrecontacto, | |
pr.cargocontacto, | |
ca.nombrecategoría |
-- Install remi repository: | |
(Need epel repository :: yum install epel-release) | |
cd /tmp | |
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
rpm -ivh remi-release-7.rpm | |
-- Install php |
These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.
Install Mcrypt using Homebrew
# PHP 7
- In new webiste select -> * <- to share the same ip | |
- select ip to use ip | |
:Danger: select unique ip for some sites provoque problems. | |
:DNS ZONE: same logic | |
Solution: Increasing the amount of inotify watchers | |
run this command : | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
----- |
https://www.linuxito.com/programacion/237-el-modelo-de-desarrollo-testing-y-produccion |
In root directory (public_html/.htaccess) | |
RewriteEngine On | |
RewriteRule ^(.*)$ public/$1 [L] | |
In public/.htaccess | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] |