Hello,
I have a VPS at ionos, a centos 8 os.
I have installed a LAMP, elsticsearch, rabbit etc...
I have a SSL EV for my domain : ortie-bio.fr and www.ortie-bio.fr
I have followed this tuto to install Magento open source 2.4.2 :
https://www.linode.com/docs/guides/install-magento-2-4-on-centos-8/
Magento installation completed with success but when I go to ortie-bio.fr in my browser it appears the default apache index and for the admin backend I have a 404 Not found (The requested URL was not found on this server.)
I put you a screenshot of the commands :
Have you some ideas of search?
Thanks
Hello @cedriclere7b59 ,
It's throwing Magento error, you can change the mode to see the errors on frontend :
php bin/magento deploy:mode:set developer
Or check the log files, you'll get the error.
your screenshot is not visible, make sure you run below commands :
// For folders and files permission cd <your Magento install dir> // 644 permission for files find . -type f -exec chmod 644 {} \; // 755 permission for directory find . -type d -exec chmod 755 {} \; chmod 644 ./app/etc/*.xml chown -R :<web server group> . chmod u+x bin/magento
and the basic deployment commands :
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
Hope it helps !
hello,
I have taped again the permissions commands and taped the basic deployement commands but nothing...
I'm in developper mode so If you go to ortie-bio.fr you will see the errors
nothing in the error log file for today :
https://www.ortie-bio.fr/error.log
I did used composer for the creation of the project and installed but I did have a failed installation because of sodium missing. I resolved it and installed with success. Each time I tape the command : "bin/magento setup:install --<option>=<value> ... --<option>=<value>"
with differents options and values but must we create a new project and remove magento and the files each times?
I'm not familiar with magento again so I don't understand why there is no index files in my public_html magento root directory?
https://www.ortie-bio.fr/files.jpg
https://www.ortie-bio.fr/installation_screenshot.jpg
I hit this URL, http://www.ortie-bio.fr/
and it's showing me permission issue, which is definitely issue with your web-server user and file ownership.
screenshot : https://www.awesomescreenshot.com/image/9692303?key=23e3f5add37d199cfd539a1c38a1bc54
for a quick fix, you can run 777 to var/ generated/ pub/static/ pub/media/ folders, run below command to give 777 permission to these folders :
sudo chmod -R 777 var/ generated/ pub/static/ pub/media/
and then again hit this URL : http://www.ortie-bio.fr/
if it works, later you fix your web-server user and configure it correctly.
Hope it works ! good luck !
hello,
Always the HTTP Server test Page powered by Centos... sorry...
@cedriclere7b59 , seems like you changed something recently to domains or SSL, configure SSL properly.
or just stop http redirecting to HTTPS, if redirecting from server, configure it there.
or if you changed anything in base project URL in Magento, change it back without SSL domain.
hello, I can't launch putty never filezilla anymore : Network error : "Software causes connection abort" but I can go on internet in my browser... ?
Hello,
Putty works now. Do you think I can install magento with http:// whereas https:// in the URL? Just to see
yes, SSL is not mandatory to install Magento for demo purpose, it will security issues if it's your production environment, if you are just working around and learning.
you can keep it with http only, as you are having issue with SSL.
Let me know if it works after that !
Hello,
I have tried an installation with "http://www" in the url , I did have the luma page in firefox, nothing in chrome and no https... I did tried an installation with thoses parameters :
--base-url=http://www.ortie-bio.fr/ --use-secure=1 --base-url-secure=https://www.ortie-bio.fr/ --use-secure-admin=1
But always the apache welcome page...
I'm not sure than reinstalled all my certificates will solve the problem because in spite the fact I did uses the etc/httpd/conf directory for my certificates, perhaps instead of the etc/ssl directory I have tested and it works, as you can see below with an index.html that I have put in my public_html directory :
https://www.ortie-bio.fr/connexion_securise.jpg
So I will think of a magento issue instead no?
How can I remove magento properly and create a new composer project and reinstall?