Questions relating to Nginx, an open source Web Server and reverse proxy server.

learn more… | top users | synonyms

0
votes
0answers
12 views

404 not found : After installing LAMP stack

I have installed Ubuntu and NGINX server, php7.0 and mysql database. After that I have installed the WordPress. When I opened the site with ip-address I am getting 404 not found. Image showing ...
0
votes
0answers
29 views

Installing phpmyadmin on php7 : Ubuntu 14.04

I have LAMP stack on Ubuntu 14.04. I have upgraded from php 5.0 to php 7.0 but i couldn't install phpmyadmin. I went to my public folder which is var/www/domain.com/html and ran that code, git ...
0
votes
0answers
26 views

How to restart nginx server using PHP? [duplicate]

I have a problem, i make a site to control our server, but i cannot restart nginx server, this my code $queryRestart = "sudo /etc/init.d/nginx restart";<br> $restart = exec($queryRestart);
0
votes
0answers
51 views

Lucee, Preside, Elasticsearch And Nginx on Ubuntu 16.04 LTS

I've been following a document on Installing Lucee, Preside, Elasticsearch and nginx all on Ubuntu 14.04 LTS. Our current version works however when I attempted at installing it on the most up to date ...
1
vote
2answers
59 views

Run Shell Script inside tmux

Why after running tmux on a remote server via ssh, program works; but after detaching sessions, it returns 404? This is a Go(golang) program, a http server listening on a port, behind a nginx reverse ...
1
vote
0answers
37 views

SSL Certificate Issue Godaddy + DigitalOcean + Nginx

I follow digitalocean tutorial - how to install godaddy certificate with nginx. Everything worked fine expect it's not showing green color in chrome or lock in safari. I tested certificate with ...
0
votes
0answers
25 views

Mattermost Nginx Configuration

I'd like to run Nginx ONLY on the port required for Mattermost i.e. port 8065 alone. I want it to use SSL so that the communication is secure. I've attempted with what they provided in the ...
0
votes
0answers
39 views

Problem in nginx ERPnext is not opening

I installed ERPnext on Ubuntu command-line server and everything was great, nginx opened at localhost:8000 and worked fine. it stopped working until I installed apache2 no doubt, i removed apache2 but ...
-1
votes
1answer
27 views

How we install Apache and Nginx together and check default page as both uses same port 80

$sudo apt-get install apache2 $Sudo apt-get install nginx Both installed but only apache is running and if we go for nginx after stopping service of apache ,nginx service is running but not showing ...
0
votes
1answer
68 views

Multiple websites on nginx, one IP

So I'm using digital ocean and nginx. I want to host multiple websites (my projects) but dont want to buy a domain for each one. Is there a way to host multiple websites on nginx and digital ocean ...
1
vote
1answer
432 views

Nginx installation error in Ubuntu 16.04

:~$ sudo apt-get remove nginx* && sudo apt-get install nginx-full* Reading package lists... Done Building dependency tree Reading state information... Done After this operation, 5,579 kB of ...
0
votes
1answer
15 views

Open Build System error, nothing provides dh-systemd(>=1.5) in Ubuntu 16.04 repository

I am trying to build a custom nginx package for Ubuntu 16.04 [link to my project]. I created my gpg signed files to be uploaded using the command Code: debuild -S -sa -k'mygpgkey' and uploaded ...
0
votes
0answers
24 views

cannot change open file limit

On ubuntu 14.04 production web server, I set as below: /etc/security/limits.conf * soft nproc 65535 * hard nproc 65535 * soft nofile 65535 * hard nofile 65535 /etc/pam.d/common-session session ...
0
votes
1answer
23 views

nginx start (question about how to cope with linux reference manuals)

Ubuntu 14.04 Could you help me understand what does this difference mean. I'm trying to cast a look at nginx (a web-server). I would like to start it. It starts automatically, but I have stopped it. ...
1
vote
1answer
204 views

Ubuntu 16.04 LTS, ZFS, SWRAID and mentoring inquiries

It's been awhile since I have posted in this Ubuntu forums site and now I’m utilizing the mailing list. I also tried to check reddit and after reading the FAQ there, this site is the way to go. I am ...
0
votes
0answers
29 views

How to run Multiple Magento2 setup with Nginx

I want to configure multiple Magento2 setup (like 3 setups) with single domain name. like.. If I browser the URL as below then it should load separate directory based on Nginx request. ...
0
votes
0answers
22 views

Trouble using pimcore on LEMP stack

I was able to install pimcore on a LEMP server with php5.6 and ubuntu 15.10 wily. The php packages installed according to the official system requirements on the pimcore website. After installing ...
0
votes
0answers
13 views

.htaccess on Ubuntu 14.04 x64 + VestCp Nginx

Hello everyone I have some issues. I have a Ubuntu 14.04 x64 server with VestCp on it and I added a site that have this .htaccess RewriteEngine On RewriteRule ^news/([^/]*)/$ /news.php?news-url=$1 ...
0
votes
0answers
32 views

info.php is downloading instead of loading in browser [duplicate]

I have installed nginx server with php7 following this tutorial on tecadmin - but when I type localhost/info.php on the browser, it start to download the file instead of showing the page. What can ...
0
votes
1answer
32 views

Ubuntu on MS Azure - how to setup nginx

I created new VM with Ubuntu 14.04 and I'd like to setup nginx on it. I installed nginx via putty ssh connection: sudo apt-get update sudo apt-get install nginx sudo ufw allow 80 However, when I ...
0
votes
1answer
35 views

www-data running command not working

I'm using nginx with php , and I would like to run some command with exec() http://php.net/manual/fr/function.exec.php . the current example work perfectly echo exec('whoami'); but when I try with ...
0
votes
1answer
789 views

How to install php 7 to run beside php 5 on ubuntu with nginx

I want to try php 7 and get my site working on php 7 in the same time keeping other sites working on php 5 just in case. so that from the domain virtual host config I can decide which php to run. I ...
0
votes
1answer
1k views

nginx fail to install on Ubuntu 15.10 server

I am trying to install nginx on my freshly installed Ubuntu Server 15.10 with Mate desktop. I did a quick update: sudo apt-get update Now trying to install nginx: sudo apt-get install nginx ...
0
votes
0answers
190 views

php permission denied on ubuntu webserver

I have an Ubuntu web-server on Ubuntu Mate 15.10, with php-fpm, and nginx 1.9.3. I tried to do some simple file IO today, but got: failed to open stream: Permission denied from ...
0
votes
0answers
12 views

nginx smf forum works on host but not clients

I have ubuntu running in a virtual machine and I have a LEMP stack properly configured and everything works... on the host VM. im the actual OS (windows 10) some files dont load (some .css files and ...
0
votes
2answers
74 views

Apache2 error no listening sockets avaliable

Someone help me. This error appeared after I installed without wanting NGINX but had the ispconfig . I want to continue to use the ispconfig . It seems that something is on the port that it is ...
0
votes
0answers
25 views

Securely load website content using http on local and https outside

Is secure to load page on local server (i have apache and nginx,where nginx is proxying to apache under specific port) with http and for setup https for output ? Example: I have service running under ...
0
votes
1answer
166 views

nginx won't start at boot using systemd

I'm using nginx mainly as an http(s) proxy, for this I need to provision some domain names, which nginx tries to resolve (DNS) at startup. If I start nginx manually (using systemctl start) after the ...
1
vote
1answer
90 views

Using SSL with redirects from non http causes redirect loop?

I recently setup letsencrypt with my site, and the SSL works perfectly. However, when I set Nginx to redirect HTTPS to HTTPS, I get a redirect loop where when you visit the website and refresh the URL ...
0
votes
2answers
47 views

How to totally remove the nginx from ubuntu 14.04 LTS

I have un-install all the nginx related packages.(like this answer said http://askubuntu.com/a/457412/383308), after that I run the command below command gives nothing. sudo find / -name 'nginx' ...
1
vote
1answer
62 views

Multiple connections per ip

I am running Ubuntu with a webserver (Nginx). I noticed that one IP has multiple connections opened. My server works all fine and there is no issue. I am just curious to know why there are many ...
0
votes
1answer
17 views

Filtering nginx traffic

I have an nginx server running on ubuntu server. I have many websites and hundreds of pages hosted on the server. I want to execute one PHP function on each page when it is requested by a user. It is ...
0
votes
2answers
74 views

NGinx reverse proxy and subdomains on apache2

I currently have an nginx VM setup to route traffic between 3 domains but am having an issue with routing the subdomains at the moment. The current configuration goes PFSense -> nginx reverse proxy -> ...
0
votes
0answers
36 views

How to configure rails+nginx with RAILS_ENV = development in Ubuntu?

I am using Ubuntu Server 14.04.3. I would set up the rails with development env along with nginx to simulate a production env, but whenever I set can not access the project. When I use with the env ...
2
votes
2answers
135 views

set nginx server_name variable from command

root@username:/home/dokku/appname# cat nginx.conf server { listen [::]:80; listen 80; server_name appname.wrongname.co.uk ; access_log /var/log/nginx/appname-access.log; ...
1
vote
0answers
30 views

How do I fix/undo sudo aptitude safe-upgrade

So I'm fighting with NodeBB -- and found that nginx was advised. However I thought I needed the most updated version (when in fact 1.4.x is recommended). I couldn't get the rerouting working on 1.8 ...
0
votes
0answers
23 views

Trying to upload Previously made Larav4 website on Nginx Digital Ocean Ubuntu 14.04 returning 404 page not found

I am migrating my Laravel4 based app to Digital Ocean . So I created a folder in /var/www/ideconnect.com/html/ and pasted my app code in the folder so now when I do www.ideportal.com/public/ it ...
1
vote
2answers
375 views

How to configure Apache on Ubuntu 14.04 if Nginx is already installed

I followed the Tutorial on Digital Ocean and installed LEMP server successfully. Then I read about reverse-proxy using Nginx and APache for hosting multiple websites on the same droplet . Since I ...
0
votes
0answers
65 views

Apache 403 Error

I have bough a dedicated server from soyoustart a company owned by ovh. I have a 32 Gb ram server, anyways. I don't know how to fix the apache 403 glitch. I do: apt-get update apt-get install ...
0
votes
1answer
21 views

Do I need to keep the ngx_pagespeed source code after compiling it into nginx?

I have built nginx with the ngx_pagespeed module with the following configure flag: --add-module=ngx_pagespeed Do I still need to keep the original ngx_pagespeed directory after it finishes ...
3
votes
1answer
285 views

How do you debug a php5-fpm kernel segfault error?

A couple of weeks ago, my OSSEC daemon started sending me syslogs about a segfault in my php5-fpm. Here's the portion of the logs: Dec 19 15:09:38 mydropplet kernel: [165740.998932] php5-fpm[26936]: ...
4
votes
2answers
280 views

php scripts dont work when called from php tags in html

I have an nginx server, with php5-fpm, on Ubuntu 15.10. files that end in ".php" load properly. HTML files load properly. But when I put <?PHP ?> tags in an html file, the php scripts do not ...
0
votes
0answers
9 views

Monitoring a UNIX server hosting NGINX and MEAN stack application [duplicate]

I have a virtual Ubuntu server running. I have a MEAN Stack application along with NGINX running on this machine. What is the best way to monitor uptime of this machine along with those of NGINX and ...
0
votes
0answers
85 views

Jetty8 doesn't start

I'm trying to setup nginx with jetty, but seems like my jetty8 doesn't start and I don't know why: >sudo service jetty8 start >service --status-all ... [ - ] jetty8 ... I have already ...
0
votes
0answers
72 views

cannot change php and mysql/percona to use utf-8

Ubuntu 14.04 amd64 What I had done: Set as below in php.ini, restart php5-fpm default_charset = "UTF-8" Set as below under http section of nginx.conf, restart nginx charset utf-8 Set below ...
0
votes
0answers
73 views

Web Server behind routed OpenVPN tunnel

In an attempt to serve an nginx vhost from one particular remote IP address, using an OpenVPN server as a router, I am trying tunnel web traffic, like so: Internet ---- OpenVPN Router Server ...
0
votes
0answers
18 views

Unable to use tmpfs files in website

I have uploaded files in tmpfs by following command: cp -af /var/www/html/assets/js/plugins.js /dev/shm I verified it using : df -h /dev/shm But how can I use this file in my website? When I ...
0
votes
1answer
146 views

Nginx redirects all domains to same server block

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
1answer
134 views

Ubuntu service started from /etc/init.d ends up with the wrong PID

This question follows on from my previous question. To recap I want to use OpenResty rather than vanilla Nginx on my Ubuntu 14.04 server. I have complied OpenResty following the instructions here. ...
0
votes
1answer
622 views

Running OpenResty as a service on Ubuntu 14.04

I need to use Nginx with Lua and a sheaf of other extensions enabled so I have followed the instructions at https://openresty.org/ and compiled the OpenResty variant of Nginx. That process went ...