ubuntu@ip-172-31-26-11:~$ composer create-project --prefer-dist laravel/lumen authors
Problem 1
- phpunit/phpunit 8.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
resolution:
https://stackoverflow.com/questions/43408604/php7-install-ext-dom-issue
In above link, both below commands failed and takes long.
composer update
composer require cviebrock/eloquent-sluggable
For above memory exception, below link has a solution.
https://github.com/geerlingguy/drupal-vm/issues/547
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Above seems working. Failed to download....Now trying to download from source ...INstalling... continue.composer update is finished.
Below takes forever. have a coffee.
composer require cviebrock/eloquent-sluggable
I also had bunch of below error. which could be resolved by below url. I think I should have installed these first.
https://stackoverflow.com/questions/41274829/php-error-the-zip-extension-and-unzip-command-are-both-missing-skipping
The zip extension and unzip command are both missing,
NOw, let's create the lumen project again.
composer create-project --prefer-dist laravel/lumen authors
Beautiful, project created on LAMP! It was not working on XAMPP.
Before running sql part, migration, you have to
(1) create schema manually by running mysql
(2) edit .env with root userid/password
Deploy
This url saved me!
https://laracasts.com/discuss/channels/lumen/how-to-deploy-lumen-on-web-hosting
and this looks helpful as well.
https://stackoverflow.com/questions/55629307/how-to-deploy-lumen-framework-on-shared-hosting-subdomain
lumen deploy The requested URL was not found on this server.'
The error fixed by below
https://stackoverflow.com/questions/28242495/laravel-the-requested-url-was-not-found-on-this-server
ubuntu@ip-172-31-26-11:/etc/apache2/mods-enabled$ sudo vim /etc/apache2/apache2.conf
ubuntu@ip-172-31-26-11:/etc/apache2/mods-enabled$ sudo systemctl restart apache2
Following the godaddy url, my lumen api structure look as below.
No comments:
Post a Comment