lemp-stack | LEMP w/ PHP7.X & MariaDB on Ubuntu 16/17/18 x64
kandi X-RAY | lemp-stack Summary
kandi X-RAY | lemp-stack Summary
This document is a list of notes when installing several Ubuntu LEMP instances w/ PHP7.4. With some sort of imagination it can be considered as a step-by-step tutorial of really basic installation process of LEMP. I wrote it mainly for myself, but feel free to use it. The LEMP consists of:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lemp-stack
lemp-stack Key Features
lemp-stack Examples and Code Snippets
Community Discussions
Trending Discussions on lemp-stack
QUESTION
I was running Ubuntu server 20.04 quite successfully with Ired mail and 2 websites, one of them with WordPress.
I wanted to install Nextcloud, to do that I had to reinstall php-fpm to generate php7.4-fpm.sock. After this Nextcloud worked, but my other websites stopped working with error '502 Bad Gateway'.
So to say the least, I'm very confused!
I followed this article to install Nextcloud and set up the sites-enabled .conf file as per instructions: https://www.linuxbabe.com/ubuntu/install-nextcloud-ubuntu-20-04-nginx-lemp-stack/amp
I think I understand that the .conf file used to listen on 127.0.0.1:XXXX and now listens on php7.4-fpm.sock?
Here is the .conf file that I have put together for my website after re-installing php-fpm:
...ANSWER
Answered 2021-May-24 at 03:21PHP-FPM can listen using two method for accepting fastcgi request. using TCP Socket or with Unix Socket.
You can sepecify it in php-fpm configuration, In Ubuntu the configuration is in /etc/php/7.4/fpm/pool.d/www.conf
and check listen
configuration.
If you want to use unix socket, use configuration below.
QUESTION
I have a PHP script that does the following:
...ANSWER
Answered 2021-Feb-16 at 00:30When you run php /var/www/html/script.php
, you run the php
process under your current user (that is most probably in the sudoers
group).
Ubuntu default sudo password timeout is 15 minutes. Which means, if your user (the one who also runs the PHP script) has entered sudo password less than 15 minutes ago, the system won't ask for it again.
QUESTION
As I was following on this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-18-04-server, halfway I entered a wrong option. That is why I aborted the installation proces, removed phpmyadmin with the commands below and tried to restart the installation.
...ANSWER
Answered 2020-Nov-01 at 03:08If you've already done sudo apt-get install phpmyadmin
, then to be prompted again for the configuration options you can run dpkg-reconfigure -plow phpmyadmin
. dpkg-reconfigure runs the same post-install configuration scripts, and the -plow sets the priority to the lowest setting, so you'll be asked about every available configuration option (higher settings will sometimes guess at what's best for your system, which is helpful for instance in an automated installation situation).
QUESTION
I tried to make a new laravel project work on my debian vps but nothing go right. I init the project with the basic composer create-project laravel/laravel
, change the permissions to 755
so everything that is explained here.
But I always have an error 500
when I tried to access to my /public
folder and when I read my php's logs is see this message :
PHP Parse error: syntax error, unexpected '=' in /vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 384
What can be the problem ? I precise that my php version is >7.1
ANSWER
Answered 2019-Jun-19 at 08:30It is possible that the CLI version of PHP is 7.2 but apache is using an older version of PHP. Would be worth adding a phpinfo.php
in the root of your public folder containing
QUESTION
This is my first time deploying a site in Netlify. I'm using Jigsaw in order to achieve this.
Everything is ok, besides the date language that is exported in production.
When I generate my production site locally it works fine displaying the date in Spanish:
I'm not uploading the same exact files to netlify but using the netlify.toml to run the same command in order to generate the same files:
...ANSWER
Answered 2019-Oct-29 at 13:05Probably setlocale is not working. Since the same code works on your machine it is possible that Spanish locale is not installed on hosting machine. See this question: https://stackoverflow.com/a/10910009/529024.
Also, setlocale returns the new current locale, or FALSE if the locale functionality is not implemented on your platform, the specified locale does not exist or the category name is invalid. setlocale
So in this case you could check the return value and see if the local has changed.
QUESTION
I am a newbie with server handling and Linux. I am trying to install composer on my server so that i can host my Laravel project onto it as mentioned in the tutorial in Ultimate Guide: Deploy Laravel 5.3 App on LEMP Stack. I ssh into the server and after installation of composer when I run sudo mv composer.phar /usr/local/bin/composer
I am getting a message in the terminal:
ANSWER
Answered 2017-Jun-08 at 21:32As suggested in this post, you may have to install sudo in your server.
To do that, log in as root with the following command: su -
. Then install sudo
with your package manager (if you're in Ubuntu: apt-get install sudo
).
Then add your user to the sudo
group: usermod -aG sudo
.
Finally type exit
to log out of the root account and go back to your user.
QUESTION
I'm new to the whole cloud computing virtual machines thing, and I just started my free trial of Microsoft Azure. I'm interested in setting up a web server running Nginx to host some PHP pages that connect to a MySQL database. I just followed this official tutorial on how to install a LEMP stack on a Linux virtual machine in Azure, but it doesn't give a whole lot of instruction after that. How do I upload my files to this newly created web server?
...ANSWER
Answered 2019-Aug-12 at 01:46There are many methods that you can upload files to your Azure Linux VM, Here are two options for you:
- Move files to and from a Linux VM using SCP. In this way, you need an SCP client for your local computer. It is built on top of SSH and included in the default Bash shell of most Linux and Mac computers and some Windows shells.
- Create An Azure File Share and mount to your Azure Linux VM. In this case, you will create a storage account, then mount the Azure file share on your Linux VM. It's better used for multiple clients to upload the files to Azure VMs.
QUESTION
I'm trying to setup a wordpress server, but before that I need to get PHP working. Currently I have installed and configured nginx and php 7.3, but the php is not rendering, it is just showing text.
Main Issue:
...ANSWER
Answered 2019-May-04 at 18:01Following Richard Smith's question, nginx -T
showed that I had another conf active that was interfering with my config, /etc/nginx/conf.d/default_original.conf
. So I did mv /etc/nginx/conf.d/default_original.conf /etc/nginx/conf.d/default.conf.original
to get it to no longer load and I changed the include /etc/nginx/fastcgi_params;
to include fastcgi_params;
in /etc/nginx/sites-available/default.conf
. After doing this I restarted nginx (systemctl restart nginx
) and curl http://localhost
return an expected output of html tables.
QUESTION
When running laravel new
I receive all these errors. I understand what they mean, but I'm curious to why this happenes, on windows it all went through fine.
I installed php, how come Ubuntu throws errors? Does it exclude a lot of things from the php installation? I'm not really sure why its causing so much drama, this is the 10th set of errors I've gone through today and I'm worried I've done something majorly wrong.
I followed this for my LEMP stack: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04
Also, before I can even use the laravel
command, I have to run export PATH="~/.composer/vendor/bin:$PATH"
every time I open a terminal. Is there a way to fix this?
ANSWER
Answered 2019-Mar-25 at 19:34Which PHP version are you using?
You need mbstring extension installed.
Assuming it's PHP7.2, you can install the dependencies required for Laravel like:
QUESTION
I try to install nginx with git deployment as written here https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/
But under Ubuntu under AWS. During installation I created pem fiel and I connect to ubuintu system with ssh.
But pushing to the server with command
...ANSWER
Answered 2019-Mar-10 at 12:37You have to create non root user :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lemp-stack
To automatically install essentials, you can use the 👉 startup.sh script by downloading it and calling it with sudo sudo ./startup.sh. The file is deleted automatically.
If you want to have the installation in your hands, follow the manual installation. 👇. Or disable the password for some users only (admin, user_tld).
This is optional but recommended. rm is a dangerous command therefore is recommended to replace it by safer version trash that instead of removing files moving them to a trash. More info here. Open SSH port only.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page