Chrooted apache +php

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Chrooted apache +php

Aleksei Bebinov
?????, ?????????? ??? ? ??????????? ? ???? ????? ?????????? ?????????? php,
?? ????? ?? :
1. ???????
2. ?? ??????? ?? ??????? ????? (????????? ???? ?? ??????? ????????????
?????).

???????? ?? ????


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Oleg Safiullin
> ?????, ?????????? ??? ? ??????????? ? ???? ????? ?????????? ??????????
> php,
> ?? ????? ?? :
> 1. ???????
> 2. ?? ??????? ?? ??????? ????? (????????? ???? ?? ??????? ????????????
> ?????).
>
> ???????? ?? ????

??? ?? ????????.
??? ??? ? ???? ???? php ??????? ?? ??????/??????? :)


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Ilya Kashapov
In reply to this post by Aleksei Bebinov
???????????? Aleksei,

Thursday, December 8, 2005, 3:31:03 PM, ?? ??????:

AB> ?????, ?????????? ??? ? ??????????? ? ???? ????? ?????????? ?????????? php,
AB> ?? ????? ?? :
AB> 1. ???????
?????????? php ?? ??????

AB> 2. ?? ??????? ?? ??????? ????? (????????? ???? ?? ??????? ????????????
AB> ?????).

???????? ? ???????? ???????????? ?????

php_admin_flag engine on
php_admin_flag expose_php off
php_admin_flag safe_mode on
php_admin_flag track_vars on
php_admin_flag allow_url_fopen off
php_admin_flag magic_quotes_runtime off
php_admin_value doc_root /users/site
php_admin_value open_basedir /users/site
php_admin_value safe_mode_exec_dir /users/site
php_admin_value safe_mode_protected_env_vars LD_LIBRARY_PATH
php_admin_value safe_mode_allowed_env_vars PHP_
php_admin_value upload_tmp_dir /users/site/tmp
php_admin_value upload_max_filesize 1024000
php_admin_value max_execution_time 10
php_admin_value post_max_size 1M
php_admin_value memory_limit 8M
php_admin_flag mysql.allow_persistent off
php_admin_value mysql.max_links 5
php_admin_flag pgsql.allow_persistent off
php_admin_value pgsql.max_links 5




--
? ?????????,
 Ilya                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Dmitry V. Kustov
In reply to this post by Aleksei Bebinov
On Thu, 08 Dec 2005 08:31:03 +0300, Aleksei Bebinov <[hidden email]>  
wrote:

> ?????, ?????????? ??? ? ??????????? ? ???? ????? ?????????? ??????????  
> php,
> ?? ????? ?? :
> 1. ???????
> 2. ?? ??????? ?? ??????? ????? (????????? ???? ?? ??????? ????????????
> ?????).
>
> ???????? ?? ????
>
>
? ???? ?????
/var/www/libexec/libphp4.so
/var/www/bin/sh
/var/www/usr/lib/libc.so.x.y
/var/www/usr/lib/libm.so.x.y
/var/www/usr/lib/libutil.so.x.y
/var/www/usr/lib/libz.so.x.y
?? ? ??? ?????, ??? ?????? ??? ???? (?.?. ??? ?? ? Perl, ? ??.).

?????? ?? ????? ??
/var/www/etc/localtime
/var/www/tmp


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Troex Nevelin

On Dec 8, 2005, at 13:02, Dmitry V. Kustov wrote:

> On Thu, 08 Dec 2005 08:31:03 +0300, Aleksei Bebinov
> <[hidden email]> wrote:
>
>> ?????, ?????????? ??? ? ??????????? ? ???? ????? ??????????
>> ?????????? php,
>> ?? ????? ?? :
>> 1. ???????
>> 2. ?? ??????? ?? ??????? ????? (????????? ???? ?? ??????? ????????????
>> ?????).
>>
>> ???????? ?? ????
>>
>>
> ? ???? ?????
> /var/www/libexec/libphp4.so
> /var/www/bin/sh
> /var/www/usr/lib/libc.so.x.y
> /var/www/usr/lib/libm.so.x.y
> /var/www/usr/lib/libutil.so.x.y
> /var/www/usr/lib/libz.so.x.y
> ?? ? ??? ?????, ??? ?????? ??? ???? (?.?. ??? ?? ? Perl, ? ??.).
>
> ?????? ?? ????? ??
> /var/www/etc/localtime
> /var/www/tmp

? ?? ????? ??? ?????? ?? ?????, ??? ??? apache ??????? ??????????
??????????? ??? ?????????? ?? ???????? ????????? ? ????? ?????? ??????
chroot, ????? ??? /var/www/lib/php/modules/ ?????, ??? ??? php ???,
??????? ????? ?????? ???? ?????? ? chroot'e.

--
                born to create future
Troex Nevelin ([hidden email])


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Troex Nevelin
In reply to this post by Ilya Kashapov

On Dec 8, 2005, at 07:55, Ilya Kashapov wrote:

> ???????? ? ???????? ???????????? ?????
>
> php_admin_flag engine on
> php_admin_flag expose_php off
> php_admin_flag safe_mode on
> php_admin_flag track_vars on
> php_admin_flag allow_url_fopen off
> php_admin_flag magic_quotes_runtime off
> php_admin_value doc_root /users/site
> php_admin_value open_basedir /users/site
> php_admin_value safe_mode_exec_dir /users/site
> php_admin_value safe_mode_protected_env_vars LD_LIBRARY_PATH
> php_admin_value safe_mode_allowed_env_vars PHP_
> php_admin_value upload_tmp_dir /users/site/tmp
> php_admin_value upload_max_filesize 1024000
> php_admin_value max_execution_time 10
> php_admin_value post_max_size 1M
> php_admin_value memory_limit 8M
> php_admin_flag mysql.allow_persistent off
> php_admin_value mysql.max_links 5
> php_admin_flag pgsql.allow_persistent off
> php_admin_value pgsql.max_links 5

?????, ?????? ?????, ???? ???? ??? ???? ? ???? ????? ?????????,
????? ??? ?? ??? ????, ? ??? ???? ??????? ????? ?????? ???? ????,
??? ???????, ????? ????? ??????????.

--
                born to create future
Troex Nevelin ([hidden email])


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Dmitry V. Kustov
In reply to this post by Troex Nevelin
On Thu, 08 Dec 2005 15:50:26 +0300, Troex Nevelin <[hidden email]> wrote:

>
> On Dec 8, 2005, at 13:02, Dmitry V. Kustov wrote:
>
>> ? ???? ?????
>> /var/www/libexec/libphp4.so
>> /var/www/bin/sh
>> /var/www/usr/lib/libc.so.x.y
>> /var/www/usr/lib/libm.so.x.y
>> /var/www/usr/lib/libutil.so.x.y
>> /var/www/usr/lib/libz.so.x.y
>> ?? ? ??? ?????, ??? ?????? ??? ???? (?.?. ??? ?? ? Perl, ? ??.).
>>
>> ?????? ?? ????? ??
>> /var/www/etc/localtime
>> /var/www/tmp
>
> ? ?? ????? ??? ?????? ?? ?????, ??? ??? apache ??????? ??????????
> ??????????? ??? ?????????? ?? ???????? ????????? ? ????? ?????? ??????
> chroot, ????? ??? /var/www/lib/php/modules/ ?????, ??? ??? php ???,
> ??????? ????? ?????? ???? ?????? ? chroot'e.
>
apache ??, ? ?? ???? ???, ? ??? php ???? ?????? ??, ????? ??? ? chroot.
?? ???? ????? ?????? ?? ??? ????, ??????? ??? ???.


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Andrey N. Oktyabrski
In reply to this post by Troex Nevelin
Troex Nevelin wrote:

> On Dec 8, 2005, at 07:55, Ilya Kashapov wrote:
>> ???????? ? ???????? ???????????? ?????
>>
>> php_admin_flag engine on
>> php_admin_flag expose_php off
>> php_admin_flag safe_mode on
>> php_admin_flag track_vars on
>> php_admin_flag allow_url_fopen off
>> php_admin_flag magic_quotes_runtime off
>> php_admin_value doc_root /users/site
>> php_admin_value open_basedir /users/site
>> php_admin_value safe_mode_exec_dir /users/site
>> php_admin_value safe_mode_protected_env_vars LD_LIBRARY_PATH
>> php_admin_value safe_mode_allowed_env_vars PHP_
>> php_admin_value upload_tmp_dir /users/site/tmp
>> php_admin_value upload_max_filesize 1024000
>> php_admin_value max_execution_time 10
>> php_admin_value post_max_size 1M
>> php_admin_value memory_limit 8M
>> php_admin_flag mysql.allow_persistent off
>> php_admin_value mysql.max_links 5
>> php_admin_flag pgsql.allow_persistent off
>> php_admin_value pgsql.max_links 5
>
> ?????, ?????? ?????, ???? ???? ??? ???? ? ???? ????? ?????????,
> ????? ??? ?? ??? ????, ? ??? ???? ??????? ????? ?????? ???? ????,
> ??? ???????, ????? ????? ??????????.
? ??? ???, ????????, ???????? ??? ???? ???, ? ???? ??????? ????
???????, ???? ????? ???? ?? ???????. ? ??? ? ?????? ? ?? ?? ????, ?????
?????.


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Oleg Safiullin
In reply to this post by Dmitry V. Kustov
> apache ??, ? ?? ???? ???, ? ??? php ???? ?????? ??, ????? ??? ? chroot.
> ?? ???? ????? ?????? ?? ??? ????, ??????? ??? ???.

? ??? ? ???????? php ?? ?? ?????... ;)
???????? ??????????? ? chroot ?? ????.
???? ?????? ?? ??????????? ?????????? ?? ??????...


Reply | Threaded
Open this post in threaded view
|

Re: Chrooted apache +php

Dmitry V. Kustov
On Thu, 08 Dec 2005 19:05:44 +0300, Oleg Safiullin <[hidden email]>  
wrote:

>> apache ??, ? ?? ???? ???, ? ??? php ???? ?????? ??, ????? ??? ?  
>> chroot.
>> ?? ???? ????? ?????? ?? ??? ????, ??????? ??? ???.
>
> ? ??? ? ???????? php ?? ?? ?????... ;)
> ???????? ??????????? ? chroot ?? ????.
> ???? ?????? ?? ??????????? ?????????? ?? ??????...
>
>
???????? - ????????. ???????!

/var/www/libexec/libphp4.so ?? ?????.