I have a nginx version 1.6 running on my local machine.
OS X Mavericks comes already with php installed
On typing
php -v
php-fpm -v
it's showing PHP(5.4.24)
How do I configure the default php-fpm on my computer so that I serve php from nginx server?
I want to use the same version of php without installing a new version of it.
Any suggestions ?
Related
First of all, thanks a lot for your time!
I upgraded MariaDB on Ubuntu 18.04 and restarted: sudo systemctl restart mysql.server several times.
When I run command mysql -V it shows:
mysql Ver 15.1 Distrib 10.3.14-MariaDB, for debian-linux-gnu (x86_64)
using readline 5.2
When I run query SELECT VERSION(); it shows:
10.1.38-MariaDB-0ubuntu0.18.04.1
Any help would be appreciated.
The mysql executable you have installed has a different version than the server it connects to.
Make sure you are connecting to the correct server. Sometimes the configuration defaults file points you automatically to a remote server.
Check where the mysql executable is found from using command -v mysql or which mysql. Most of the time the binary is located in /usr/bin/mysql so you might try invoking that directly to see if that helps.
I've got a Varying Vagrants Vagrant box with WordPress installed.
I've just ssh'd in but can't find out how to restart Apache.
Here's what I've tried (along with the errors):
$ sudo restart apache2
restart: Unknown job: apache2
$ sudo service apache2 restart
apache2: unrecognized service
apachectl restart
The program 'apachectl' is currently not installed. To run 'apachectl' please ask your administrator to install the package 'apache2'
If it helps, uname gives:
$ uname -a
Linux vvv 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Any suggestions?
Varying Vagrant Vagrants does not use apache as web server. In the readme file Apache is not listed as installed. Instead of apache it uses nginx as web server.
In provision script you would find these two lines:
# nginx is installed as the default web server
nginx
That's why you can't find apache. If you want to restart nginx then you can try:
sudo service nginx restart
I'm configuring an nginx server to stream using rtmp.
As I just found out I have different nginx installations.
One is located on /etc/nginx (the old one, and the one that is running by default), and other one it's on /usr/local/nginx.
I want to make a symbolic link somewhere so I can define that the server executes the one located at /usr/local
Doing some more reading, I realized that I had 2 nginx was because I installed one with apt-get and a newer version from source. I uninstalled with apt-get purge. Now what I need to find out is how to set the nginx installed from source as default system.
The nginx installed from source is up and running, but I can't do a restart by any means.
/usr/local/nginx/sbin$ sudo ./nginx -s stop
/usr/local/nginx/sbin$ sudo ./nginx
Did the trick.
I am deploying a rails app using ubuntu, nginx, & passenger.
I have rails & passenger installed properly. So, I go to run:
rvmsudo passenger-install-nginx-module
This runs all the way through and tells me it was successful. However, I run nginx -v and it tells me that it is not installed. During Passenger's installation process, I specified it to use /etc/nginx instead of /opt/nginx. I can't continue with my application deployment because the following command won't work (unrecognized service)
sudo service nginx start
Wondering if anyone has encountered, or understands this issue.
If you specified /etc/nginx as prefix then your Nginx is installed in /etc/nginx/sbin/nginx. I think you meant to overwrite the system's Nginx, but that's actually not what you have done: you've only installed a completely seperate Nginx installation, into /etc/nginx. So now you have two instances:
/usr/sbin/nginx, which uses config file /etc/nginx/nginx.conf
/etc/nginx/sbin/nginx, which uses config file /etc/nginx/conf/nginx.conf
Are you on Debian or Ubuntu? If so, then the easiest way to overwrite your system's Nginx with a Phusion Passenger-enabled Nginx is not to use passenger-install-nginx-module, but to use the Debian packages provided by Phusion Passenger.
I use command Ubuntu: sudo apt-get install phpmyadmin
In process installing I inform about selection type of server: apache2 and lighttpd.
My server is build only on Nginx + php_fpm.
How i can install phpmyadmin without selection apache2 or lighttpd?
Sorry for stupid question
First install php5-fpm and then install phpmyadmin.
sudo apt-get install php5-fpm
sudo apt-get install phpmyadmin
The software, phpMyAdmin, requires a Web server and PHP. If PHP and a Web server have not yet been installed, then the default action is to use Apache. The package, php5-fpm, satisfies the requirements; thus, installing phpmyadmin after php5-fpm results in only the following additional package dependencies.
dbconfig-common javascript-common libjs-codemirror libjs-jquery
libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata
libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui
libjs-underscore libmcrypt4 php-gettext php5 php5-gd php5-mcrypt php5-mysql
Although PHP-FPM is not a Web server, the package maintainer understood that if php5-fpm has been installed, then the Ubuntu server will utilize some other Web server that uses the FastCGI Process Manager (FPM), and there is no need to know which Web server.
considering you have a lemp stack
you could also skip the queston with tab to "ok".
this might force phpmyadmin to install apache2, at least on the newest built, it wasnt like that before.
than when an error arrives that apache2 could not start, this is due nginx php-fpm already using the port, just toggle apache to start with this shell command
sudo update-rc.d -f apache2 remove