Answer the question
In order to leave comments, you need to log in
How to set up my ubuntu server? Or what am I doing wrong?
First, I will ask a question so that it is not lost among the text. How to install nginx+passenger correctly? on ubu server 16.04
I’ll immediately note that everything written below rolls on ubuntu 14.04 and does not roll on 16.04. I really want a new OS))))
nginx -t
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2016/05/ 19 20:47:00 [emerg] 13204#13204: unknown directive "passenger_ruby" in /etc/nginx/nginx.conf:14
nginx: configuration file /etc/nginx/nginx.conf test failed
So. There is a clean computer on which I put ubuntu server 16.04.
First, I put ruby with handles:
sudo apt update -y
sudo apt upgrade -y
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.5
#!/bin/sh
echo "install ntpdate:"
apt install ntpdate
echo "install nodejs:"
apt install -y nodejs
echo "install unzip:"
apt install -y
# for pg gem
sudo apt install libpq-dev -y
echo "install java8:"
add-apt-repository ppa:webupd8team/java
apt update
apt install -y oracle-java8-installer
echo "install postgresql:"
apt install -y postgresql
echo "install redis:"
apt install -y redis-server
echo "install git:"
apt install -y git
echo "install imagemagick:"
apt install -y imagemagick
echo "install bundler:"
gem install bundler --no-rdoc --no-ri
echo "install rails 4.2.5:"
gem install rails -v 4.2.5 --no-rdoc --no-ri
echo "install backup 4.2.0:"
gem install backup -v 4.2.0 --no-rdoc --no-ri
echo "install nginx+passenger:"
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
apt install -y apt-transport-https ca-certificates
# Add our APT repository
sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger xenial main > /etc/apt/sources.list.d/passenger.list'
apt update
# Install Passenger + Nginx
apt install -y nginx-extras passenger
[email protected]:~$ nginx -t
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2016/05/19 20:49:14 [emerg] 13510#13510: unknown directive "passenger_ruby" in /etc/nginx/nginx.conf:14
nginx: configuration file /etc/nginx/nginx.conf test failed
Answer the question
In order to leave comments, you need to log in
Выставьте правильные права на файл /var/log/nginx/error.log
Установите nginx-extras c поддержкой passenger
PS
Как установить passenger на nginx?
And I really want a new OS))))
[email protected]:~$ nginx -t
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
config for nginx (good, working, tested on another OS)
unknown directive "passenger_ruby" in /etc/nginx/nginx.conf:14
Check your php version. If below 5.4, then it's about the support of short array syntax.
I didn’t enter something, but why are the values of the execute function passed in the form [$url]? Is this something new in PHP 5.4? Sorry for the offtopic, but I just never rose above 5.3 ~ and it became interesting. Or was it still in older versions and I'm just an ignoramus?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question