NameSilo

I Am SO Stupid! - Small Reward

NamecheapNamecheap
Watch

Iravan

TSAS HostEstablished Member
Impact
109
Hey

Today I tried using the auto installer on the site cgiconnection.com. The Scripts went in sucessfully but I didnt like them so in the end I deleted eberyhting in the CGI-Bin Folder

Now when I try and acesss My site it comes as an Internal Error

http://www.exittraffic.us - Comes up with an error

http://www.exittraffic.us/Banners - Works Fine

I Need help fixing this and if you help out ill gie you a small reward of 25NP

I think it may have something to do with the chmodding

Please help!

Thanks

Iravan
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
This is off the cuff, but are you running on a cpanel host?
If so, check the permissions on your index.php file. I found this issue yesterday where I would get 500 errors when the file's permission were tighter than 666, so try changing it to 666, if it's not already.

also, check for a .htaccess file that's doing a redirect in your main www directory, though from what I can tell checking your site, this isn't the issue.
 
0
•••
I am running cpanel host i tried changing it to 666 - nothing happened

Also I dont know how to understand an .htaccess file... how do I check?

The Index is a PHP File...
 
0
•••
Iravan... Did you also delete everything in your root folder? If the original index.xxx it still there it is going to point to your CGI folder and it aint there any more...
 
0
•••
Yeah, check what ^^^^^^^^^^^^ he said. Though I'd imagine that would throw a 404, not a 500.

Otherwise, the .htaccess file would be in your main www folder, it's called (obviously) .htaccess ... if you're ssh'ing into your account, just do an ls -la and look for the .htaccess. If you're using an FTP program to ftp in, then just look and see if the file is there.

If it's not, rename your current index.php to something else (index.php.back, for example) and put a simple test one up there to see if that shows.
 
0
•••
Are you tring to get what is in your banner folder to be as your main site? If it is just copy n paste all of the banners content to the root.
 
0
•••
No I just deleted the files in the CCGI-BIn

I think there must have been something in there from before which is what I needed...

Are you tring to get what is in your banner folder to be as your main site? If it is just copy n paste all of the banners content to the root.

That was just example...
 
0
•••
Did you remove/change the index.php in your main www root like suggested above? Or do you know for certain it's not trying to call something in the cgi-bin?
 
0
•••
Did you remove/change the index.php in your main www root like suggested above? Or do you know for certain it's not trying to call something in the cgi-bin?

Ya I changed it... and put a fake index.html which seems to work...

I emailed the person hwo sold me the script askig about the CGI Files...

Maybe something will come out of that!
 
0
•••
would you have a copy of the cgi files? Just slap them back in the root cgi-folder...
 
0
•••
would you have a copy of the cgi files? Just slap them back in the root cgi-folder...

Hmm I dont think so... maybe ive got a backup sum where... Ill check

EDIT: No Backup :(
 
0
•••
Are you using MS Frontpage?
 
0
•••
0
•••
Can you post the code from your index page.
 
0
•••
Good, then it's a permissions error on your .php file. My last setting was wrong, set the permissions to 755.

Hopefully that will do it for you.

Mike


Iravan said:
Ya I changed it... and put a fake index.html which seems to work...

I emailed the person hwo sold me the script askig about the CGI Files...

Maybe something will come out of that!
 
0
•••
<?


error_reporting(7);

if (!defined('directory')) {
define('directory', '');
}

include(directory . "var.php");

head("Welcome to our Exit-Popup Exchange");

$ratio1 = $ratio*10;
$ratio2 = (10-$ratio)*10;

include(directory . "tpl/index.tpl");

footer();

?>
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-5356947885604834";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_page_url = document.location;
google_color_border = "FFC43D";
google_color_bg = "FFFFFF";
google_color_link = "008DF9";
google_color_url = "008DF9";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
 
0
•••
slantednet said:
Good, then it's a permissions error on your .php file. My last setting was wrong, set the permissions to 755.

Hopefully that will do it for you.

Mike


And if that doesn't work for you find the .htaccess file and either change it or delete it.
 
0
•••
And if that doesn't work for you find the .htaccess file and either change it or delete it.

How do I change it

This is waht it reads

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.exittraffic.us
AuthUserFile /home/exit/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/exit/public_html/_vti_pvt/service.grp





RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^Http://www.namepros.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^Http://www.namepros.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://exittraffic.us/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://exittraffic.us$ [NC]
RewriteCond %{HTTP_REFERER} !^http://goldkey.exittraffic.us/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://goldkey.exittraffic.us$ [NC]
RewriteCond %{HTTP_REFERER} !^http://templates.exittraffic.us/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://templates.exittraffic.us$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.exittraffic.us/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.exittraffic.us$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.goldkey.exittraffic.us/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.goldkey.exittraffic.us$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.templates.exittraffic.us/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.templates.exittraffic.us$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.exittraffic.us [R,NC]
 
0
•••
all that it really appears to do (outside of your access limits) is to stop leeching (all the rewrite rules at the bottom)...

Try renaming it to something else (.htaccess.back) to see if thats the problem, if not, you can rename it back to .htaccess and be back where you are now..
 
0
•••
I see it is working... what was the fix?
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Zero Commission
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back