Closed GaneshKandu closed 5 years ago
Hi @GaneshKandu
Run 'chmod -R 777 ./storage' at root of your project.
Still getting Error
, Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations),, at vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, 660| // If an exception occurs when attempting to run a query, we'll format the error, 661| // message to include the bindings with SQL, which will make this exception a, 662| // lot more helpful to the developer instead of just the database's errors., 663| catch (Exception $e) {, > 664| throw new QueryException(, 665| $query, $this->prepareBindings($bindings), $e, 666| );, 667| }, 668|,, Exception trace:,, 1 Doctrine\DBAL\Driver\PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)"), vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31,, 2 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)"), vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27,, Please use the argument -v to see more details.
I think these all need to be writable please confirm
Hi @GaneshKandu
Provide Correct database credentials to .env file.
Provide Correct database credentials to .env file.
getting this after providing database credentials to .env and started installation again
, ErrorException : file_put_contents(.env): failed to open stream: Permission denied,, at vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php:96, 92| {, 93| file_put_contents($this->laravel->environmentFilePath(), preg_replace(, 94| $this->keyReplacementPattern(),, 95| 'APP_KEY='.$key,, > 96| file_get_contents($this->laravel->environmentFilePath()), 97| ));, 98| }, 99|, 100| /**,, Exception trace:,, 1 file_put_contents(".env", "APP_NAME=softaculous,APP_ENV=local,APP_VERSION=0.1.6,APP_KEY=base64:WGzuPbfngNFkT5ybK39WWSx5qmuPh2HqOXsMWtglb20=,APP_DEBUG=true,APP_URL={{url}},LOG_CHANNEL=stack,DB_CONNECTION=mysql,DB_HOST=localhost,DB_PORT=3306,DB_DATABASE={{mydb}},DB_USERNAME={{mydbuser}},DB_PASSWORD={{mydbpass}},BROADCAST_DRIVER=log,CACHE_DRIVER=file,SESSION_DRIVER=file,SESSION_LIFETIME=10,QUEUE_DRIVER=sync,REDIS_HOST=127.0.0.1,REDIS_PASSWORD=null,REDIS_PORT=6379,MAIL_DRIVER=smtp,MAIL_HOST=smtp.mailtrap.io,MAIL_PORT=2525,MAIL_USERNAME=null,MAIL_PASSWORD=null,MAIL_ENCRYPTION=null,SHOP_MAIL_FROM=shop@bagsaas.com,ADMIN_MAIL_TO=admin@bagsaas.com,PUSHER_APP_ID=,PUSHER_APP_KEY=,PUSHER_APP_SECRET=,PUSHER_APP_CLUSTER=mt1,MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}",MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}""), vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php:96,, 2 Illuminate\Foundation\Console\KeyGenerateCommand::writeNewEnvironmentFileWith("base64:WGzuPbfngNFkT5ybK39WWSx5qmuPh2HqOXsMWtglb20="), vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php:80,, Please use the argument -v to see more details.
Seeding: Webkul\Admin\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Category\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Category\Database\Seeders\CategoryTableSeeder,Seeding: Webkul\Inventory\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Inventory\Database\Seeders\InventoryTableSeeder,Seeding: Webkul\Core\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Core\Database\Seeders\LocalesTableSeeder,Seeding: Webkul\Core\Database\Seeders\CurrencyTableSeeder,Seeding: Webkul\Core\Database\Seeders\CountriesTableSeeder,Seeding: Webkul\Core\Database\Seeders\StatesTableSeeder,Seeding: Webkul\Core\Database\Seeders\ChannelTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeOptionTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeFamilyTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeGroupTableSeeder,Seeding: Webkul\User\Database\Seeders\DatabaseSeeder,Seeding: Webkul\User\Database\Seeders\RolesTableSeeder,Seeding: Webkul\User\Database\Seeders\AdminsTableSeeder,Seeding: Webkul\Customer\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Customer\Database\Seeders\CustomerGroupTableSeeder
, ErrorException : file_put_contents(resources/views/vendor/notifications/email.blade.php): failed to open stream: Permission denied,, at vendor/league/flysystem/src/Adapter/Local.php:200, 196| */, 197| public function update($path, $contents, Config $config), 198| {, 199| $location = $this->applyPathPrefix($path);, > 200| $size = file_put_contents($location, $contents, $this->writeFlags);, 201|, 202| if ($size === false) {, 203| return false;, 204| },, Exception trace:,, 1 file_put_contents("resources/views/vendor/notifications/email.blade.php", "@component('mail::message'),{{-- Greeting --}},@if (! empty($greeting)),# {{ $greeting }},@else,@if ($level == 'error'),# @lang('Whoops!'),@else,# @lang('Hello!'),@endif,@endif,,{{-- Intro Lines --}},@foreach ($introLines as $line),{{ $line }},,@endforeach,,{{-- Action Button --}},@isset($actionText),,@component('mail::button', ['url' => $actionUrl, 'color' => $color]),{{ $actionText }},@endcomponent,@endisset,,{{-- Outro Lines --}},@foreach ($outroLines as $line),{{ $line }},,@endforeach,,{{-- Salutation --}},@if (! empty($salutation)),{{ $salutation }},@else,@lang('Regards'),
{{ config('app.name') }},@endif,,{{-- Subcopy --}},@isset($actionText),@component('mail::subcopy'),@lang(, "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n"., 'into your web browser: [:actionURL](:actionURL)',, [, 'actionText' => $actionText,, 'actionURL' => $actionUrl,, ],),@endcomponent,@endisset,@endcomponent,"), vendor/league/flysystem/src/Adapter/Local.php:200,, 2 League\Flysystem\Adapter\Local::update("email.blade.php", "@component('mail::message'),{{-- Greeting --}},@if (! empty($greeting)),# {{ $greeting }},@else,@if ($level == 'error'),# @lang('Whoops!'),@else,# @lang('Hello!'),@endif,@endif,,{{-- Intro Lines --}},@foreach ($introLines as $line),{{ $line }},,@endforeach,,{{-- Action Button --}},@isset($actionText),,@component('mail::button', ['url' => $actionUrl, 'color' => $color]),{{ $actionText }},@endcomponent,@endisset,,{{-- Outro Lines --}},@foreach ($outroLines as $line),{{ $line }},,@endforeach,,{{-- Salutation --}},@if (! empty($salutation)),{{ $salutation }},@else,@lang('Regards'),
{{ config('app.name') }},@endif,,{{-- Subcopy --}},@isset($actionText),@component('mail::subcopy'),@lang(, "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n"., 'into your web browser: [:actionURL](:actionURL)',, [, 'actionText' => $actionText,, 'actionURL' => $actionUrl,, ],),@endcomponent,@endisset,@endcomponent,", Object(League\Flysystem\Config)), vendor/league/flysystem/src/Filesystem.php:99,, Please use the argument -v to see more details.
Hi @GaneshKandu
Run 'chmod -R 777 *' at root of your project.
Run 'chmod -R 777 *' at root of your project.
is it secure ? other user will also get permission to change my file and can insert a malicious code
Hi @GaneshKandu
apache user (www-data/apache) should have write permission to .env file. Run 'chown www-data:www-data .env'
Run 'chown www-data:www-data .env'
Application key [base64:rScuzrSuxgQ81hl623Fp2VjLFI62h5hnPIUhxm7oqNs=] set successfully.
Seeding: Webkul\Admin\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Category\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Category\Database\Seeders\CategoryTableSeeder,Seeding: Webkul\Inventory\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Inventory\Database\Seeders\InventoryTableSeeder,Seeding: Webkul\Core\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Core\Database\Seeders\LocalesTableSeeder,Seeding: Webkul\Core\Database\Seeders\CurrencyTableSeeder,Seeding: Webkul\Core\Database\Seeders\CountriesTableSeeder,Seeding: Webkul\Core\Database\Seeders\StatesTableSeeder,Seeding: Webkul\Core\Database\Seeders\ChannelTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeOptionTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeFamilyTableSeeder,Seeding: Webkul\Attribute\Database\Seeders\AttributeGroupTableSeeder,Seeding: Webkul\User\Database\Seeders\DatabaseSeeder,Seeding: Webkul\User\Database\Seeders\RolesTableSeeder,Seeding: Webkul\User\Database\Seeders\AdminsTableSeeder,Seeding: Webkul\Customer\Database\Seeders\DatabaseSeeder,Seeding: Webkul\Customer\Database\Seeders\CustomerGroupTableSeeder
, ErrorException : file_put_contents(resources/views/vendor/notifications/email.blade.php): failed to open stream: Permission denied,, at vendor/league/flysystem/src/Adapter/Local.php:200, 196| */, 197| public function update($path, $contents, Config $config), 198| {, 199| $location = $this->applyPathPrefix($path);, > 200| $size = file_put_contents($location, $contents, $this->writeFlags);, 201|, 202| if ($size === false) {, 203| return false;, 204| },, Exception trace:,, 1 file_put_contents("resources/views/vendor/notifications/email.blade.php", "@component('mail::message'),{{-- Greeting --}},@if (! empty($greeting)),# {{ $greeting }},@else,@if ($level == 'error'),# @lang('Whoops!'),@else,# @lang('Hello!'),@endif,@endif,,{{-- Intro Lines --}},@foreach ($introLines as $line),{{ $line }},,@endforeach,,{{-- Action Button --}},@isset($actionText),,@component('mail::button', ['url' => $actionUrl, 'color' => $color]),{{ $actionText }},@endcomponent,@endisset,,{{-- Outro Lines --}},@foreach ($outroLines as $line),{{ $line }},,@endforeach,,{{-- Salutation --}},@if (! empty($salutation)),{{ $salutation }},@else,@lang('Regards'),
{{ config('app.name') }},@endif,,{{-- Subcopy --}},@isset($actionText),@component('mail::subcopy'),@lang(, "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n"., 'into your web browser: [:actionURL](:actionURL)',, [, 'actionText' => $actionText,, 'actionURL' => $actionUrl,, ],),@endcomponent,@endisset,@endcomponent,"), vendor/league/flysystem/src/Adapter/Local.php:200,, 2 League\Flysystem\Adapter\Local::update("email.blade.php", "@component('mail::message'),{{-- Greeting --}},@if (! empty($greeting)),# {{ $greeting }},@else,@if ($level == 'error'),# @lang('Whoops!'),@else,# @lang('Hello!'),@endif,@endif,,{{-- Intro Lines --}},@foreach ($introLines as $line),{{ $line }},,@endforeach,,{{-- Action Button --}},@isset($actionText),,@component('mail::button', ['url' => $actionUrl, 'color' => $color]),{{ $actionText }},@endcomponent,@endisset,,{{-- Outro Lines --}},@foreach ($outroLines as $line),{{ $line }},,@endforeach,,{{-- Salutation --}},@if (! empty($salutation)),{{ $salutation }},@else,@lang('Regards'),
{{ config('app.name') }},@endif,,{{-- Subcopy --}},@isset($actionText),@component('mail::subcopy'),@lang(, "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n"., 'into your web browser: [:actionURL](:actionURL)',, [, 'actionText' => $actionText,, 'actionURL' => $actionUrl,, ],),@endcomponent,@endisset,@endcomponent,", Object(League\Flysystem\Config)), vendor/league/flysystem/src/Filesystem.php:99,, Please use the argument -v to see more details.
Hi @GaneshKandu
Run 'chown -R www-data:www-data vendor', 'chown -R www-data:www-data public' and 'php artisan vendor:publish'.
Issue Resolved
The issue is still not resolved. Wondering, how come webkul developers marked it as closed.
@rahulanand77 because this is not a bug within Bagisto.
I installed Bagisto on window & linux, servers + virtual machines without any problem.
Hi,
Trying to install Bagisto v0.1.6 on my server but getting errors while install
system
Step i followed to install Bagisto v0.1.6 https://github.com/bagisto/bagisto#b-extract-the-contents-of-zip-and-execute-the-project-in-browser
I think it's permission issue, Installer doesn't check for file permission during install, and file permission doesn't mentioned in installation document
Please let me know what are the file permission required to install Bagisto v0.1.6