Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Php forbidden error in cherokee

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


shailesh.zenwalk at gmail

Sep 17, 2009, 9:16 AM

Post #1 of 3 (358 views)
Permalink
Php forbidden error in cherokee

Hello Friends,

Newbie to the Cherokee world. Nice to see this project gaining good name for
its features. Thanks to all the contributors.

Any ways i got a problem with it.

*Cherokee * - 0.99 (latest stable release, build from source)
> *Php* : php-cgi -v
> PHP 5.2.9 (cgi-fcgi) (built: Jun 9 2009 17:16:14)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend
> Technologies
>
> *OS* - Zenwalk 6.2 (Slackware fork)
> *MySQL* - 5.0
>

Problem details:

Cherokee runs fine here in the background. Did followed Php configuration
HOW TO with Cherokee from Cherokee documentation page Aka Cookbook.

Below is the screen from cherokee admin under virtual server.

TargetTypeHandlerRootAuthEncExpFinal
php <http://127.0.0.1:9090/vserver/10/rule/600>ExtensionsFastCGI[image:
Yes][image: No][image: Yes][image: No][image:
Delete]<javascript:post_del_key('/vserver/10/ajax_update',%20'vserver!10!rule!600');>
/about <http://127.0.0.1:9090/vserver/10/rule/500>DirectoryServer Info[image:
No][image: No][image: Yes][image: No][image:
Delete]<javascript:post_del_key('/vserver/10/ajax_update',%20'vserver!10!rule!500');>
/cgi-bin <http://127.0.0.1:9090/vserver/10/rule/400>DirectoryCGI[image:
Yes][image: No][image: No][image: No][image:
Delete]<javascript:post_del_key('/vserver/10/ajax_update',%20'vserver!10!rule!400');>
/cherokee_themes <http://127.0.0.1:9090/vserver/10/rule/300>DirectoryStatic
content[image: Yes][image: No][image: No][image: No][image:
Delete]<javascript:post_del_key('/vserver/10/ajax_update',%20'vserver!10!rule!300');>
/icons <http://127.0.0.1:9090/vserver/10/rule/200>DirectoryStatic
content[image:
Yes][image: No][image: No][image: No][image:
Delete]<javascript:post_del_key('/vserver/10/ajax_update',%20'vserver!10!rule!200');>
Default <http://127.0.0.1:9090/vserver/10/rule/100>DefaultList & Send[image:
No][image: No][image: No][image: No]


php connects to localhost:47990

The root directory has been configured to /var/www

Now i have placed a test html file in /var/www and if i point my webbrowser
to that html file, it shows what message i have put inside.

In the same way i have placed a .php test file in the same path and content
is,

<HTML>
> <HEAD>
> <TITLE>PHP Testing</TITLE>
> </HEAD>
> <BODY>
> <?php
> echo "Hello, whats up dude?";
> ?>
> </BODY>
>

But when i point browser to this php say localhost/test.php, browser
displays like this:
403 Forbidden You have no access to the requested URL
------------------------------
Cherokee web server 0.99.24 (UNIX), Port 80

Currently i am doing all this from a normal user account. But i tried
logging into root user and doing the same. Still i got forbidden error.

So i kindly rest any of you to route me up to the solution.

Thanks & Regards,
Zenny :)

--
----------------------
“Live your life honestly—if you don’t, you always have
to remember to not be yourself”

"Ever tried Zen Computing?"
visit: www.zenwalk.org


listas at enelserver

Sep 17, 2009, 9:58 AM

Post #2 of 3 (334 views)
Permalink
Re: Php forbidden error in cherokee [In reply to]

> Hello Friends,
>
> Newbie to the Cherokee world. Nice to see this project gaining good name
> for
> its features. Thanks to all the contributors.
>
> Any ways i got a problem with it.
>
> *Cherokee * - 0.99 (latest stable release, build from source)
>> *Php* : php-cgi -v
>> PHP 5.2.9 (cgi-fcgi) (built: Jun 9 2009 17:16:14)
>> Copyright (c) 1997-2009 The PHP Group
>> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend
>> Technologies
>>
>> *OS* - Zenwalk 6.2 (Slackware fork)
>> *MySQL* - 5.0
>>
>


your php and html files must have permissions for the user that runs the
webserver


Saludos

leonel


_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


alvaro at octality

Sep 17, 2009, 11:59 PM

Post #3 of 3 (339 views)
Permalink
Re: Php forbidden error in cherokee [In reply to]

On 17/09/2009, at 18:16, Zenwalker wrote:

> Below is the screen from cherokee admin under virtual server.
>
> Target Type Handler Root Auth Enc Exp Final
> php Extensions FastCGI

Try to remove the custom Document Root from the 'Extension PHP' rule,
and unset the 'Final' flag. Then, check that the php-cgi process has
permission to access the test file.

You could also remove the Extension PHP flag (and the PHP Information
Source), and then run the PHP Wizard. It'd configure everything for you.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.