When installing on Apache web server there's no CSS? #120
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 45 comments
-
Hi, which web server are you running? Looks like you need to update your server configuration. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, here it is http://mhash.fr/yellow/info.php |
Beta Was this translation helpful? Give feedback.
-
Sorry, I don't know about Olympe web hosting. I tried to register an account but they temporarily closed. Please check if you have uploaded the |
Beta Was this translation helpful? Give feedback.
-
Thanks markseu, I think there is a problem with the .htaccess file indeed. (but I didn't spot the exact issue). I'll contact the support. |
Beta Was this translation helpful? Give feedback.
-
Today I downloaded the new Yellow version (https://github.com/datenstrom/yellow/archive/master.zip), unzipped and upload all files with the same results. @markseu , what could the the reason why yellow is trying to search a CSS file at /media/themes/flatsite.css , which file can't be found there ? |
Beta Was this translation helpful? Give feedback.
-
Shouldn't yellow look for system/themes/flatsite.css instead of media/themes/flatsite.css ? |
Beta Was this translation helpful? Give feedback.
-
it seems core.php is looking for $themeLocation dir, when the css file is in $themeDir dir |
Beta Was this translation helpful? Give feedback.
-
Yellow requires a web server with rewrite module. It looks like the rewrite module is not properly working on your web server. Once this is configured, your Yellow installation should work. To answer your question, the location for the |
Beta Was this translation helpful? Give feedback.
-
@markseu, I've just contacted you using the contact form on your website, so we can get in touch to find a solution to get you a test account. Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Here's what I found out: The web hoster uses Apache/2.4.10 and you need to modify your Here's an example (updated): <IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /yellow/
DirectoryIndex index.html yellow.php
RewriteRule ^(cache|content|system)/ error [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ yellow.php [L]
</IfModule> I don't understand why this is necessary, but it does the trick. Hope this helps. 😄 |
Beta Was this translation helpful? Give feedback.
-
Hi ! |
Beta Was this translation helpful? Give feedback.
-
Thanks for your feedback. We can add it later, when it happens on more than on web hoster. I understand this isn't ideal for installing software at Olympe. Let's keep the issue open for a while and see if more people are affected. |
Beta Was this translation helpful? Give feedback.
-
There could be people that silently abandon because of this... but its your décision : do whatever you think its right. Cheers! Le 31 octobre 2015 22:45:03 CET, Mark Seuffert [email protected] a écrit :
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté. |
Beta Was this translation helpful? Give feedback.
-
Hi @markseu , I tried installing yellow in a $USER/public_html of a fresh Ubuntu box (15.10) with apache2 and php5. Enabled 'userdir' mod. I can't get it to work, meaning I get unstyled yellow home page ie same symptom I've initially reported in this issue. Also tried various RewriteBase combinations in the .htaccess with no success. As a side note, on the same box I tried to install yellow in a regular folder (ie /srv/web) and I had to specify 'AllowOverride Indexes' (in apache2.conf) to make it work - because yellow .htaccess uses DirectoryIndex directive. I think this should be specified somewhere, not every web environment has this directive enabled. So back to the first issue : I would appreciate any suggestion. |
Beta Was this translation helpful? Give feedback.
-
What's in your Apache configuration for |
Beta Was this translation helpful? Give feedback.
-
It's seems glasen is giving a try to Grav :) My general feeling about this issue is that relying on rewrite rules to feed the CMS engine engage the webmaster with many potentials issues with the webserver configuration, that last being:
To my experience with several CMS testing around, I always started having issues when coming to optional URLs rewriting for SEO purpose - but in this case it's not vital for basic CMS operation. with Yellow - while I understand the benefits of it - the rewrite rules totally condition if the CMS will be able to operate or not. I'm not sure that by saying that it adds something useful to the original issue, sorry about it. To me, it would be technically more tolerant if Yellow was able operate without rewrite rules. I can't say for sure how much Yellow rely on those... But I can imagine in a perfect world that Yellow would optionally allow the webmaster to enhance Yellow experience and performance by activating the .htaccess layer? Something like that. |
Beta Was this translation helpful? Give feedback.
-
I think it's very welcome. I'm ready to help. Do I have the corresponding permissions on the wiki ? (sorry I'm not that experienced with github as a writer). |
Beta Was this translation helpful? Give feedback.
-
@glasen did we lose you? :) I think we need more user feedback. It would really good to hear what kind of problems people encounter with web servers. I wasn't aware that there were so many problems with Apache. To be honest I tested Yellow and other flat-file-CMS on different web hostings and things usually worked. Unfortunately, Yellow requires a web server with PHP and rewrite module - so it's not possible to work without it. Maybe it's possible to detect Apache problems automatically and show troubleshooting. Ideally the installation should just work... and in the worst case without reading a lot of documentation. @wunderfeyd what do you think? |
Beta Was this translation helpful? Give feedback.
-
@calimou: @markseu: |
Beta Was this translation helpful? Give feedback.
-
Ouch, then we really have to investigate this. |
Beta Was this translation helpful? Give feedback.
-
@markseu: Do we know the exact (or enough of the) configuration of these webservers to reproduce this behaviour locally? |
Beta Was this translation helpful? Give feedback.
-
I've tried Yellow on my own server. There i have no problems. Everything works perfectly. I don't even have to modify the htaccess-file when i install Yellow to a subfolder. What do you need from me, so you can reproduce my problems with my university account. The problem is, i have no possibility to login with SSH. I have only an FTP-account and there are also no log files for me :-( |
Beta Was this translation helpful? Give feedback.
-
Strange thing. I don't know why but know it works. I only modified rewritebase to "/~sgls22/ and WebinterfaceServerScheme to "https". The same thing i did a few hours ago but there i didn't work. |
Beta Was this translation helpful? Give feedback.
-
BTW @glasen; it is a bit off topic but Grav heavily rely on command line... One day or another I'm pretty sure you'll need some way to run CLI command to manage it. |
Beta Was this translation helpful? Give feedback.
-
@glasen: Is your site accessed with https? Can you make a backup of your current data and install a fresh Yellow with just these changes to double-check it works when configured this way? Thank you for the offer to use your university account/site for checking some things, but first let's look whether it works with your changes and a clean Yellow installation. |
Beta Was this translation helpful? Give feedback.
-
Yes, the site is accessed with https. I tried another clean installation and changing the two options generates a working installation. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your fast double-check. It's great you found a solution. @markseu: Do you see any way to detect a wrong RewriteBase and any chance to auto detect the WebinterfaceServerScheme? |
Beta Was this translation helpful? Give feedback.
-
Yellow can detect the rewrite module now, this should catch typical Apache configuration problems. Yellow can detect the WebinterfaceServerScheme now, this should use HTTPS automatically. Use the latest plugins and remove the WebinterfaceServerScheme setting from your Yellow cannot detect the RewriteBase... as far as I know. The rewrite module should detect the location, but it uses the current path under some circumstances. It looks like all CMS suffer from this problem. On a shared web server you need to configure the correct RewriteBase in your Hope this makes a better installation experience. Please try it out. |
Beta Was this translation helpful? Give feedback.
-
Let's close this issue and see if more problems are reported? |
Beta Was this translation helpful? Give feedback.
-
Yup, good way to go. |
Beta Was this translation helpful? Give feedback.
Yellow requires a web server with rewrite module. It looks like the rewrite module is not properly working on your web server. Once this is configured, your Yellow installation should work.
To answer your question, the location for the
/media/themes/flatsite.css
is fine, usuallyyellow.php
takes care of this. That's why the rewrite module is needed, it tells Yellow to handle such requests. Sorry, I don't know how to help without an account at Olypme. I contacted them via Twitter and they don't know when registration will be reopened again. Anyone has a test account I can use?