Page 1 of 1

403 Forbidden

Posted: Fri Mar 04, 2005 6:41 am
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.

Posted: Fri Mar 04, 2005 12:06 pm
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

Posted: Fri Mar 04, 2005 7:23 pm
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?

Posted: Sat Mar 05, 2005 1:42 am
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.

Posted: Sat Mar 05, 2005 1:05 pm
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

Posted: Sat Mar 05, 2005 6:23 pm
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

Posted: Sat Mar 05, 2005 7:31 pm
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

Posted: Mon Mar 07, 2005 8:49 pm
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.

Posted: Tue Mar 08, 2005 2:30 pm
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