I have a strong shared hosting plan from a company that provides unlimited email accounts but sadly I had some issues deploying a Laravel app on that plan because of the restrictions it has. now I want to use a VPS for my Laravel app but still want to use the cpanel email functionality on that plan to send and receive emails on the same domain that will host the Laravel app on the VPS but I really have no idea if it is possible and if it is then how should it set the DNS records to achieve that. Also was not able to find any tutorial that tackles what I need to do.
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!
Hello, @ShanS
If you want to set up a Laravel application on a DigitalOcean droplet all you need to do with the DNS is to update the A record of your domain name and point it to the IP address of your droplet.
The MX record that is responsible for the mail delivery will remain the same as per your wish, meaning that you’ll still use your cPanel plan to host your emails.
Regards, Alex
Hi @ShanS,
You can do that with DigitalOcean.
First, let’s talk on how to create your Laravel Droplet. There are two possibilities which you can use -
Create the droplet and install Laravel on our own
Use the MarketPlace image of Laravel which installs everything for you.
If you want to create the droplet and manually install Laravel, I’ll recommend checking the following tutorial. It will help you do it while installing all the necessary software it’s needed.
Now, if you want to skip all the stuff that need to be done and just have it prepared for you, I’ll recommend using the Marketplace here:
What it does is, it installs Laravel and all the software needed preparing it for you to just use it.
DNS As for the DNS, all you need to do is change the A record of your Droplet once your domain is ready to your Droplet’s IP address.
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.