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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
Reference: https://github.com/facebook/jest/issues/3254 |
class DatabaseSeeder extends Seeder { | |
/** | |
* Run the database seeds. | |
* | |
* @return void | |
*/ | |
public function run() | |
{ | |
Eloquent::unguard(); |
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] |
https://www.linuxito.com/programacion/237-el-modelo-de-desarrollo-testing-y-produccion |
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 | |
----- |
- 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 | |
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
-- 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 |
select | |
p.idproducto, | |
p.nombreproducto, | |
p.idproveedor, | |
p.idcategoría, | |
p.unidadesenexistencia, | |
pr.nombrecontacto, | |
pr.cargocontacto, | |
ca.nombrecategoría |
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 |