Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Yaws running PHP - CGI/FCGI on os x or other system returns

cyball
Posted: Sun Jun 20, 2010 8:40 am Reply with quote
Joined: 19 Jun 2010 Posts: 2
Am 19.06.2010 um 19:55 schrieb Steve Vinoski:

> On Sat, Jun 19, 2010 at 6:14 AM, Francisc Simon
> <franciscsimon@googlemail.com> wrote:
>> Hi @all,
>>
>> intallation of php was made with macports the fcgi extension was also compiled inside,
>> i've compiled yaws from :: http://github.com/klacke/yaws.git,
>> after yaws installation i've modified the configuration:
>>
>> logdir = /usr/local/var/log/yaws
>> ebin_dir = /usr/local/lib/yaws/examples/ebin
>> ebin_dir = /usr/local/var/yaws/ebin
>> include_dir = /usr/local/lib/yaws/examples/include
>> max_connections = nolimit
>> trace = false
>> use_old_ssl = false
>> runmod = yapp
>> copy_error_log = true
>> log_wrap_size = 1000000
>> log_resolve_hostname = false
>> fail_on_bind_err = true
>> auth_log = true
>> pick_first_virthost_on_nomatch = true
>> use_fdsrv = false
>> php_exe_path = /opt/local/bin/php-cgi
>> <server localhost>
>> port = 8080
>> listen = 0.0.0.0
>> docroot = /Users/franciscsimon/Development/Test/htdocs
>> dir_listings = true
>> statistics = true
>> allowed_scripts = yaws php cgi
>> </server>
>>
>> after that i've created an index.php file with the phpinfo(); content ..
>> and calling localhost:8080/index.php but that returns the error:
>>
>> CGI failure: {exit_status,255}
>>
>> Thx a lot for helping.
>
> Judging by the {exit_status,255} I'm guessing that Yaws can't execute
> your php-cgi script. Are you sure it's executable, etc?
>
> --steve

Hi,

i've tried now to run php-cgi -f index.php and everything was ok ...

Frank



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
View user's profile Send private message

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