I’m trying to get grav to work on an apache shared host envrionment. (x10 hosting)
I downloaded grav+admin, unzipped it, and used filezilla and ftp to upload to a I’m trying to get grav to work on an apache shared host envrionment.
I downloaded grav+admin, unzipped it, and used filezilla and ftp to upload to a /Documents/grav/ subdirectory.
When I key in the url it redirects to /Documents/grav/admin and put up this error:
The requested URL /Documents/grav/admin was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I’ve reviewed the help information to solve file not found, and I’m not having much success.
I’ve checked for the .htaccess file, and it isn’t there in the root of my /Documents/grav/ directory, which is where I understand it should be as the root of my installation. BUT is isn’t there in the grav-admin-v1.3.0.zip file. Am I supposed to create it?
The /Documents/grav/admin doesn’t exist in the grav-admin-v1.3.0.zip file, either? I’m not surprised that it doesn’t find it when I run. Am I supposed to create it?
Because it is a shared server, I don’t have access to and can’t change httpd.conf, so I can’t set AllowOverride All. Is there another alternative?
Is it even possible to run Grav in a shared server environment?
.htaccessis in the zip file. Files that start with a . are typically invisible in Windows/macOS file browser. I’m not sure if you’re on Windows or macOS, but after you unzip the archive, use FileZilla to navigate to the newly created directory, and you will see the .htaccess file.
If you downloaded the ZIP file and then plan to move it to your webroot, please move the ENTIRE FOLDER because it contains several hidden files (such as .htaccess) that will not be selected by default. The omission of these hidden files can cause problems when running Grav.
You can run Grav perfectly fine without CLI access. Assuming you are starting from scratch without the Admin plugin, you may install the Admin plugin and its dependencies via FTP. Once the Admin plugin is installed you can perform the equivalent CLI command from the admin interface (clear cache, check for updates, etc).
Many shared hosting providers that don’t provide SSH/CLI access use Softaculous for software installation. I’ve tested Grav in this environment and had zero issues.
I’m just asking out of curiosity, and because I think about the project. I myself have a decent shell account, but to be really accesible for wider audience, Grav needs to work well without CLI, I believe.
Did it save the first user you created? You can check by using the cpanel file manager and going to the user/accounts in your grav2 folder and see if you’ve got a .yaml file for user you created earlier.
I think it needs to have all the admin fields for it to count as your first user (all should be automatically added when creating the account)
Also I know its free (which is good) but I have used x10 hosting before and run into so many problems with server limits on even super simple sites that it really isn’t worth the hassle when there are so many almost free hosting solutions out there.
One consistent step in all the shared hosting instructions is to clear the cache. Because I don’t have a CLI, can I do the same thing from the file directory dialog? Can I erase files? And folders?
For example Twig has a bunch of randomly named folders permissions 755 with php files in it. The same is true of most subfolders in cache.
BTW, the version of grav I installed was the combined grav+admin
I’m so glad you asked. Yes, I did do the dialog, earlier before posting. Three times, and nothing seemed to happen.
Because you asked, I thought I would try it again, and by chance, I used the Chrome instead of Safari. This time, I got an error message on the password. This is the same password I used before. This time, because I saw the error message, I created a valid password, and the Admin created and the Dashboard created.
I am now able to see the main page.
When I can, I will try to recreate the missing password error message on safari. For now, I’m running on Chrome.
Let me see if I can reproduce it. My first installation I unzipped on mac and then ftp’d to the server and tried on safari. I did press create in the admin dialog but I didn’t see a message. My success path was ftp the zip file, unzip on the server, launch in chrome. It is possible the original ftp was incomplete or something funky .
Is there a way to cause that initial admin dialog to come up after I’ve already used it once…? Or do I need to try a fresh install ?
I’m not certain. You may be able to delete the user.yaml file in user/accounts/ (it will be named after your user, for me it was andy.yaml) to force the admin to prompt for a new admin user - I haven’t tried it.