laravelnewbie laravelnewbie - 1 year ago 86
PHP Question

How To Fix The Internal Error 500 When Using Laravel (Shared Hosting)

I'm a newbie to laravel. I'm getting an internal error 500 when I go to

My error log says:

[Sun Nov 20 22:04:48.310309 2016] [core:alert] [pid 364784:tid 140380089542400] [client] /public_html/public/.htaccess: <IfModule> directive requires additional arguments

I found this thread which sounds like my problem; Laravel blank white screen

But I'm on shared hosting and do not have SSH access. How can I execute this fix on shared hosting?


Answer Source

It looks like you have a blank IfModule directive in your .htaccess. You need to update it to state which module it is querying for the existence of. See:

Or post your .htaccess for help.

For example, to define a block in your .htaccess that only applied if the php module is loaded on the server, you might use:

<IfModule mod_php5.c>

Alternatively, if it is the closing directive, then you are missing a forward slash and need to change it to:


Ref: error 500 for .htaccess error Ref:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download