Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  YAWS 1.84 + FreeBSD 7.1 + PHP and subfolders

Guest
Posted: Sun Dec 20, 2009 1:59 pm Reply with quote
Guest
I've installed YAWS under FreeBSD and configured with PHP. Then, I created test php file with phpinfo() call. Everything went ok. But when I created a subdirectory and test php file inside, YAWS returned error with code 500 and I have no idea why PHP can't cooperate with YAWS inside subdirectory. I start yaws with -i parameter, temporarily from root's console.

Any ideas?

My config file:

##########################################
# conf for yaws

# first we have a set of globals

logdir = /var/log/yaws
ebin_dir = /usr/local/www/yaws/shopingcart
include_dir = /usr/local/www/yaws

php_exe_path = /usr/local/bin/php-cgi

#end then a set of servers

# enter hostname and IP here
<server xx.xx.xx.xx>
port = 80
listen = 0.0.0.0
docroot = /var/www
allowed_scripts = php
</server>
##########################################

Cheers,
Przemysław "eRIZ" Pawliczuk
--
JID: eriz//pcinside.pl
www: http://eriz.pcinside.pl




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Post received from mailinglist
Guest
Posted: Sun Dec 20, 2009 10:44 pm Reply with quote
Guest
Przemysław eRIZ Pawliczuk wrote:
> I've installed YAWS under FreeBSD and configured with PHP. Then, I created test php file with phpinfo() call. Everything went ok. But when I created a subdirectory and test php file inside, YAWS returned error with code 500 and I have no idea why PHP can't cooperate with YAWS inside subdirectory. I start yaws with -i parameter, temporarily from root's console.
>

Please describe just slightly better exactly what you do, is it:

# mkdir /var/www/test
# cp foo.php /var/www/test

?

/klacke

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Post received from mailinglist
Guest
Posted: Sun Dec 20, 2009 11:12 pm Reply with quote
Guest
> Please describe just slightly better exactly what you do, is it:

> # mkdir /var/www/test
> # cp foo.php /var/www/test

Not exactly. I've just created php file in subdirectory with "echo 'hello world';" content. And YAWS is returning error 500 code...

Pozdrawiam,
Przemysław "eRIZ" Pawliczuk
--
JID: eriz@pcinside.pl
www: http://eriz.pcinside.pl




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Post received from mailinglist
Guest
Posted: Mon Dec 21, 2009 1:22 am Reply with quote
Guest
2009/12/20 Przemysław "eRIZ" Pawliczuk <eriz@pcinside.pl (eriz@pcinside.pl)>
Quote:
> Please describe just slightly better exactly what you do, is it:

> # mkdir /var/www/test
> # cp foo.php /var/www/test


Not exactly. I've just created php file in subdirectory with "echo 'hello world';" content. And YAWS is returning error 500 code...


I think what Klacke is getting at is that we need enough information to be able to try to recreate the problem. The more exact details you can provide, preferably accompanied by example code and config files if relevant, the easier recreating the problem will be, and the faster we'll be able to fix any issues.


dziękuję,
--steve


Post received from mailinglist
Guest
Posted: Mon Dec 21, 2009 9:42 am Reply with quote
Guest
> I think what Klacke is getting at is that we need enough information to be able to try to recreate the problem. The more exact details you can provide, preferably accompanied by example code and config files if relevant, the easier recreating the problem will be, and the faster we'll be able to fix any issues.

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum