cgiwrap 可以做到

2009/7/15 钟声 <[email protected]>

> [?]谢谢
> Anthony WU*找到问题了* _ENV["LANG"]C _ENV["APACHE_RUN_GROUP"]admint
> _ENV["APACHE_RUN_USER"]admint*这是phpinfo()打印出来的,是我改过之后的,以前是默认的www-data用户
>
> 开始我在php.ini里面打www-data*
> grep 'www-data' /etc/php5/apache2/php.ini
> *没找到。。我想是不是应该在apache配置文件里面呢?因为上面提示的是apache用户*
>
> *后来在 /etc/apache2/apache2.conf 里面找到这么一句*
> # These need to be set in /etc/apache2/envvars
> User ${APACHE_RUN_USER}
> Group ${APACHE_RUN_GROUP}
> *
> 终于在/etc/apache2/envvars里面找到了*
> # Since there is no sane way to get the parsed apache2 config in scripts,
> some
> # settings are defined via environment variables and then used in
> apache2ctl,
> # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
> export APACHE_RUN_USER=www-data
> export APACHE_RUN_GROUP=www-data
> export APACHE_PID_FILE=/var/run/apache2.pid
> *改过重启下就好了。。
> 还有个问题就是怎么给虚拟主机份一个apache 运行用户呢?*
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。
 要在此论坛发帖,请发电子邮件到 [email protected]
 要退订此论坛,请发邮件至 [email protected]
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

<<inline: 35D.gif>>

回复