Abdul Manan
Abdul Manan

Reputation: 2375

a 500 Internal Server Error error was encountered

I have just upload my local project(overwrite existing one that was working correctly) to remote server .
my .htaccess looks like:

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

<Files "index.php">
AcceptPathInfo On
</Files>

RewriteRule    ^username    http://www.google.com
#^([a-zA-Z0-9_-]+)$ user/profile/USERNAME=$1

log error:

SoftException in Application.cpp:256: File "/home/fewextra/public_html/index.php" is writeable by group

Browser Error:
enter image description here

any idea how to fix ? I tried this and this so far but no luck .

Note: the same project when i upload to another server then it works.

Upvotes: 1

Views: 2064

Answers (2)

Felix Runye
Felix Runye

Reputation: 2521

This worked for me:

changing permissions for directories to 755 and php files and other files to 644

Source

Upvotes: 2

Panama Jack
Panama Jack

Reputation: 24448

The fixes you tried have nothing to do with this message and is not an access issue. This is saying your permissions are too permissive. Try to make some changes and then see.

Change the permissions on your public_html to 755 and your index.php to 644.

Upvotes: 6

Related Questions