Well if I wasn't very productive last week, at least I am making up for it this week.

Amazing how things become once snapped out of you own dark insides.

I wish I could figure out what causes these episodes, going from pure euphoric love of the world to utter dread, dissatisfaction, and severe physical illness overnight is fucking shit.

Alas, c'est la vie. Enjoying this moment while it lasts.

  • 4
    sports helps
  • 1
    Can I bother you a bit while you are in productive mode? :D

    I am getting "PHP mod_rewrite module is required" error when trying to install OctoberCMS. My apache already has mod_rewrite enabled.

    Any thought?
  • 1
    @cursee I think I found their bug. Their way of checking mod_rewrite is not working and so I have changed it into

    $result = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') === false) || in_array('mod_rewrite', apache_get_modules());
  • 0
    @cursee Do you also have the following line

    RewriteEngine On

    in your .htaccess file?
    It should be right at the beginning in your IfModule block:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    (rules here ....)
  • 3

    I don't use apache :(

    Haven't in years ago i cannot help.

    Nginx is the only way.
  • 1
    @PonySlaystation their script didn't create any .htaccess at the requirement checking stage, there is no .htaccess file in their extracted installer files.

    do I need to create it by myself while setting up my virtualhost?
  • 1
    @cursee I don't know October, but if you have to add a VirtualHost block in an Apache config file then you can pit the "RewriteEngine On" right in the block

    <VirtualHost ...>
    </VirtualHost ...>
  • 1
    @PonySlaystation yep my virtualhost block has Rewrite Engine On and Allow Override All
  • 1

    did you figure it out? It is odd there is error for apache it installed no problems with nginx
  • 1
    @Bitwise I fixed it for myself using the hack I found (few comments up).

    This is their official reply
    Detecting proper support for the presence of mod_rewrite when using Apache seems to be quite the problematic issue.

    The current implementation uses SetEnv in the .htaccess file and checks $_SERVER, which should be reliable enough but technically requires FileInfo to be an allowed override, either with AllowOverride: all or AllowOverride: FileInfo. We could perhaps use getenv() instead of checking $_SERVERdirectly, that might improve the reliability. 
  • 2
    @cursee so I am supposed to create .htaccess file I guess. They should have stated it in their doc or put it in their installer folder.
  • 2
    @Bitwise I am so so stupid. The .htaccess file is indeed there in their installer. I didn't realize I have "Show Hidden" off in my file manager till now. Fuck.

    Gonna try without changing anything but copying everything including hidden files to my virtualhost and test. And if I got error, I will try their suggestion.
Your Job Suck?
Get a Better Job
Add Comment