I am trying to install nodejs and mongodb on nginx webserver in ubuntu operating system but i am not getting it. I installed nginx server but couldnt getting how to install nodejs and mongodb on nginx web server. I also installed php mysql and phpmyadmin with nginx server in the ubuntu and all those are running fine. Now i want to install nodejs and mongodb over there but i am not getting it. Is it possible to host php websites and nodejs application using the same nginx web server.?????
Yes it's possible to install MEAN stack and LEMP stack in Ubuntu.
I am assuming that your are using Ubuntu 14.0 LTS.
Kindly follow the below tutorial links to setup nodejs with nginx as a reverse proxy method.
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04
Installing Mongodb.
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
Other task, adding users and config ip in mongodb Google it.
Related
I am trying to install Logiks framework on my dev server. I am using my laptop for development purpose with MacOS. What is the process for the same?
Installing Logiks is very easy, follow the guide at https://github.com/Logiks/Logiks-Installer-Cli to install it on your laptop.
Pre Requisites:
Apache2 Server with PHP7.2 installed
MySQL DB Server installed
You can also use docker to directly install and run your logiks instance. Details can be found here : https://github.com/Logiks/Logiks-Docker
I am currently working in PHP in my localhost. I have php version 5.5.9-1, apache2 version 2.4.7, and Mysql Ver 14.14 in my Ubuntu 14.04.
But how to check whether I am using LAMP or XAMPP?
I tried typing "lamp" and "xampp" in terminal. But it shows "command not found". Should I come to the conclusion that these things(apache, mysql and php) were installed seperately?
In my case I have installed XAMPP for Linux (LAMPP) in Ubuntu 18.10
How can you know it?
Try to go to /opt/lampp
If you can, it means Xampp for Linux it's installed, but if you want to know the version, in the same path of step 1, put in your command line ./xampp status
You will know XAMPP for Linux version and Apache, MySQL and ProFTPD status (running or not).
Know PHP version
cd /opt/lampp/bin
./php -v
Know MySQL (MariaDB) version
cd /opt/lampp/bin
./mysql --version
Know Apache version
cd /opt/lampp/bin
./apachectl -v
I hope helps somebody
./xampp status image
You have to understand this :
1) LAMP
For LAMP setup, you have to install PHP, Apache and Mysql packages separately. In LAMP you don't get anything to manage your server in GUI way.
For Ex: To start apache server you have to type command in terminal.
To start apache : sudo service apache2 start
For installing LAMP refer :
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
2) XAMPP
It is a complete package which comes bundled with PHP,Apache, Mysql etc in a single installation. It gives you a control panel from which you can manage your server and configuration files.It is something of this sort.
For XAMPP : https://www.apachefriends.org/download.html
If you don't find xampp control panel in your system, this means you have a LAMP setup. i.e : first option.
The lamp package installs apache, mysql and php separately.
In ubuntu you should have the apache installed on /etc/apache2
the mysql installed on /etc/mysql
and the php installed on /usr/share/php
If you are developing you can use PHP's built-in server.
Try:
xampp -v
If xampp is installed it will display the version else its not installed.
Does upgrading from ubuntu 14.04 to 16.04 affect multi-server memcached?
I have a Laravel 5.1 application which utilizes memcached to manage sessions across multiple servers, specifically two web servers and a database server.
After upgrading the OS on each server from ubuntu 14.04 to 16.04 and installing the latest version of mariadb (10.1.*), our laravel application now returns the following error:
[RuntimeException]
No Memcached servers added.
My config files have not changed and neither have the ip addresses of any of the servers. Debugging laravel's MemcachedConnector.phpshows the server details being passed to the Memcached class but the output of Memcached::getVersion() returns false.
I am at a loss as to why this has suddenly stopped working, any assitance would be appreciated.
Make sure that your 16.04 installation has a "memcached" package:
dpkg -s memcached
If you see a message "dpkg-query: package 'memcached' is not installed and no information is available", install it by
sudo apt-get install memcached
I am pretty new to Amazon EC2.
I followed the instructions given in mongodb official site for installing mongodb on Amazon Linux. I have a Yii-2(basic) project to host on my amazon Linux server. mongoDB is already installed in the and even I Imported some dumps over there. But when i run the project
Class 'MongoClient' not found
How can I configure mongodb on amazone linux?
(now when i do sudo service mongod restart it is showing FAILED)
I installed mongodb using yum.
PHP version 5.6
Amazon Linux
these are my configuration. I am sure I am using latest versions since it is a fresh installation. Please help me out. Thanks in advance!
From the error message it seems that you haven't installed the PHP Mongo Driver in your server.
To check if you have it, try a php_info() and check if the entry "mongo" is present
If it's not present install it using the instructions found in the link above, or check here
I have configured Ubuntu Server 13.10 with apache2, php, mysql and phpmyadmin.
I want to install zPanelcp for managing server for hosting purpose but my question is this should i need to install zpanelcp on fresh ubuntu without apache2, php, mysql and phpmyadmin or after installation of apache2, php, mysql and phpmyadmin?
Fresh install of the OS with minimal options. The following modules MUST NOT be installed on your server:
MySql
Apache
Bind
Dovecot (Ubuntu, CentOS)
Postfix (Ubuntu, CentOS)
proFTPd (Ubuntu, CentOS)
hMail Server (Windows)
FileZilla Server (Windows)
IIS (Windows)
See: http://docs.zpanelcp.com/?node=22
It doesn't support Ubuntu 13.10 yet.
ZPanel won't work on any Ubuntu version that isn't 12.04LTS unfortunately.
12.10 Uses PHP 5.4. (Suhosin support was dropped (integrated) in that version). ZPanel relies heavily on suhosin so just that one package makes it usable on any other version of Ubuntu.
I'm pretty sure that there wouldn't be any conflicting dependencies on a desktop version.
Might I suggest that if you're dead set on using 13.10 then run a virtual environment of 12.04 and SSH into it for website access.
It's mentioned on there official forum:
http://forums.zpanelcp.com/thread-9501.html
I have ZpanelCP version 10.1.0 working in an ubuntu 13 box and don't have any problem.
According to their documentation, you should not install those modules as stated before by Hilmi Erdem KEREN