Question

apache server not found after droplet resize.

We resized the droplet. Followed the steps as mentioned but upon turning on the droplet after resizing, it says apache server not found and our node version has also downgraded. we moved from 1GB/25GB to 4GB/80GB disk


Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
November 4, 2023

Heya, @momentumindiaprivatelimited

You can check if the Apache configuration files and virtual hosts are still present. It might be a case where the Apache server was not properly started after the resize.

You can use the following command to check the status of Apache:

  1. sudo systemctl status apache2

If Apache is not running, start it:

  1. sudo systemctl start apache2

If you are using a package manager like npm or Yarn to manage your Node.js dependencies, you need to update the package manager after resizing your droplet in order to get the latest versions of your dependencies.

We strongly recommend taking a snapshot of the Droplet before resizing.

Droplets may change hypervisors during a resize, and any changes to a filesystem can lead to data loss if something goes wrong. We strongly recommend backing up the Droplet’s data before resizing. If you use snapshots, you can delete the snapshot after confirming that the resize was successful.

https://docs.digitalocean.com/products/droplets/how-to/resize/#considerations-before-resizing

Regards

KFSys
Site Moderator
Site Moderator badge
November 4, 2023

Heya,

That’s really weird as resizing shouldn’t be affecting software like that. Do you by any chance have any backups prior to the resize which you can use?

As for the Apache service, can you try reinstalling it with:

apt install apache2

What does it say? It should be something like:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apache2 is already the newest version (2.4.54-2ubuntu1.3).

Additionally, can you find apache in /etc/apache2?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel