Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

phpfcgid not working.

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
paunescumihai
Posts: 5
Joined: Sat Jan 07, 2017 11:19 pm

phpfcgid not working.
  • Quote

Post by paunescumihai » Thu Feb 09, 2017 1:43 am

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...
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: phpfcgid not working.
  • Quote

Post by skurudo » Thu Mar 09, 2017 2:29 pm

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?
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password