Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
ForbiddenYou don't have permission to access /app.vrsoft.ru/forum/ on this server.Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch Server at localhost Port 80
sudo chown -R thunder /var/www/app.vrsoft.ru
thunder@c2d:~$ ls -al /var/www/app.vrsoft.ru | grep forumdrwxrwx--- 5 thunder root 4096 2008-02-27 13:00 forumthunder@c2d:~$ ls -al /var/www/app.vrsoft.ru/forum/итого 320drwxrwx--- 5 thunder root 4096 2008-02-27 13:00 .drwxr-xr-x 20 thunder root 4096 2008-08-22 20:39 ..-rw-r--r-- 1 thunder root 1821 2008-02-27 12:57 addon_badwords2.php-rw-r--r-- 1 thunder root 509 2008-02-27 12:57 addon_badwords.txt-rw-r--r-- 1 thunder root 27761 2008-02-27 12:57 alukard.php-rw-r--r-- 1 thunder root 5279 2008-02-27 12:57 bb_codes.php-rw-r--r-- 1 thunder root 4054 2008-02-27 12:57 bb_cookie.php-rw-r--r-- 1 thunder root 4599 2008-02-27 12:57 bb_default_style.css-rw-r--r-- 1 thunder root 1409 2008-02-27 12:58 bb_func_checkusr.php-rw-r--r-- 1 thunder root 1391 2008-02-27 12:58 bb_func_confpwd.php-rw-r--r-- 1 thunder root 2953 2008-02-27 12:58 bb_func_delmsg.php-rw-r--r-- 1 thunder root 3118 2008-02-27 12:58 bb_func_deltopic.php-rw-r--r-- 1 thunder root 5046 2008-02-27 12:58 bb_func_editmsg.php-rw-r--r-- 1 thunder root 6389 2008-02-27 12:58 bb_func_editprf.php-rw-r--r-- 1 thunder root 1845 2008-02-27 12:58 bb_func_forums.php-rw-r--r-- 1 thunder root 747 2008-02-27 12:58 bb_func_inslng.php-rw-r--r-- 1 thunder root 4486 2008-02-27 12:58 bb_func_ldisc.php-rw-r--r-- 1 thunder root 1223 2008-02-27 12:58 bb_func_locktop.php-rw-r--r-- 1 thunder root 6158 2008-02-27 12:58 bb_func_login.php-rw-r--r-- 1 thunder root 1682 2008-02-27 12:58 bb_func_man.php-rw-r--r-- 1 thunder root 2752 2008-02-27 12:58 bb_func_movetpc.php-rw-r--r-- 1 thunder root 4166 2008-02-27 12:58 bb_func_posthold.php-rw-r--r-- 1 thunder root 7581 2008-02-27 12:58 bb_func_pthread.php-rw-r--r-- 1 thunder root 3716 2008-02-27 12:58 bb_func_ptopic.php-rw-r--r-- 1 thunder root 5363 2008-02-27 12:58 bb_func_regusr.php-rw-r--r-- 1 thunder root 12585 2008-02-27 12:58 bb_func_search.php-rw-r--r-- 1 thunder root 5673 2008-02-27 12:58 bb_func_stats.php-rw-r--r-- 1 thunder root 822 2008-02-27 12:58 bb_func_sticky.php-rw-r--r-- 1 thunder root 11768 2008-02-27 12:59 bb_functions.php-rw-r--r-- 1 thunder root 7832 2008-02-27 12:58 bb_func_txt.php-rw-r--r-- 1 thunder root 854 2008-02-27 12:58 bb_func_unsub.php-rw-r--r-- 1 thunder root 8304 2008-02-27 12:59 bb_func_usernfo.php-rw-r--r-- 1 thunder root 755 2008-02-27 12:59 bb_func_usrdat.php-rw-r--r-- 1 thunder root 2489 2008-02-27 12:59 bb_func_vforum.php-rw-r--r-- 1 thunder root 1341 2008-02-27 12:59 bb_func_viewip.php-rw-r--r-- 1 thunder root 10835 2008-02-27 12:59 bb_func_vthread.php-rw-r--r-- 1 thunder root 7483 2008-02-27 12:59 bb_func_vtopic.php-rw-r--r-- 1 thunder root 63 2008-02-27 12:59 bb_plugins2.php-rw-r--r-- 1 thunder root 286 2008-02-27 12:59 bb_plugins.php-rw-r--r-- 1 thunder root 63 2008-02-27 12:59 bb_plugins_user.php-rw-r--r-- 1 thunder root 456 2008-02-27 12:59 bb_specials.phpdrwxrwx--- 3 thunder root 4096 2008-02-27 13:00 img-rw-r--r-- 1 thunder root 19896 2008-02-27 12:59 index.phpdrwxrwx--- 2 thunder root 4096 2008-02-27 13:00 lang-rw-r--r-- 1 thunder root 7726 2008-02-27 13:17 setup_mysql.php-rw-r--r-- 1 thunder root 4528 2008-08-22 19:36 setup_options.phpdrwxrwx--- 2 thunder root 4096 2008-02-27 13:02 templatesthunder@c2d:~$
sudo chmod -R 755 /var/www/app.vrsoft.ru
Это с какого перепуга у php-скриптов должен стоять атрибут выполнения? Это же не CGI-скрипт.. Вы шо, с дуба рухнули? Скрипт обрабатывается mod_php или вызывается установленный в системе php (который, блин, является исполняемым)
<?php include "func.php"; test();?>
<?php function test() { phpinfo(); }?>
Страница сгенерирована за 0.046 секунд. Запросов: 25.