Hosting aimeos on live server

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
octobercms
Posts: 3
Joined: 05 Mar 2020, 02:44

Hosting aimeos on live server

Post by octobercms » 05 Mar 2020, 02:47

I am new to aimeos and just installed it.When I run the application using php artisan serve in local server, everything works perfectly. But when I hosted it online or tried to open it using XAAMP server from htdocs folder, the CSS and images are not loaded.
Capture.PNG
Capture.PNG (16.86 KiB) Viewed 2258 times


I have kept the public folder in the root directory of the project but I got as in the image shown.

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Hosting aimeos on live server

Post by aimeos » 05 Mar 2020, 14:40

The public folder needs to be the document root, i.e https://yourdomain.tld/ needs to show the Laravel start page.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
octobercms
Posts: 3
Joined: 05 Mar 2020, 02:44

Re: Hosting aimeos on live server

Post by octobercms » 07 Mar 2020, 07:37

The public folder is already the document root. When I enter https://mydomain.tld/ it redirects to https://yourdomain.tld/shop but no images and CSS are available for the site. When I inspect the image, I got this:

Code: Select all

<img class="lazy-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEEAAEALAAAAAABAAEAAAICTAEAOw==" data-src="https://demo.aimeos.org/media/1.jpg" data-srcset="https://demo.aimeos.org/media/1.jpg 1w, https://demo.aimeos.org/media/1-big.jpg 250w" alt="Demo: Article 1.jpg">
I could not understand how to setup aimeos. When I run it using php artisan serve in my local server, everything is working perfectly but the same problem occurs when I try to access it using localhost/aimeos/shop in my local setup.

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Hosting aimeos on live server

Post by aimeos » 07 Mar 2020, 16:15

Maybe there's a problem with your server configuration. Can you check in the inspector of your browser (network tab) the response from the server for the JS and CSS files?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
octobercms
Posts: 3
Joined: 05 Mar 2020, 02:44

Re: Hosting aimeos on live server

Post by octobercms » 08 Mar 2020, 10:23

I have not changed any default configurations or path after installation of aimeos. I have just made the public directory as root. I got the following error messages:
Attachments
Capture.PNG
Capture.PNG (37.87 KiB) Viewed 2210 times

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Hosting aimeos on live server

Post by aimeos » 08 Mar 2020, 11:04

Please make sure there's no misconfiguration of your live server and the app.js file is available in the ./public/js/ directory of your installation.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply