phpfcgid not working.
-
- Posts: 5
- Joined: Sat Jan 07, 2017 11:19 pm
phpfcgid not working.
I changed to phpfcgid and it`s not working..
for example: https://domain.ro/info.php
it says:
Server API Apache 2.0 Handler....
cat /usr/local/vesta/data/users/advanced/web.conf
DOMAIN='domain.ro' IP='' IP6='' ALIAS='www.domain.ro' TPL='phpfcgid' SSL='yes' SSL_HOME='same' LETSENCRYPT='yes' FTP_USER='' FTP_MD5='' BACKEND='' PROXY='default' PROXY_EXT='jpeg,jpg,png,gif,bmp,ico,svg,tif,tiff,css,js,htm,html,ttf,otf,webp,woff,txt,csv,rtf,doc,docx,xls,xlsx,ppt,pptx,odf,odp,ods,odt,pdf,psd,ai,eot,eps,ps,zip,tar,tgz,gz,rar,bz2,7z,aac,m4a,mp3,mp4,ogg,wav,wma,3gp,avi,flv,m4v,mkv,mov,mpeg,mpg,wmv,exe,iso,dmg,swf' STATS='' STATS_USER='' STATS_CRYPT='' U_DISK='90' U_BANDWIDTH='281' SUSPENDED='no' TIME='11:18:33' DATE='2017-01-07'
cat /home/advanced/conf/web/httpd.conf
<VirtualHost ip:8080>
ServerName domain.ro
ServerAlias http://www.domain.ro
ServerAdmin [email protected]
DocumentRoot /home/advanced/web/domain.ro/public_html
ScriptAlias /cgi-bin/ /home/advanced/web/domain.ro/cgi-bin/
Alias /vstats/ /home/advanced/web/domain.ro/stats/
Alias /error/ /home/advanced/web/domain.ro/document_errors/
SuexecUserGroup advanced advanced
CustomLog /var/log/httpd/domains/domain.ro.bytes bytes
CustomLog /var/log/httpd/domains/domain.ro.log combined
ErrorLog /var/log/httpd/domains/domain.ro.error.log
<Directory /home/advanced/web/domain.ro/public_html>
# php_admin_flag engine off --- i tried with this in Directory and of Directory and it`s not working
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir /home/advanced/web/domain.ro/public_html:/home/advanced/tmp
php_admin_value upload_tmp_dir /home/advanced/tmp
php_admin_value session.save_path /home/advanced/tmp
FCGIWrapper /home/advanced/web/domain.ro/cgi-bin/fcgi-starter .php
</Directory>
<Directory /home/advanced/web/domain.ro/stats>
AllowOverride All
</Directory>
IncludeOptional /home/advanced/conf/web/httpd.domain.ro.conf*
</VirtualHost>
cat /home/advanced/web/domain.ro/cgi-bin/fcgi-starter
#!/bin/sh
PHPRC=/usr/local/lib
export PHPRC
export PHP_FCGI_MAX_REQUESTS=1000
export PHP_FCGI_CHILDREN=20
exec /usr/bin/php-cgi
cat /etc/httpd/conf.d/php.conf
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
</Files>
AddType text/html .php
DirectoryIndex index.php
# mod_php options
<IfModule mod_php5.c>
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#<FilesMatch \.phps$>
# SetHandler application/x-httpd-php-source
#</FilesMatch>
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
</IfModule>
centos7 (updated)
vesta
core package
Version:0.9.8 (x86_64)
Release:17
The domain is working on default config... but not in fcgi
I already tried this:
viewtopic.php?t=3586
with no luck...
for example: https://domain.ro/info.php
it says:
Server API Apache 2.0 Handler....
cat /usr/local/vesta/data/users/advanced/web.conf
DOMAIN='domain.ro' IP='' IP6='' ALIAS='www.domain.ro' TPL='phpfcgid' SSL='yes' SSL_HOME='same' LETSENCRYPT='yes' FTP_USER='' FTP_MD5='' BACKEND='' PROXY='default' PROXY_EXT='jpeg,jpg,png,gif,bmp,ico,svg,tif,tiff,css,js,htm,html,ttf,otf,webp,woff,txt,csv,rtf,doc,docx,xls,xlsx,ppt,pptx,odf,odp,ods,odt,pdf,psd,ai,eot,eps,ps,zip,tar,tgz,gz,rar,bz2,7z,aac,m4a,mp3,mp4,ogg,wav,wma,3gp,avi,flv,m4v,mkv,mov,mpeg,mpg,wmv,exe,iso,dmg,swf' STATS='' STATS_USER='' STATS_CRYPT='' U_DISK='90' U_BANDWIDTH='281' SUSPENDED='no' TIME='11:18:33' DATE='2017-01-07'
cat /home/advanced/conf/web/httpd.conf
<VirtualHost ip:8080>
ServerName domain.ro
ServerAlias http://www.domain.ro
ServerAdmin [email protected]
DocumentRoot /home/advanced/web/domain.ro/public_html
ScriptAlias /cgi-bin/ /home/advanced/web/domain.ro/cgi-bin/
Alias /vstats/ /home/advanced/web/domain.ro/stats/
Alias /error/ /home/advanced/web/domain.ro/document_errors/
SuexecUserGroup advanced advanced
CustomLog /var/log/httpd/domains/domain.ro.bytes bytes
CustomLog /var/log/httpd/domains/domain.ro.log combined
ErrorLog /var/log/httpd/domains/domain.ro.error.log
<Directory /home/advanced/web/domain.ro/public_html>
# php_admin_flag engine off --- i tried with this in Directory and of Directory and it`s not working
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir /home/advanced/web/domain.ro/public_html:/home/advanced/tmp
php_admin_value upload_tmp_dir /home/advanced/tmp
php_admin_value session.save_path /home/advanced/tmp
FCGIWrapper /home/advanced/web/domain.ro/cgi-bin/fcgi-starter .php
</Directory>
<Directory /home/advanced/web/domain.ro/stats>
AllowOverride All
</Directory>
IncludeOptional /home/advanced/conf/web/httpd.domain.ro.conf*
</VirtualHost>
cat /home/advanced/web/domain.ro/cgi-bin/fcgi-starter
#!/bin/sh
PHPRC=/usr/local/lib
export PHPRC
export PHP_FCGI_MAX_REQUESTS=1000
export PHP_FCGI_CHILDREN=20
exec /usr/bin/php-cgi
cat /etc/httpd/conf.d/php.conf
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
</Files>
AddType text/html .php
DirectoryIndex index.php
# mod_php options
<IfModule mod_php5.c>
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#<FilesMatch \.phps$>
# SetHandler application/x-httpd-php-source
#</FilesMatch>
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
</IfModule>
centos7 (updated)
vesta
core package
Version:0.9.8 (x86_64)
Release:17
The domain is working on default config... but not in fcgi
I already tried this:
viewtopic.php?t=3586
with no luck...
Re: phpfcgid not working.
Please add a little more info.
> Operating System (OS/VERSION):
Type here, e.g. CentOS 6
> VestaCP Version:
Type here, e.g. 0.9.8-17
> Installed Software (what you got with the installer):
Type here, e.g. php-fpm, apache, nginx, mysql
> Steps to Reproduce:
Type here, e.g. install vesta and type cat /etc/issue
> Related Issues/Forum Threads:
Found anything that might be related to this? It might help us find the cause.
> Other Notes:
Anything else? May be logs?
> Operating System (OS/VERSION):
Type here, e.g. CentOS 6
> VestaCP Version:
Type here, e.g. 0.9.8-17
> Installed Software (what you got with the installer):
Type here, e.g. php-fpm, apache, nginx, mysql
> Steps to Reproduce:
Type here, e.g. install vesta and type cat /etc/issue
> Related Issues/Forum Threads:
Found anything that might be related to this? It might help us find the cause.
> Other Notes:
Anything else? May be logs?