PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Error in Geekshop Theme

vijay-kumar-2

Jul 9th, 2020 09:34 AM

Team, We have installed Geekshop theme followed all steps in documentation.

Database migration seed & php artisan storage:link is showing success but still theme is not working

http://shop.bestlocaldeals.in/login

Error -The requested URL was not found on this server.

bobbyiliev

Jul 9th, 2020 08:51 PM

Hi there,

You need to change your document root to point to your Laravel public folder. At the moment your public folder is accessible through this URL:

http://shop.bestlocaldeals.in/public

Let me known how it goes after the change!

vijay-kumar-2

Jul 10th, 2020 08:39 AM

Hi Team,

Iam not clear on this point i have to move my public folder files to var/www/html forlder or ? can you please elaborate on this.

vijay-kumar-2

Jul 10th, 2020 08:52 AM

As my understand Public folder in my root folder i have to install composer in public folder please correct if iam wrong.

bobbyiliev

Jul 10th, 2020 04:10 PM

Hi there,

You can leave the whole project in the /var/www/html folder, and run composer install in that folder, but then adjust your webserver's document root to /var/www/html/public.

This is a standard configuration for laravel.

Let me know how it goes!

bobbyiliev

Jul 11th, 2020 05:12 AM

Hello,

I would recommend following the step by step instructions from the documentation here:

https://devdojo.com/script/geekshop/documentation

Let me know how it goes and if any of the steps are not clear.

vijay-kumar-2

Jul 11th, 2020 05:51 AM

I have followed same documentation but still not working project files and composer are in html folder

Please guide on those web server document which i have to adjust in public folder only this step is issue please help

vijay-kumar-2

Jul 13th, 2020 07:10 AM

Hi,

Waiting for your reply please help

bobbyiliev

Jul 13th, 2020 07:41 AM

Hello,

To change that you need to edit your Apache configuration file at:

/etc/apache2/sites-enabled/default

And there change the document root from:

/var/www/html

To:

/var/www/html/public

Then after that run an Apache config test:

sudo apachectl -t

And only if you get Syntax OK only then restart Apache, if you get a different message do not restart Apache!

sudo systemctl restart apache2

After that your document root will be correct.

Let me know how it goes.

vijay-kumar-2

Jul 13th, 2020 12:30 PM

Hi,

I have followed the steps for Apache configuration as mentioned attached screenshots still not working. Also i'm getting some error while accessing phpMyAdmin tables attached errors.

Apache-Restart.JPG

Default.JPG

Error.JPG

MYSQL.JPG

bobbyiliev

Jul 13th, 2020 01:07 PM

Hello,

The error that you are seeing is referring to some configuration problems on your server and not really anything to do with the GeekShop.

Regarding the script itself, I think that your server might not be configured for Laravel correctly. I could suggest follow the sptes from this article here:

How to install Laravel on Ubuntu

One thing that you need to do is to have the following configuration in your Apache config:

   <Directory /var/www/html/public>
        Require all granted
        AllowOverride All
   </Directory>

Also to see the actual error you could enable Laravel debug by editing the /var/www/html/.env file and chaning APP_DEBUG to equal true. Then visit your site again and you will see the actual error.

vijay-kumar-2

Jul 14th, 2020 10:49 AM

Hi,

Debug enable please find errors also i have added Directory configuration in Apache config file

(1/1) UnexpectedValueException The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

Untitled.png

vijay-kumar-2

Jul 14th, 2020 10:50 AM

Please help and let you know do you also provide support for installing script in our digital ocean server we can pay you the charges.

bobbyiliev

Jul 14th, 2020 10:52 AM

Hello,

You need to make sure that the storage folder has write permissions for the Apache user.

You need to run this command here:

sudo chown -R www-data: /var/www/html

Let me know how it goes after that.

vijay-kumar-2

Jul 14th, 2020 11:04 AM

Hi, Site Home page is working now http://shop.bestlocaldeals.in

But login URL and products pages are not working

Not Found The requested URL was not found on this server.

Load More Answers