Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9135687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:51:24+00:00 2026-06-17T08:51:24+00:00

On my previous question Saving changes to an EC2 instance without having to register

  • 0

On my previous question
Saving changes to an EC2 instance without having to register an AMI each time?
I asked how was posible for me to save files to my spot instance without having to register a new AMI each time. I researched and it looks like attaching an EBS volume is a way of saving data persistently without having to register an AMI each time I make changes.

The new issue I have is that I need to “call” files in the EBS volume via cron and treat them as webpages. They are mostly PHP files.

I tried setting up my EBS under /var/www/html but AWS prevents me to do that suggesting me to use /dev/sdf instead

Is there anyway I can set my EBS volume under my webserver so I can call my files on the EBS using the cron and interpret them as valid PHP files?

Any tip in the right direction will be much appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:51:24+00:00Added an answer on June 17, 2026 at 8:51 am

    /dev/sdf is a block device and /var/www/html is a mount point. They’re completely different things; analogous to a physical book and a bookmark.

    You first have to attach your EBS volume to your instance. It will show up as /dev/sdf(or whatever device name you’ve specified). You then have to create a file system on it using mkfs.ext4 /dev/sdf. You then mount the newly created volume using mount /dev/sdf /var/www/html. To have it automatically mount at boot, edit /etc/fstab and append the following to the file:

    /dev/sdf    /var/www/html     ext4      defaults,noatime    0      0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some time ago I asked a question about saving hwnd into ppm file. Thanks
I asked a previous question here and one part of it seems to be
This is a follow up question to a previous post on saving recent searches
My previous question asked for a way to keep a text view and slider
A previous question I asked indicated that this was 64 bit (8 byte) double-precision
In the previous question ive asked, ive put all the necessary catch statements to
In previous question of mine, someone had meantioned that using Semaphores were expensive in
This question is extended part of my previous question, Finding number position in string
This question is based on my previous question which I got a working answer
This question is related to a previous question of mine That's my current code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.