By glassd
I’ve noticed on a couple of setups now that Apache is installed on the LEMP one click. This means that if i do an apt upgrade on the server it reactivated apache and kills NGINX. I’ve then got to go in and disable Apache again. This is not a good setup for beginners as they will not understand what broke after updating.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Any more information on this? Why is it there? Why is it running? What is it doing? Does it introduce any security issues? Thanks.
Man am I grateful for your post!
This just happened to me and I thought I was crazy.
I want my LEMP server for joomla so I needed extra php modules.
My NGINX broke after installing the php modules and rebooting. Eventually I traced it back to a port 80 conflict with… apache2!!!
I was incredulous. I had no idea why apache2 was on my server or how it had got there.
I thought I must have (???) installed it or activated it myself but had no idea how…
All I had done was run the following command and reboot and NGINX stopped working:
sudo apt install php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-xml php7.2-intl php7.2-zip php7.2-gd
So I created a new LEMP droplet to install them and reboot one by one.
php7.2-gd was the problem!
But at that point I realized that it wasn’t me. Apache2 was already on the server to begin with!
And somehow installing php7.2-gd makes apache2 take over on port 80.
So, as you said, this problem has just made a beginner go crazy for hours. I wish someone could explain why apache2 is even on the server. I’m scared of uninstalling it.
Could removing apache2 cause some kind of security issue? I’ve already been hacked 3 times over the years.
Hey friends!
It would seem that Apache is installed on the LEMP one-click image. I’m not aware of the reasoning for this, but I’ve reached out to the master of our images to find out :)
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.