Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  Yaws PHP5 Howto

asphaltjesus
Posted: Thu Apr 10, 2008 12:11 am Reply with quote
Joined: 09 Apr 2008 Posts: 3
Hi,

In order to
Getting PHP5 working was pretty painless on Debian
once I sorted out the details. I'll start with
configuring nginx php and Yaws.

Preliminary steps.
1a. You must run php-cgi. In my case, "apt-get
install php5-cgi" installs it.

1b. In the cgi/php.ini be sure you modify it to pick
up any modules like mysql, odbc, pgsql, etc.

2a. I run yaws on 8080 and have nginx reverse proxying
from http://mydomain:80 to 8080. Yaws won't run as a
low-privilege user if you want it to listen on port
80.

2b. nginx.conf needs the following directives:
server {
listen 80;
server_name yourdomain.com;
access_log /path/to/access/log.log
location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect default;
}
}
You should probably put in the error_page options as
shown in the conf file. You can comment out the index
directives.

3a. add the following to /etc/yaws/yaws.conf
php_exe_path = /usr/bin/php-cgi

3b. In <server 127.0.0.1> you need to add
allowed_scripts = yaws php cgi

3c. Check the rest of the <server 127.0.0.1>
directives and make sure the docroot is good.

4. Restart both yaws and nginx. You should be good to
go.

I've got etomite running on it right now and will move
my drupal over from apache2 as soon as I get etomite
working right.

Great work! Thank you all. I look forward to
learning erlang.



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
wuji
Posted: Sat Sep 15, 2012 6:25 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
me in the house."She said that wanting to be accepted for who who cheap jordan shoes who she is drove her to come out on television that year
Jerry Falwell, Pat Robertson and other members of the evangelical community who who cheap designer *beep* who said they were disappointed. Some called her "Ellen Degenerate.""You know Ellen
such a good person," her mother said. "Now, I don't want to to cheap polo shirts to get weepy, I don't, but she's so good that she shouldn't
all this directed at her."Today Betty DeGeneres fights for gay rights. She She [h1]designer replica *beep*[/h1] She is devoted and always tolerant.Bill Clinton Boosts President Obama - So
George W. Bush for Mitt Romney?2 Prior Presidents Take Dramatically Different Approaches Approaches cheap Ralph Lauren Polo Approaches to 2012 CampaignBy JOEL SIEGELMay 4, 2012 — He was once
most dominant figure in American politics, his approval rating an astounding 90 90 cheap designer *beep* 90 percent. But four years after leaving office, former President George W.
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