How to stop nginx and start apache on windows? - nginx

I've installed nginx on my local.
When I am using mysql, it does not work.
http://localhost/phpmyadmin/ does not work.
How can I solve it?

Related

Installation issues with openresty

My machine has Mac os. In this I have nginx 1.6.x. I initially installed with Homebrew.
I am trying to run a project which in production uses openresty (as it has lua 3rd party modules)
My confusion is regarding which one to install.
Do I need to completely remove nginx and install openresty, as it's documentation says it's a bundle of components,i.e. it will contain nginx?
or
Install new version of nginx with lua 3rd party modules and then install openresty too.
Sorry if there is a or too many typo in my question.
A good link will be helpful as I think I have confused myself enough.
Thanks in Advance.
Openresty is nginx bundled with lua and other 3rd party modules, so having both of them installed on your computer may lead to trouble, for example:
This case can happen if you try to run both of them at the same time: Your nginx conf file can have a server block listening to a port while your openresty also have a server block listening to that block. If nginx is already running, openresty won't be able to run, since the port is already bound.
I installed openresty with a previous installation of nginx and ran into some problems, so i would advise you to save relevant configuration and data from your nginx instalation and removing it.
Installing openresty seems better since besides installing nginx, it will install lua modules and a few more as it is listed on their github.https://github.com/openresty/lua-nginx-module
I don't know how your project is going, but i would suggest moving using openresty, since it will save potential trouble.

Ubuntu 16.04 - Cannot Open PhpMyAdmin after do full installation

I have minor problem here. I try to install phpmyadmin in my machine. Before I start install phpmyadmin, I have done installing LEMP.
Details:
Ubuntu 16.04
Nginx 1.9.15
MySQL 14.14
PHP 7.0.4
Steps for install phpmyadmin I follow here:
How To Install and Secure phpMyAdmin with Nginx on an Ubuntu 14.04 Server
After I done with installing phpmyadmin then I go to my web browser and click this http://server_domain_or_IP/phpmyadmin. It should show up interface of phpmyadmin. But mine show a pop out like this.
I do not have an idea what is happening. Hope anyone can help me.
thank you!
It seems like nginx is running but doesn't know how to handle the PHP processing. Try
service nginx restart
If that doesn't work, try making a basic PHP file in the server root, something like:
<?php echo "PHP is working"; ?>
And see if you can get that to load properly.
If you pass those two steps and still have trouble, my next guess is that the phpmyadmin site is not properly enabled. Check that the link for the site points to the right place. This talks about virtual hosts (albeit for Ubuntu 12.04 but should work):
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3
If it still doesn't work, you can download the tar.gz of phpMyAdmin and manually configure to see that it gets going.

phpMyAdmin error on CentOS7 / nginx virtual box

I been spending the past several days building a 'simple' LEMP virtual machine for web development. I HAD phpMyAdmin 4.4 working fine using a symlink from /usr/share/phpMyAdmin -> www/site.com/pub_html/pma and a sites-available/sites-enabled configuration. However, I thought 'whats the point in having the symlink when i could just move the entire phpMyAdmin directory to my pub_html folder...". So I moved it, deleted the symlink and now PMA is not accessible via the browser! I am getting a Connection Timeout error in browser. I have restarted services nginx, php-fpm, mysqld, and have cleared cache in browser, restarted my VB.
If I move a directory that has been symlinked AND is essentially being used by server blocks in sites-enabled, do i have to REDO the sites-available/enabled configuration?
Any thoughts as to what the issue/problem might be? Thanks for help!
In the end it was a typo in my /etc/nginx/sites-enabled directory: i had a symlink for pma instead of pma.conf. i was looking for *.conf files in my nginx.conf file. stupid oversight.

how to install solr with nginx on ubuntu 12.04

I downloaded solr-4.7.0.tgz. Extracted it in /opt/solr. I have nginx. So can anyone guide me the steps to configure solr with nginx. OS is ubuntu 12.04. Also how to configure solr.xml and where to keep it in nginx environment.
Solr is self contained, and already includes a web server (Jetty). Once Solr is running, the only use for Nginx with Solr is to use it as a front-end proxy, e.g. for access control purposes.
http://nginx.com/resources/admin-guide/reverse-proxy/

How can I add PHP-FPM with nginx?

Currently I'm using nginx with HHVM but for some reasons HHVM crashs alot
What I'm trying to do is:
Rplace HHVM with php-fpm
OR
Add php-fpm as fallback
PS: I used this to install nginx + HHVM:
https://github.com/facebook/hhvm/wiki/Getting-Started
I have made this simple script to install latest HHVM/Nginx/MySQL, at once, depending on different Ubuntu Distros. Binaries that are used, come from the official repos that the HHVM team uses. Check var/log/hhvm, error.log file and create issue if you think it is a HHVM.
I use HHVM on servers, and it rarely crashes.

Resources