Closed mikeyapina closed 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
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
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
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.
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 ..
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.
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
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
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.
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
This appears to be exactly not a laravel issue it is a configuration issue by your scripts
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
Only make sure that mod_rewrite
is enabled and index.php
is served by the PHP interpreter in your Apache configuration
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
That are virtual paths provided by the Laravel routes. Therefore, your Apache needs to be set up correctly so this works.
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.
Your AWS setup isn't working:
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?
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.
The requested URL /admin/default/jqadm/search/product was not found on this server.
Still misconfigured
It is becoming evidently clear this tool is not a tool anyone should use.
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.
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.
The Laravel framework doesn't support installation of applications in vhost sub-directories well and you must not do this for security reasons!
i just gave up this is a mess.
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.