• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Bagisto running very slow on AWS

General Discussion
5
23
4.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    ppstech last edited by 17 Jul 2019, 09:09

    Hello,
    I have uploaded by bagisto instance on AWS , but it's running very slow. How can I speed up my instance?

    1 Reply Last reply Reply Quote 1
    • R
      rahul last edited by 17 Jul 2019, 10:19

      Hi,

      Do following -

      1. Enable HTTP cache on server.
      2. Make APP_DEBUG = false if it is enable.
      3. Change APP_ENV to production.

      kindly check your storage & RAM of instance.

      Thanks

      1 Reply Last reply Reply Quote 1
      • P
        ppstech last edited by ppstech 17 Jul 2019, 11:18 17 Jul 2019, 11:16

        Thanks for your update. My instance is working fine now.
        I have one more issue.
        When I am setting new slider in default channel, the images does not load on slider in front end as well as not in admin panel. The images uploaded on storage folder properly.
        How to resolve this issue?
        Also how can I hide the phpdebugbar panel in footer?

        1 Reply Last reply Reply Quote 0
        • R
          rahul last edited by 17 Jul 2019, 12:35

          Hi,

          Make Sure that you have run 'php artisan storage:link'.

          Check Your .env file -

          APP_URL=http://localhost/bagisto/public/
          APP_DEBUG=false
          

          app url should be up to public & app debug will be false to hide phpdebugbar panel in footer.

          Thanks

          1 Reply Last reply Reply Quote 1
          • P
            ppstech last edited by ppstech 18 Jul 2019, 05:24 18 Jul 2019, 04:54

            Hi Rahul,
            I have already done all the steps you have mentioned. But still the image is not loading.
            I think while uploading the image gets corrupted, and can not load.
            The error message is "Could not load the image".
            What is the resolution for this?

            1 Reply Last reply Reply Quote 0
            • R
              rahul last edited by rahul 18 Jul 2019, 07:16 18 Jul 2019, 07:15

              Hi,

              Can you tell me size of your image & make sure that you have run 'php artisan vendor:publish' command & not renamed any folder.

              Thanks

              1 Reply Last reply Reply Quote 0
              • P
                ppstech last edited by 18 Jul 2019, 09:54

                our logo is 11KB only. We haven't rename any folder, and run the command 'php artisan vendor:publish'.
                What is the maximum size of upload image?

                1 Reply Last reply Reply Quote 0
                • R
                  rahul last edited by 18 Jul 2019, 10:14

                  Hi,

                  Can you share screenshot while uploading & error of front page, if you are running your project using 'php artisan serve' then app_url will be 127.0.0.1:8000 (APP_URL = 127.0.0.1:8000).

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • P
                    ppstech last edited by ppstech 18 Jul 2019, 10:54 18 Jul 2019, 10:51

                    There is no error while uploading. The image gets uploaded . But when open the channel for edit, there is no image. Please refer image1.

                    8113f228-eae3-4a15-8d63-1254775c29a8-image.png

                    on front end also, the image look as it is on admin side.

                    1 Reply Last reply Reply Quote 0
                    • R
                      rahul last edited by 18 Jul 2019, 11:00

                      Hi,

                      Can you share screenshot using inspect of this image, i want to check its src, share your app_url from env & URL of your application.

                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • P
                        ppstech last edited by 18 Jul 2019, 11:40

                        Hi rahul,
                        .env variable -
                        APP_URL=http://xx.xxx.xxx.xxx/demo/public

                        application url:
                        http://xx.xxx.xxx.xxx/demo

                        plz find inspect image below

                        4bc89ef4-9be0-454b-9daf-75c2c4d5df2e-image.png

                        1 Reply Last reply Reply Quote 0
                        • R
                          rahul last edited by 18 Jul 2019, 12:17

                          Hi,

                          Please use this link for solution - https://forums.bagisto.com/topic/188/broken-image-logo-in-bagisto-with-causes-and-solutions

                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • P
                            ppstech last edited by 19 Jul 2019, 08:00

                            Hi rahul,
                            I have refer the link. after I run the command 'unlink public' from project root I got the message "unlink: cannot unlink ‘public’: Is a directory"

                            please give me proper sequence to run the commands.

                            1 Reply Last reply Reply Quote 0
                            • R
                              rahul last edited by 19 Jul 2019, 09:53

                              Hi @ppstech ,

                              Please run following commands -

                              From the project's root directory

                              cd storage/app/public
                              unlink public
                              

                              From the project's root directory run the following command:

                              php artisan storage:link
                              

                              Follow the same sequence.

                              Thanks

                              1 Reply Last reply Reply Quote 0
                              • P
                                ppstech last edited by 19 Jul 2019, 10:06

                                hi rahul,
                                please find the image after running the commands

                                bfaa9bde-1a75-4ece-b9ed-dc68a7473f6d-image.png

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rahul last edited by 19 Jul 2019, 10:41

                                  Hi @ppstech

                                  Please run following -

                                  From root of your project -

                                  cd public
                                  unlink storage
                                  
                                  

                                  From Root of Your Project

                                  php artisan storage:link
                                  

                                  Thanks

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    ppstech last edited by ppstech 19 Jul 2019, 11:27 19 Jul 2019, 11:23

                                    Hi @rahul ,
                                    Thanks for your reply. My logo is visible now. But products images are still not visible. Also I am not able to access other pages. Only the home page is visible. Not a single link is working. Please refer the image.

                                    18467e1e-caa9-4123-b9d7-3ef695996ae3-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      rahul last edited by 19 Jul 2019, 11:42

                                      Hi @ppstech

                                      You have provide correct configuration to your web server, if you are using apche server then you can do following.

                                      Open Your apache2.conf file (Probably in etc->apche2 folder).

                                      Check in this file. you will find some think like -

                                      <Directory /var/www/html>
                                              Options Indexes FollowSymLinks
                                              AllowOverride None
                                              Require all granted
                                      </Directory>
                                      

                                      Note - Directory path is not compulsory & content inside this can be differ, we only need to change AllowOverride None to All

                                      change it to

                                      <Directory /var/www/html>
                                              Options Indexes FollowSymLinks
                                              AllowOverride All
                                              Require all granted
                                      </Directory>
                                      

                                      Please run following command after this -

                                      sudo a2enmod rewrite
                                      
                                      sudo /etc/init.d/apache2 restart
                                      
                                      or
                                      
                                      sudo service apache2 restart
                                      

                                      If your using different web server than apache, please search for same.

                                      Thanks

                                      W 1 Reply Last reply 6 Jun 2020, 12:16 Reply Quote 0
                                      • P
                                        ppstech last edited by 23 Jul 2019, 08:15

                                        Thanks for your reply. Its working now

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          RK REZA last edited by 28 Jul 2019, 09:06

                                          From
                                          APP_ENV=local
                                          To
                                          APP_ENV=production

                                          Gives this error page
                                          11.PNG

                                          1 Reply Last reply Reply Quote 0
                                          10 out of 23
                                          • First post
                                            10/23
                                            Last post