Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When installing from the ZIP with admin, error 404 #861

Open
tigerblue77 opened this issue Nov 21, 2020 · 6 comments
Open

When installing from the ZIP with admin, error 404 #861

tigerblue77 opened this issue Nov 21, 2020 · 6 comments

Comments

@tigerblue77
Copy link

Hello,

I followed your doc here : https://getgrav.org/downloads
and here : https://learn.getgrav.org/16/basics/basic-tutorial

I saw the page with php extensions missing, I installed them and so the webpage dissapeared and now I am always redirected to localhost/admin with "error 404 not found"... You're app is not really plug and play ^^

@w00fz
Copy link
Member

w00fz commented Nov 21, 2020

Did you install “Grav Core” or “Grav Core + Admin”?

Can you reach just localhost? If that’s the case you have issues with your routing. Try looking at the troubleshooting for 404 here: https://learn.getgrav.org/16/troubleshooting/page-not-found

Also what server/web server/php versions are you running?

@tigerblue77
Copy link
Author

Sorry for the lack of infos

"Grav Core + Admin"

Nope I can't, it redirects me to /admin all te time

I'm using Apache2 and PHP 7.3 :
image

@w00fz
Copy link
Member

w00fz commented Nov 21, 2020

That redirect happens because it's the first time load and the admin plugin is trying to get you to register your administration user. It is definitely working as intended but something is causing that 404.

My question to you is if the 404 error you are getting looks like a well styled 404 page with a "Whoops" in it or if it's the default plain web server 404 error.

If it is the latter that is definitely an issue with the htaccess, in which case you should make sure you have a .htaccess at the root of your site and the webserver and vhost configured accordingly to work with it (see my troubleshooting link above).

If it is the former, try having a look at the logs in logs/grav.log and see if there's anything obvious going on.

@tigerblue77
Copy link
Author

tigerblue77 commented Nov 24, 2020

Well... Sorry I'm bad, here is what I've done to make it work (should be in documentation instead of troubleshooting) :

# Place Grav files in webroot
cd /var/www/html/
mv /home/user/Downloads/grav-admin-v1.6.28.zip .
unzip grav-admin-v1.6.28.zip 
rm grav-admin-v1.6.28.zip 
mv grav-admin/* .
mv grav-admin/.* .
rmdir grav-admin/
chown -R www-data: *
chown -R www-data: .*

# Install php modules dependancies
apt install php-mbstring php-curl php-dom php-gd php-xml php-zip
# Enable apache mod rewrite
a2enmod rewrite
# Add "AllowOverride All" to apache's virtualhost configuration
nano /etc/apache2/sites-available/000-default.conf

So it looks like this :
image

# Restart apache service
service apache2 restart

Thanks for your help !

@mahagr mahagr transferred this issue from getgrav/grav Nov 24, 2020
@mahagr mahagr reopened this Nov 24, 2020
@mahagr
Copy link
Member

mahagr commented Nov 24, 2020

@tigerblue77 I moved it to here in order to improve the docs.

@tigerblue77
Copy link
Author

@tigerblue77 I moved it to here in order to improve the docs.

Thanks for your consideration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants