linux - Forbidden: cannot access / on server -
i'm transferring clients site on our server, including domain has same url etc. upon transferring files over, , changing .htaccess
file match 1 on old server, being greeted error message you don't have permission access / on server
, i'm not sure why? few things mention, changing first line options -indexes
options +indexes
rectifies this, instead of error message greeted index of /
page. possibility, switching hosting platform linux
windows
fix these problems?
options -indexes errordocument 500 /error <files ~ "\.pm$"> order allow,deny deny </files> <files ~ "\.template$"> order allow,deny deny </files> <files ~ "\.tmpl$"> order allow,deny deny </files> <files ~ "\.log$"> order allow,deny deny </files> <files ~ "\.revid$"> order allow,deny deny </files> rewriteengine on rewritecond %{request_uri} ^/index.pl rewritecond %{query_string} ^browse=show_contact$ rewriterule ^(.*)$ http://the_domain_is_here/formmail2.pl? [r=301,l]
one more thing tried adding directoryindex index.pl
brings yet error message, cannot execute script...etc etc etc...index.pl
. i'm not sure do, suggestions on how rectify massively appreciated!
the answer easy since on linux
you have wrong permissions /var/www/index.pl , thats why can't executed / can showed! need sudo chown rightuser:rightgroup files in /var/www , make mod_perl able execute perl
to give more complet answer need know following - 1. error log requested in comment under question - 2. operating system u using - 3. webserver u using , exact version self compiled or software repo of linux version. - 4. if linux version , apache2 sudo ps aux | grep apache else sudo ps aux | grep httpd - 5. post here can you
Comments
Post a Comment