aimeos / aimeos-laravel

Laravel ecommerce package for ultra fast online shops, scalable marketplaces, complex B2B applications and #gigacommerce
https://aimeos.org/Laravel
MIT License
7.33k stars 1.05k forks source link

I cannot get passed this spot #288

Closed mikeyapina closed 5 years ago

mikeyapina commented 5 years ago

I cannot get pass this point and after the installation admin or any other link does not work .. this is the error at last line

ubuntu@ip-172-31-13-192:/var/www/html$ sudo composer create-project aimeos/aimeos store Do not run Composer as root/super user! See https://getcomposer.org/root for details Installing aimeos/aimeos (2018.10.3) As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension. This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost. Installing 'unzip' may remediate them.

aimeos commented 5 years ago

Run ./artisan serve to start the built in web PHP server (for development) and go to http://127.0.0.1:8000/admin afterwards. This will display a login form

mikeyapina commented 5 years ago

I ran the command and in the CLI it is waiting .. but how do I access it since it is a sserver in the cloud? There is no localhost access here ..

ubuntu@ip-172-31-13-192:/var/www/html/store$ sudo php artisan serve Laravel development server started: http://127.0.0.1:8000

mikeyapina commented 5 years ago

http://ec2-54-153-121-233.us-west-1.compute.amazonaws.com:8000/admin

no result as expected plus ther eis no admin folder in that or the /store/ root

aimeos commented 5 years ago

For AWS and all other non-local environments, the ./public folder of your Laravel application must be the document root configured in AWS / the web server.

mikeyapina commented 5 years ago

I installed this on /var/www/html/store/ I have another app on /var/www/html/pos/ I am a little confused as to what you are saying the /pos/ install works why doesn't the /store/ ?

Thanks for the feedback ..

aimeos commented 5 years ago

Laravel doesn't support installation in subdirectories very good and you must not do it for security reasons (your .env file will be public then). It will work if the document root of the web server points to /var/www/html/store/public/

For more questions you should ask in the Laravel forums for help because it's a common Laravel related question and not Aimeos specific.

mikeyapina commented 5 years ago

i have researched that before contacting you .. http://54.153.121.233:8000/store/admin/ is not making any sense

http://54.153.121.233:8000/store/public/admin

http://54.153.121.233/store/public/admin

i clearly was able to get many laravel products to work on this server just not your project

mikeyapina commented 5 years ago

http://54.153.121.233/store/public/index.php/list gives me

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

mikeyapina commented 5 years ago

I gave its own url and still having same issues

http://store.regenics.com/store/public/list <-- nothing http://store.regenics.com/store/ list of all files http://store.regenics.com/store/public/ redirects to list http://store.regenics.com/admin gives The requested URL /admin was not found on this server. http://store.regenics.com:8000/admin gives --->

This site can’t be reached store.regenics.com took too long to respond.

Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_TIMED_OUT Check your internet connection. Check any cables and reboot any routers, modems, or other network devices you may be using.

Allow Opera to access the network in your firewall or antivirus settings. If it is already listed as a program allowed to access the network, try removing it from the list and adding it again.

If you use a proxy server… Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to Applications > System Preferences > Network > Advanced > Proxies and deselect any proxies that have been selected.

mikeyapina commented 5 years ago

it is pointing as u suggested still does not work

<VirtualHost *:80> ServerAdmin info@regenics.com

ServerName store.regenics.com
ServerAlias store.regenics.com

DocumentRoot /var/www/html/store/public

ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined

ping ---- 64 bytes from store.regenics.com (127.0.0.1): icmp_seq=4 ttl=64 time=0.031 ms

mikeyapina commented 5 years ago

This appears to be exactly not a laravel issue it is a configuration issue by your scripts

aimeos commented 5 years ago

http://store.regenics.com/ should now redirect to http://store.regenics.com/list/ and the admin interface should be available at http://store.regenics.com/admin when using the Apache config from above

aimeos commented 5 years ago

Only make sure that mod_rewrite is enabled and index.php is served by the PHP interpreter in your Apache configuration

mikeyapina commented 5 years ago

http://store.regenics.com/ should now redirect to http://store.regenics.com/list/ and the admin interface should be available at http://store.regenics.com/admin when using the Apache config from above

so this is confusing to me ... (how do I reference http://store.regenics.com/list/ there is no /list/ subfolder) equally there is no admin anywhere

conf file --- ServerName store.regenics.com ServerAlias store.regenics.com DocumentRoot /var/www/html/store/public

aimeos commented 5 years ago

That are virtual paths provided by the Laravel routes. Therefore, your Apache needs to be set up correctly so this works.

mikeyapina commented 5 years ago

I have a laravel app running under /pos/ correctly no issues. It is your app that is not running correctly. You keep saying that APache is not configured correctly but it is setup on many other servers within this same system all from EC2 AWS with absolutely no issue. Many sending out millions of emails. It is your implementation that is not working and it is clearly not AWS / EC2 or LARAVEL this all is working as expected. If you truly don't know what you are doing with this pls be honest and say this, because your comments are so cryptic it is as if you don't know what your suggesting and you are wasting lots of time.

aimeos commented 5 years ago

Your AWS setup isn't working:

mikeyapina commented 5 years ago

http://store.regenics.com/store/public/list ok so i did a lot of changing and finally got some progress the issue is now why does it take so long to load?

mikeyapina commented 5 years ago

Also once I log in I cannot do anything with the admin .. like were when i try to go to add products it takes me to these screens. Screen Shot 2019-08-20 at 2 52 55 AM Screen Shot 2019-08-20 at 2 53 30 AM

The requested URL /admin/default/jqadm/search/product was not found on this server.

aimeos commented 5 years ago

Still misconfigured

mikeyapina commented 5 years ago

It is becoming evidently clear this tool is not a tool anyone should use.

aimeos commented 5 years ago

Aimeos is quite easy to install in almost all environments where Laravel can be set up. Laravel only requires mod_rewrite (usually installed and configured almost everywhere) and a properly set document root of the vhost to the ./public/ folder of the Laravel application.

Both is not the case in your AWS setup and you are the first one having problems on AWS. Nobody else reported that before and Aimeos has been installed many thousend times in different environments.

mikeyapina commented 5 years ago

At this point this product is not very robust or capable of handling a AWS / ec2 multiple host site .. I will spin up a server l by itself with no other sites stand alone. If it works this way then your tool is only capable of working as a stand one server tool.

aimeos commented 5 years ago

The Laravel framework doesn't support installation of applications in vhost sub-directories well and you must not do this for security reasons!

mikeyapina commented 5 years ago

i just gave up this is a mess.