location ^~ /laravel {
alias /usr/share/nginx/html/laravel/public;
try_files $uri $uri/ @laravel;
location ~ \.php {
root /usr/share/nginx/html/laravel/public;
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
location @laravel {
rewrite /laravel/(.*)$ /laravel/index.php?/$1 last;
}
chmod +x /etc/init.d/php7.0-fpm
service php7.0-fpm status
● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled)
Active: active (running) since Mon 2016-08-08 09:32:50 UTC; 15min ago
Docs: man:php-fpm7.0(8)
Main PID: 662 (php-fpm7.0)
Status: "Processes active: 0, idle: 2, Requests: 10, slow: 0, Traffic: 0req/sec"
CGroup: /system.slice/php7.0-fpm.service
├─662 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
├─721 php-fpm: pool www
└─722 php-fpm: pool www
?>
<?php
// Процесс авторизации
public function login()
{
$signin = new Signin($this->db);
$signin->set('login',$this->f3->get('POST.login'));
$signin->set('password',md5($this->f3->get('POST.password')));
$auth=new \Auth($signin, array('id'=>'login','pw'=>'password'));
if ($auth->login($this->f3->get('POST.login'),md5($this->f3->get('POST.password')))==1)
$this->f3->reroute('/');
}
<input id="newsTitle" name="login" type="text" value="{{ @POST.login}}" >
<input id="newsDate" name="lastname" type="text" value="{{ @POST.lastname}}" >
# Кодировка сайта в Windows-1251
DefaultLanguage ru
AddDefaultCharset windows-1251
php_value default_charset "cp1251"
# Свои параметры (php.ini)
php_flag short_open_tag On
php_flag dispay_errors On
php_flag display_startup_errors On
php_value upload_max_filesize 16M
Скажу сразу пробовал с помощью suPHP_ConfigPath, но апач этого не понимает и пишет что то в лог (Уже не скажу так как почистил)