403 Forbidden

Post your Click counter digestion problems here
Post Reply
RVRoadie
Posts: 5
Joined: Fri Mar 04, 2005 6:32 am

403 Forbidden

Post by RVRoadie »

This is my first try at PHP. My account is with Yahoo Web Hosting.

testphp.blairkids.com/ccount

Followed the installation instructions. Not sure about the CHMOD, so didn't do anything. Get the above error when I try to view any .php file in the ccount folder.

Any advice would be appreciated.

Thanks.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

There must be a problem with folder permissions. You will have to CHMOD the "ccount" folder to 777 (rwx-rwx-rwx).

I'm not sure what program you use for uploading files, see if this helps:
http://www.ibdhost.com/help/ftp/

If not check your program's help if it says anything about "CHMOD" or "file permissions".

What you need to do is set CHMOD (permissions) of "ccount" folder to 777 (all read, write and execute) and also set CHMOD of "clicks.txt" and "ids.txt" to 666 (rw-rw-rw).

The CHMOD thing probably sounds scary, but once you figure out how to do it with your program it's a piece of cake.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
RVRoadie
Posts: 5
Joined: Fri Mar 04, 2005 6:32 am

Post by RVRoadie »

Hi,

Thanks for the help. I did miss a couple of things. However, I still can't get past the same error message.

I originaly uploaded the files with the Yahoo SiteBuilder. I deleted all that, got SmartFTP, and followed your instructions precisely. Set the ASCII mode for the .txt, .php and .css files. Used CHMOD to set the folder to 777 and the selected files to 666.

Using the Yahoo File Manager, I can edit the .txt and .php files, but if I try to view them I get the 403 error. Same thing changing settings to 1,2 and 3.

Have I missed something in setting up my domain, or something at a higher level to enable PHP.

My site is blairkids.com, which just has the ccount folder. The readme works fine.

I tried creaating a simple hello.php file described in the PHP Tutorial, and got the same message.

Any additional advice?
RVRoadie
Posts: 5
Joined: Fri Mar 04, 2005 6:32 am

Post by RVRoadie »

Well, I figured out my problem, and the solution sucks.

I started out with a Yahoo $8.95 a month plan. Then I learned that to use SiteBuilder or FrontPage, you had to upgrade to 11.95 a month plan. Fine. In reading the PHP help for Yahoo, I finally figured out that I have to upgrade to $19.95 a month plan to use advanced web tools, like PHP.

I'm feeling like I am slowly getting sucked in deeper and deeper. All I wanted was a web site that I could post a few programs I have written for the Garmin iQue (Palm OS5).

Any advice on where I should have gone for web hosting.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Yes, a lot of big hosting companies work like that. And when they do support PHP (and other languages) they set it up in such a restrictive way that many scripts don't work. That's why I usually recommend staying away from them if you need anything more serious than plain HTML.

You will find some links to hosting companies here:
http://www.phpjunkyard.com/hosting.php

Above all I would recommend you to visit Akashik hosting. They have great plans with PHP support and good customer support. I use them for some of my sites and they have been great. And besides all that they have upgraded all their hosting plans yesterday, so I received extra 1Gb web space and 5Gb bandwidth at no cost!

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
RVRoadie
Posts: 5
Joined: Fri Mar 04, 2005 6:32 am

Post by RVRoadie »

Looks like I am stuck with Yahoo for 30 days in order to keep my domain name. After that I can transfer to another provider.

One last question before I dig my hole any deeper. Here is a link of PHP functions supported by Yahoo.

http://help.yahoo.com/help/us/webhostin ... hp-33.html

Is this enough to support your click counter script.

Thanks for you help.

Tom
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

You don't need to transfer your domain to another registrar just to change hosting company. You can keep your current registrar, switch hosting company and just change NAMESERVERS for your domain. You should be able to do that easily in your domain control panel. Now you have YNS1.YAHOO.COM and YNS2.YAHOO.COM.

If you switch hosting company they will give you their nameservers and you just have to set those instead of the current ones. Then it takes about 24-48 hours for the changes to become effective. See
http://help.yahoo.com/help/us/domains/d ... ns-12.html


About your question: from what they post on that page I believe CCount will work.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
RVRoadie
Posts: 5
Joined: Fri Mar 04, 2005 6:32 am

Post by RVRoadie »

Well, another one last question.

I used subdomains in building my site. Do I need to install ccount in each subdomain folder, or will once at the main domain folder work for all subdomains.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

You can install CCount at say
http://www.maindomain.com/ccount/
and then just use this URL in all the subdomains.
http://www.maindomain.com/ccount/click.php?id=XX

This URL will work anywhere you set it, so it doesn't care if it's under a subdomain or not...

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply