Questions tagged [fastcgi]

13 questions
9
votes
1 answer

Can't get nginx to run php on ubuntu 16.04 server

Edit. Question already got an answer here: https://serverfault.com/questions/889334/cant-get-nginx-to-run-php-on-ubuntu-16-04-server I am setting up a server running nginx and I'm trying to get it to run php scripts. Apparently the greatest article…
7
votes
6 answers

PHP 7.2 fastcgi doesn't work on Ubuntu 18.04 server

I've just installed LAMP on a Ubuntu 18.04 server and I can't get PHP fastcgi to work. Here are my settings: My fpm PHP file: /etc/php/7.2/fpm/pool.d/sites.mydomain.conf: [sites.mydomain] ... user = sites group = sites ... listen =…
Duddy67
  • 535
6
votes
1 answer

Configuring Apache 2.4 with FastCGI on Ubuntu 16.04 - What do I do with php7.0-fpm.conf?

I have managed to get FastCGI working with Apache 2.4 on Ubuntu 16.04 by adapting instructions from this askubuntu thread, this HowtoForge document, and this Digital Ocean tutorial. All those sources say to create…
4
votes
1 answer

Internal Server Error when upgrading to PHP 5.6

I already have PHP 5.5.9 With Apache2 on Ubuntu 14.04.1. LTS and just now installed PHP 5.6 from Installing PHP 5.6 on Xenial (16.04) Right now I've 5.5.9, 5.6 and 7.0 versions. In the Virtualmin I've set PHP 5.6 version for my website and it's…
user5858
  • 101
3
votes
2 answers

php7.0-fpm.service: Main process exited /etc/php/7.0/ or /etc/php/7.1/

When running sudo apt-get update sudo apt-get upgrade I get in red the following error: Failed to start The PHP 7.0 FastCGI Process Manager. NOTICE: Not enabling PHP 7.0 FPM by default. NOTICE: To enable PHP 7.0 FPM in Apache2 do: NOTICE: a2enmod…
MeSo2
  • 451
3
votes
0 answers

How to install php7-fpm with Apache on Ubuntu 16.04 with custom .ini and chrooted vhosts?

After several security concerns, I decided to completely redo my server configuration on shared hosting because I need some vhosts to be able to use functions like exec and some running Wordpress to be totally isolated to a single directory with…
Mike
  • 5,931
3
votes
0 answers

Redmine - how to run as fastcgi with nginx?

I have installed redmine on one of my Ubuntu 14.04 servers. So far works perfectly, postgre-db created and filled, and it runs with ruby script/rails server webrick -e production -b 10.0.0.20 Now I want to run it behing nginx. The first tutorial…
WitchCraft
  • 1,904
3
votes
1 answer

Can't install libapache2-mod-fastcgi and php-fpm

So I am trying to install these two packages. I first tried doing the following sudo apt-get update sudo apt-get install -yy apache2 libapache2-mod-fastcgi php-fpm this returned: Reading package lists... Done Building dependency tree Reading…
2
votes
2 answers

Apache mod_rewrite rules don't work with dynamic virtual host and php-fpm

I've created a dynamic virtual host using this configuration file: UseCanonicalName Off ServerName %1.dev ServerAlias *.%1.dev ServerAdmin daniel@localhost VirtualDocumentRoot /home/daniel/public_html/%1 …
2
votes
0 answers

Directive RemoveHandler working with PHP5.6 and PHP 7

I have 2 linode servers each hosting a website. Site A runs under Ubuntu 14.04/Apache2/Mysql/PHP 5.59, Site B runs under Ubuntu 16.04/Apache2/Mysql/PHP 7.0, and I am using Webmin/Virtualmin to manage them. Recently I tried to install PHP7.2 on site…
shenkwen
  • 449
1
vote
0 answers

Domain defined in lighttpd.conf does not redirect to website

So my issue is that I have a specific url defined in my lighttpd.conf file, but when typing that in my browser, it does not redirect me to my website. This is my lighttpd.conf file. server.modules += ( "mod_fastcgi" ) server.modules += (…
Michael
  • 111
1
vote
1 answer

Trying to deploy my flask web app using lighttpd

I'm trying to deploy my flask web app using lighttpd. I created this hello.fcgi file #!/usr/bin/python from flup.server.fcgi import WSGIServer from hello import app if __name__ == '__main__': WSGIServer(app).run() And python file is hello.py…
0
votes
1 answer

Compile fcgi gem on ubuntu 14.04 LTS

OS: Ubuntu 14.04 LTS Ruby Version: 2.3.1p112 gem -v --> 2.5.1 a2enmod fastcgi --> Module fastcgi already enabled I tried running gem install fcgi but it fails with this error have_header: checking for fastcgi/fcgiapp.h... --------------------…