logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2 access and show local files
Author
cherault



Joined: 05 Sep 2019
Posts: 2
Location: France

PostPosted: Thu 05 Sep '19 10:20    Post subject: Apache 2 access and show local files Reply with quote

Dear all,

Using Apache2 on Linux Debian for a local test works fine.

Meanwhile, on my webpage, I build an Iframe to show the content of a local file (Processor temperature located in: /sys/class/hwmon/hwmon1/temp1_input), and refresh it each 2 seconds.

Unfortunatly, I can't see it working.
I tested it with symolic link but is doens't work.
I did the next to give some access, but it doesn't work too:

Code:

sudo chown -R www-data:www-data /sys/class/hwmon/hwmon1/temp1_input
and
sudo adduser $USER www-data
sudo chmod 775 /sys/class/hwmon/hwmon1/temp1_input


But nothing works !

Could you please help me to do it work ?

Thanks for your help and support.

Regards,
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 05 Sep '19 15:31    Post subject: Reply with quote

what is in the error log about it?
Back to top
cherault



Joined: 05 Sep 2019
Posts: 2
Location: France

PostPosted: Fri 06 Sep '19 8:34    Post subject: Reply with quote

Hi James,

There is no problem about the logs.
It just doesn't work !

My problem is: How Apache could access in read mode to a local text file value (Server side), to show it within an iframe.

That's it.

Thanks for your help.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 06 Sep '19 13:32    Post subject: Reply with quote

Do you sue an alias or is that your document root? How do you try to access the file in the iframe?
Back to top


Reply to topic   Topic: Apache 2 access and show local files View previous topic :: View next topic
Post new topic   Forum Index -> Apache