nginx+shell помогите настроить
February 25, 2013 09:34AM
Требуется помощь в настройке nginx+php из index.php должен запускаться shell скрипт локально.
Не пинайте, я новичок.
index.php вида:

<?php
$run = "ts /srv/www/testsite.local/public_html/scr.sh";
exec($run);
?>

права 777 поставил, src.sh лежит в той же папке что и index.php
src.sh:

#! /usr/bin/bash
touch shell_is_work;

права так же 777, слышал что можно было рулить запуск скриптов из php.ini через директивы safe_mode и safe_mode_directory, но эти опции убрали 5.4.10. У меня стоит:
php -v
PHP 5.4.11 (cli) (built: Jan 16 2013 17:35:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

и теперь совсем непонятно куда копать, ошибок в логах я не вижу.
Просьба помочь разобраться, или отправить к нужной литературе.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready