problems setting up ubuntu linux laravel 5.3
Posted: 24 Sep 2016, 20:28
hi,
i have tried repeatedly but cannot get this package successfully installed following the readme at: https://aimeos.org/Laravel
i am running
ubuntu 14.04
apache web server
php 5.6.26
aimeos 2016.07
laravel 5.3.10
laravel/homestead vm
database mysql
my project is named aimeos and my database is also named aimeos
i used
composer create-project laravel/laravel aimeos --prefer-dist
to create the project
i made the changes to composer.json
...
"license": "MIT",
"type": "project",
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"aimeos/aimeos-laravel": "~2016.07",
"php": ">=5.6.4",
"laravel/framework": "5.3.*"
and
...
"post-update-cmd": [
"php artisan vendor:publish --tag=public --force",
"php artisan vendor:publish",
"php artisan migrate",
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
i moved to the vm
vagrant ssh
cd code/aimeos
composer update
all seemed to go fine
modified config/database.php to use my credentials
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'aimeos'),
'username' => env('DB_USERNAME', 'homestead'),
'password' => env('DB_PASSWORD', 'secret'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
did the same with .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=aimeos
DB_USERNAME=homestead
DB_PASSWORD=secret
and finally... added
Aimeos\Shop\ShopServiceProvider::class,
to the providers array in config/app.php
i went back to the vm and executed the following commands
~/code/aimeos$ php artisan vendor:publish
~/code/aimeos$ php artisan migrate
~/code/aimeos$ php artisan aimeos:setup --option=setup/default/demo:1
~/code/aimeos$ php artisan aimeos:cache
There are 47 tables in my database. All appears to have worked normally.
mysql> use aimeos;show tables;
Database changed
+-------------------------------+
| Tables_in_aimeos |
+-------------------------------+
| madmin_cache |
| madmin_cache_tag |
| madmin_job |
| madmin_log |
| madmin_queue |
...
i have followed the instructions as closely as i can but I can't get past
http://127.0.0.1:8000/index.php/list
http://aimeos.dev:8000/index.php/list // my project is defined to the vm and this works for several other projects
Both of those get me
NotFoundHttpException in RouteCollection.php line 161
These next two get me the laravel welcome page.
http://127.0.0.1:8000/index.php
I notice that routes/web.php contains
Route::get('/', function () {
return view('welcome');
});
I also notice that lots of lines are commented out in config/shop.php but I'm not second guessing anyone.
I don't know what else to try. Seems like many are past this. Can someone see what I'm doing wrong?
thanks
i have tried repeatedly but cannot get this package successfully installed following the readme at: https://aimeos.org/Laravel
i am running
ubuntu 14.04
apache web server
php 5.6.26
aimeos 2016.07
laravel 5.3.10
laravel/homestead vm
database mysql
my project is named aimeos and my database is also named aimeos
i used
composer create-project laravel/laravel aimeos --prefer-dist
to create the project
i made the changes to composer.json
...
"license": "MIT",
"type": "project",
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"aimeos/aimeos-laravel": "~2016.07",
"php": ">=5.6.4",
"laravel/framework": "5.3.*"
and
...
"post-update-cmd": [
"php artisan vendor:publish --tag=public --force",
"php artisan vendor:publish",
"php artisan migrate",
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
i moved to the vm
vagrant ssh
cd code/aimeos
composer update
all seemed to go fine
modified config/database.php to use my credentials
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'aimeos'),
'username' => env('DB_USERNAME', 'homestead'),
'password' => env('DB_PASSWORD', 'secret'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
did the same with .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=aimeos
DB_USERNAME=homestead
DB_PASSWORD=secret
and finally... added
Aimeos\Shop\ShopServiceProvider::class,
to the providers array in config/app.php
i went back to the vm and executed the following commands
~/code/aimeos$ php artisan vendor:publish
~/code/aimeos$ php artisan migrate
~/code/aimeos$ php artisan aimeos:setup --option=setup/default/demo:1
~/code/aimeos$ php artisan aimeos:cache
There are 47 tables in my database. All appears to have worked normally.
mysql> use aimeos;show tables;
Database changed
+-------------------------------+
| Tables_in_aimeos |
+-------------------------------+
| madmin_cache |
| madmin_cache_tag |
| madmin_job |
| madmin_log |
| madmin_queue |
...
i have followed the instructions as closely as i can but I can't get past
http://127.0.0.1:8000/index.php/list
http://aimeos.dev:8000/index.php/list // my project is defined to the vm and this works for several other projects
Both of those get me
NotFoundHttpException in RouteCollection.php line 161
These next two get me the laravel welcome page.
http://127.0.0.1:8000/index.php
I notice that routes/web.php contains
Route::get('/', function () {
return view('welcome');
});
I also notice that lots of lines are commented out in config/shop.php but I'm not second guessing anyone.
I don't know what else to try. Seems like many are past this. Can someone see what I'm doing wrong?
thanks