Error installing script on localhost

1

I'm trying to install a script on host location, but the following error appears:

  

Internal Server Error

     

The server encountered an internal error or misconfiguration and was   unable to complete your request.

     

Please contact the server administrator at admin @ localhost to inform   them of the time this error occurred, and the actions you performed   just before this error.

     

More information about this error may be available in the server error   log.

I believe the error is caused by the .htaccess file, I just do not know how to modify it.

.htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    
asked by anonymous 26.08.2016 / 02:54

1 answer

2

I've already had this problem, you're probably using one of those programs that comes with PHP, Apache, MySQL together. Since you are manipulating URL in your file of type apache you must enable the rewrite module, which is located in:

You should locate the httpd.conf file on your Apache server, and look for the following line:

#LoadModule rewrite_module modules/mod_rewrite.so

Remove # , which means comments, that is, the line is commented out; save the file and restart your server, the Internal Server Error error will probably stop appearing.

If you use WAMP like me, click on the icon on the tray, go to Apache, then on the file that I said the name and make the changes described above.

    
26.08.2016 / 03:21