0
votes
1answer
59 views

Installing mysql-server gives 504 Gateway Time-out

So I have this site im coding on that requires a database and is based on PHP. So for this site i installed phpmyadmin that also installed mysql-server. Before I installed phpmyadmin I didn't get a ...
0
votes
2answers
157 views

nginx and php5-fpm not working

before anything i searched everywhere and tested everything but still not working i install php5-fpm and nginx when i open localhost in browser i see this page : Welcome to nginx! so its working ...
0
votes
0answers
61 views

Application doesn't launch on startup (autostart) inside docker's container

the problem I faced with is none of applications doesn't launch on the system boot. I have image based on ubuntu:14.04 installed Nginx, Php5 and Mariadb. On every boot (!) I have to start services ...
1
vote
1answer
229 views

Unable to get error stack trace or error log while using php-fpm + nginx on Ubuntu 14.04

I am using php-fpm 5.5.9 along with nginx 1.4.6 on my Ubuntu 14.04 machine. I have installed them using apt-get package manager. I am unable to get a stack trace of the error that my index.php script ...
3
votes
1answer
831 views

Nginx downloading PHP file only if .php is in the URL

I know this is a popular question but I haven't found anyone with my similar issue. I can serve PHP files as long as the .php extension is not in the url. For example: If I go to localhost I am ...
0
votes
2answers
102 views

my localhost default page welcome me on nginx

hi all wrt my last post, again i am getting frustrated by nginx server, i am trying to install laravel in my /var/www/project folder but when i delete my default HTML dir from my /var/www/html it ...
1
vote
1answer
857 views

NGINX and PHP downloades index.php instead of processing it

I have been banging my head for 2 days now. The issue is that the index.php is downloaded instead of being processed. I'm using Ubuntu 14.04 , Nginx, php5. The nginx/site-available/default is as ...
0
votes
1answer
18 views

Setting up a debug/profiling environment for remote site

I'm having some issues with profiling a site that is loading slowly (close to 2 minutes). It is developed in PHP, Smarty and MySQL (using nginx as the web server), and I've been wanting to use Xdebug ...
0
votes
0answers
42 views

ubuntu 12.10 install ispconfig

Hey guys I am currently working on this installation tutorial for Ubuntu 12.10 with ISPconfig/BIND/dovecot. I am currently stuck on page 4 the section where you you are attempting to start php-fpm. ...
0
votes
1answer
955 views

error (13: Permission denied) in nginx 1.4.1

I am facing this issue on my nginx setup on ubuntu 13.10 I got these weird error on the log of my local domain 2014/04/06 21:29:37 [crit] 18065#0: *3 stat() "/media/user/Backup/Sites/sp/" failed ...
1
vote
1answer
71 views

Catch output from “nginx -t” with php [closed]

I'm trying to make a simple control panel for my webserver running nginx with php-fpm. I've managed to catch result of service php5-fpm restart and service nginx reload, but the output from nginx -t ...
2
votes
1answer
84 views

sendmail & MySQL

I had MySQL and PHP working good in the nginx server. For mailing purpose I installed sendmail. Now all I get is Your PHP installation appears to be missing the MySQL extension which is required by ...
1
vote
0answers
538 views

nginx with hhvm - Not found

I'v set up nginx with hhvm but, any file .php returns me "Not found" except index.php that returns me Running on HHVM version 2.3.2. Some of my configurations /etc/nginx/sites-enable/default ...
0
votes
0answers
67 views

Nginx bad behavior while parsing Links

I use Nginx 1.1.9 and ubuntu 12.4 LTS and following config file for my VHOST config. server { server_name www.DOMAINNAME; rewrite ^(.*) http://DOMAINNAME$1 permanent; } server { ...
0
votes
0answers
161 views

How to manage sqlite database with ubuntu server 12.04

I have installed php and sqlite in my Ubuntu server running nginx. I'm in doubt in how I should manage the SQL database. How should I install something like phpmyadmin that would work in these ...
0
votes
0answers
92 views

My server is making me download the code instead of running it

I am running an ubuntu server 12.04 but unfortunately I am not being able to make the interpreter run the code exactly. I am using nginx encrypted lvm and here is the conf.d (main part): server { ...
0
votes
1answer
424 views

nginx rendering PHP as plain text

server { listen 80; server_name test.local; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; root /var/www/testsite; location ~ \.php$ { ...
0
votes
0answers
78 views

NGINX on Ubuntu 12.04 LTS Server showing wrong 'REMOTE_ADDR'

I have an Ubuntu Production Server running on NGINX 1.1.19. I also have a PHP web application running on it which relies on the REMOTE_ADDR to select the Network Printer nearest to it. However, the ...
0
votes
0answers
60 views

LEMP Stack on Ubuntu Server 13.04 not parsing PHP Switch Statement Properly

On my Ubuntu 12.04 Server LTS on nginx 1.1.19, the following PHP code works properly: switch($_SESSION['user']['permissions']) { case 9: echo "Super Admin Privileges"; ...
15
votes
2answers
25k views

Can't use PHP extension Mcrypt in Ubuntu 13.10 (Nginx, PHP-FPM) [duplicate]

I installed a fresh Ubuntu 13.10 on my laptop. Like I usually do, I install the packages I need for Web development, which are nginx, php5-fpm, mysql, php5-mysql, php5-mcrypt and a few others. After ...
1
vote
1answer
2k views

php5-fpm : Depends: php5-common (= 5.3.10-1ubuntu3.8) but 5.4.6-1ubuntu1.4 is to be installed

I want to set up PHP behind Nginx with FastCGI but I stuck on the sudo apt-get -f install php5-fpm what i've tried: sudo apt-get -f install php5-fpm Reading package lists... Done Building ...
0
votes
1answer
443 views

Can't install php5-fpm after upgrade to 12.10

I upgraded to 12.10 from 12.04 and began getting gateway errors when I accessed phppgadmin via nginx. After looking around I realised that the required program php5-fpm wasn't running and further what ...
0
votes
1answer
789 views

Setting up websites with Ubuntu 13.04 server and Nginx

I'm trying to setup 2 websites on my server ---> A_website and B_website I don't have a domain name registered and I just want to use the site privately so I'll be accessing it via the static IP ...
4
votes
4answers
2k views

Which interprets PHP faster on Ubuntu Server 12.04 32-bit, Apache or Nginx?

I have currently installed Apache on my 12.04 32-bit Ubuntu server, but I'm interested into switching to Nginx. I have read a number of comparisons and reviews, where Nginx is faster than Apache ...
1
vote
0answers
313 views

PHP-FPM dynamic vs ondemand Speed

In terms of speed, which is better? dynamic or ondemand? I just switch from apache to nginx so I need to know which of the two is better.
0
votes
1answer
2k views

Nginx Basic Auth and subfolders

I have a problem with subfolders in a basic auth procted folder. In the protected folder i have a folder named phpmyadmin, which contains phpmyadmin. Im not able to run phpmyadmin, when basic is ...
1
vote
0answers
438 views

Setting up Mail server on Ubuntu 12.04.2 Server

Based on this article http://iain.it/linux/how-to-install-php-fpm-and-nginx-on-ubuntu-12-04 I've built my LEMP web server. I need one more function to work: mail. It's production server and I can't ...
0
votes
1answer
655 views

hiphop, nginx, spdy

I'm about a month young at linux and brand new to ubuntu. I can do this to install hiphop https://github.com/facebook/hiphop-php/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04 (I installed ...
2
votes
4answers
842 views

HTML5 websocket-support for NGINX

I need websockets in a project for HTML5 and PHP, but it don´t works. I read something about that NGINX is not supporting them. Is there a possibility to install a plugin that brings me the support ...
1
vote
2answers
10k views

PHP-FPM - Nginx - phpMyAdmin - 502 bad gateway

I have installed and configured PHP-FPM, Nginx, and then phpMyAdmin. When I access the main site everything works fine but as soon as I go to http://mysite.com/phpmyadmin I get a 502 bad gateway ...
0
votes
1answer
2k views

Xampp is not running on ubuntu

I have nginx ,Apache2 ,Xampp installed on Ubuntu 12.04 Nginx is running on port 80 First I stopped Apache2 using /etc/init.d/apache2 stop Now I started Xampp using /opt/lampp/lampp restart I ...
0
votes
1answer
828 views

I upgraded my server to 12.10, why does PHP not work with nginx?

I upgraded and now I can't use my nginx's proxy_pass arguments on my Ubuntu server to work with PHP. I keep getting 502 Bad Gateway errors. Why is this, and how do I fix this?
9
votes
1answer
12k views

Nginx/PHP-FPM “Access denied.” error

I'm trying to set up a freshly installed Ubuntu (12.04) server, but I can't get PHP files running through php-fpm. No matter what I do, I always get a "Access denied." page (plain text, not html or ...
41
votes
2answers
57k views

What is the easiest way to enable PHP on nginx?

What is the easiest way to enable PHP on nginx on Ubuntu 12.04? Best solution is the one that request minimal work, ideally just a package installation :)
3
votes
2answers
3k views

Can't add repository due to 'missing' fingerprint

I am trying to install nginx with php but when I am following a guide, like this one: http://www.justincarmony.com/blog/2011/10/24/setting-up-nginx-php-fpm-on-ubuntu-10-04/ I am always told to add ...
16
votes
1answer
22k views

Ubuntu php5-fpm unix socket

I have Ubuntu 11.10 and installed php5-fpm and I want to configure nginx. I want to use unix sockets instead of tcp sockets but I couldn't find the /var/run/php5-fpm.sock I have looked also ...
2
votes
1answer
358 views

Memcached/APC will not start with PHP

I've compiled PHP 5.3.9 and NGINX 1.0.11 and want to use APC and Memcached with PHP. I keep getting this error when attempting to load the APC/Memcached modules: Unknown(0) : Warning - PHP Startup: ...
2
votes
2answers
2k views

PHP-FPM Constantly Restarting Pools - Zombie's Everywhere!

Ok so after a recent incident in which I ran "chown -R root:root" on my entire /var directory on accident (XO.. I know...) I've been dealing with php-fpm issues. I've tried fixing permissions in a ...
2
votes
1answer
2k views

php5-fpm incomplete install - no config file

I've set up a server with Ubuntu 11.04 and Nginx+PHP-FPM+Varnish+APC+MySQL+Memcached+WordPress. Everything runs pretty nice, but there is a tiny problem with the PHP-FPM service. Install goes OK after ...
0
votes
2answers
3k views

php does not parse using nginx & phpfm

I am setting up a VPS and followed the nginx, PHP, MySQL instructions for WordPress from this tutorial http://tutspundit.com/howto-install-nginx-php-fpm-mysql-php533-wordpress-ubuntu-part-1/ and then ...
8
votes
1answer
8k views

How to set up PHP with Nginx, APC and PostgreSQL?

I use Ubuntu Server 10.10 and I would like to set up a web server environment with NginX, PHP 5.3.3, PostgreSQL and preferably APC and PHP Suhosin. I have already set up PostgreSQL with apt-get ...