Working on trying to make my pi a web server with apache2 and have installed it properly.
When I go to load the page it gives me back this page that just says
this:
" Index of / Name Last modified Size Description "
Related
I installed Thingsboard on Raspberry Pi 3 b+ and Use Postgres as dtb. Installing the program well. I just test by sending data to Thingsboard. It's work!
When I click dashboard tab. Red massage appear at top left
"GET: /api/customer/211f0000-df24-1412-8080-808080808080/shortInfo 404: "
GET Message Error Picture
'
When I try to create Thingsboard. All widget are disappear with message
"Access Forbidden You haven't access rights to this location! Try to sign in with different user if you still wish to gain access to this location."
Anyone know what happen and how to fix it. Thanks
Access Forbidden Message Picture
Just had that same problem on my raspberry pi 3b+. I solved it by changing all the assets and devices that were used on the dashboard do the same customer, in my case, public.
I've got a server (raspberry PI 3) which functions as a webserver.
Additionally, I've got a client (raspberry PI 3) with a camera connected.
I've created a script on the client, which creates an image of the camera and then sends it automatically to a volume share of the server(webserver).
With a simple <img> HTML tag I want to show the image on the website.
Now I have to manually start the script, which triggers the camera.
So my question is:
How can I start a script from the server(webserver) which triggers the script from the client automatically?
My idea was with sshpass. Unfortunately that did not work.
How would it work via SSH PASS or what else is a useful way?
I have a camera attached to raspberry pi which captures the image and image saved in raspberry pi memory. I want that image to upload to wamp web server automatically, so I can get it to my android phone.
Thanks
Well, in principle you would need an API on the server which you call from the Pi where you send the image to. That should receive the image and handle the storing at the server.
At the Pi you will have to run some kind of script calling that API. You can trigger that by the a newly captured image available, or e.g. a cron job, just what fits better.
But depending on what you actually want to achieve - just transferring the image(s) to a webdrive - perhaps using e.g. a "network drive approach" perhaps is easier.
You can do it in few steps:
1>>Setup Apache web server
2>>Setup [vsftpd] or similar FTP deamon on same machine. Please be sure that FTP server upload folder is Apache server root folder. For example [/var/www/html]
3>>Make small script [/home/myname/transfer_files.sh], based on [curl] which will transfer created files to Apache web server via ftp.
curl ftp://myftpsite.com --user myname:mypassword
4>>Add line in contab [/etc/crontab] which will be executed every single minute
*/1 * * * * root /home/myname/transfer_files.sh
This is not perfect solution, but it will work and you do not need to do any codding.
First i unzip binary distribution and start the server and then go to the localhost:2480. the result is web pag not available. I turned off firewall as well
I recently tried to install php on my raspberry pi, and a web server. By doing so the default location of user pi is now var/www, but it used to be /home/pi. How can I change it back to the way it was?
The most proper way is to use Virtual Hosts in the directory : /etc/apache2/sites-available/
The default is pointing to /var/www/
I'm always creating a user for a project and then I point the Virtual Host and I use SuPHP for the security.
To solve your problem, look at the file /etc/apache2/sites-available/default
Edit :
is it a problem related to apache and php or system/unix ?