Questions tagged [apache-httpd]

For questions pertaining to the Apache web server.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Apache DocumentRoot USB drive

I am trying to run apache with DocumentRoot set to /mnt/usb, where I have a USB drive mounted. Here are the contents of 000-default.conf: <VirtualHost *:80> ServerAdmin webmaster@...
user avatar
  • 101
0 votes
0 answers
23 views

Public ip changes to "raspberrypi" and doesn't load local website

So I've set up Apache2, I have a website running locally and all that works. On the Pi, I can load up "localhost" and see/edit my site, and even on my main machine I am able to load and edit ...
user avatar
0 votes
0 answers
33 views

Access denied at Raspberry Pi IP adress after following PHPMyAdmin tutorial

All was working well according to the tutorial, I could access .phpmyadmin and all, but when I followed the last step, "Optional Step (but recommended)", the commands pi@raspberrypi:~ $ ls -...
user avatar
0 votes
0 answers
40 views

mpg123 segmentation fault

I'm trying to play music on a web browser using mpg123. I use Apache as the web server on a Raspberry Pi ZH with no audio devices on it as I don't need any sound to come out of the Raspberry but to ...
user avatar
1 vote
2 answers
78 views

Is there a way to assign a different local IP address depending of the SD card I'm using for a single Raspberry Pi?

In order to clarify my question - cat /proc/device-tree/model: Raspberry Pi 3 Model B Rev 1.2 cat /etc/os-release: PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/...
user avatar
  • 73
0 votes
0 answers
49 views

How to setup GPIO on a Flask production server?

I am coding a web application with Flask and I come across with a problem where I cannot setup my gpios on my public production server. It throw an error 500 Internal server error. I've realized ...
user avatar
0 votes
0 answers
38 views

How to setup webserver?

Good day, I know this has been asked A LOT, but everything I've tried doesn't work at all. I've tried using Geany and python code to create the webserver as well as apache2, but neither of them work. ...
user avatar
  • 13
1 vote
2 answers
237 views

Unable to make raspberry pi publicly accessible

This is my first time playing with the DNS and the internet. I want to make my RasPi publicly accessible. I followed the below steps: Set up the apache2 server, and access it locally from home ...
user avatar
0 votes
0 answers
14 views

Blog posts not saving

I am running an apache2 web server with my website bullyhomested.com and trying to add blog posts using rapidweaver and alloy3(elixir) but they don't show up. There is an example post that is supposed ...
user avatar
0 votes
1 answer
113 views

is apache James compatible with arm64

I am trying to set up a apache james mail server on my raspberry pi 4 https://james.apache.org/server/quick-start.html but i get this error when i run the ./james schmax@ubuntu:~/james/james-server-...
user avatar
-2 votes
2 answers
30 views

How do I remove the /movies showing all files/folders within the directory?

I was wondering how would I remove this so people can’t do it with out a password? or just even no one would be able to do it, I’m hosing the website on Apache on my raspberry pi 4 2gb Also how can I ...
user avatar
1 vote
1 answer
577 views

Python import won't succeed when script is exec() from Apache PHP

I have a Python3 script (readtemp.py) to read temperature and humidity of a DHT22. I'm using adafruit_dht module. it executes perfectly from terminal command line with: python3 readtemp.py or ...
user avatar
1 vote
1 answer
629 views

pi-hole: DataTables warning: table id=groupsTable - Invalid JSON response. ... see http://datatables.net/tn/1

Hello fellow tinkerers, Struggled some time to get pihole working. In the browser, got constant JSON messages: DataTables warning: table id=groupsTable - Invalid JSON response. For more information ...
user avatar
  • 53
0 votes
2 answers
333 views

PHP module is not being installed into /etc/apache2/mods-available

I'm trying to serve a website running Apache2 alongside PHP on my Raspberry Pi 1.3. I have already installed Apache with sudo apt install apache2 -y followed by sudo apt install php libapache2-mod-php ...
user avatar
0 votes
2 answers
424 views

Change hostname only for apache2?

I'm just running a website on my local network, and I want to change the hostname (because it's run on <HOSTNAME>.local), but I only want to change the hostname for the local domain name, not ...
user avatar
-1 votes
2 answers
193 views

Raspberry pi apache2 dns name?

I recently installed apache2 on my raspberry pi 4B. I can reach it from the local IP (192.168.1.85). FYI I used this tutorial. Anyway anywhere 'example.com' showed up I entered an UNUSED domain name, ...
user avatar
0 votes
1 answer
743 views

Apache HTTP server failed to start - how to stop other servers from listening on ports?

While trying to host a website to control GPIO over flask and Apache I am now receiving the error that 'Failed to start The Apache HTTP Server'. Some googling suggested that this might happen if other ...
user avatar
0 votes
1 answer
531 views

Using Raspberry Pi as web server - but with web content on external drive

What would be the best way to set up a Raspberry Pi as a webserver, but with the hosted files on an external hard drive? I have a Raspberry Pi 3 Model B+ which I would like to use as a web server. The ...
user avatar
1 vote
1 answer
454 views

Apache2 how to access .html file outside website root

I am trying to create a localhost website that has multiple links to redirect to other .html files on the raspberry pi. These other .html files and websites are located in a folder located at /home/pi/...
user avatar
4 votes
2 answers
13k views

Trying to install MySQL: Package 'mysql-server' has no installation candidate

I'm trying to install MySQL; my command is: sudo apt-get install mysql-server php-mysql -y and what I'm getting is an error stating E: Package 'mysql-server' has no installation candidate
user avatar
0 votes
2 answers
167 views

My page doesn't record Data with Mysql and apache

intaxing.in/register.php or(website probably don't work) test.intaxing.in/register.php You can look here for the actual working page that did not record anything it just asks again & again for ...
user avatar
1 vote
0 answers
335 views

My http server can only be accessed from localhost, but not from the outside ip [closed]

I setup my Raspberry Pi 1 with Raspbian to create a simple server. I can access the server from the localhost from within the Raspberry Pi only, but not using its IP either from the Raspberry Pi ...
user avatar
1 vote
1 answer
1k views

captive portal with apache on a raspberry pi

I'm trying to make a captive portal with apache as a server and a raspberry pi on AP mode. I have some trouble trying to make the captive portal splash, I tried all tutorials on the internet and I can'...
user avatar
4 votes
2 answers
932 views

Python file called by PHP script in apache server unable to get RPi.GPIO

I've been trying to use a site on my local network to activate the GPIO pins on my Raspberry Pi 4. I installed apache and wrote a quick PHP script which executes a python file in /var/www/html.I have ...
user avatar
1 vote
1 answer
2k views

Cant access my raspi web-server from outside my local network

So I've been working on this problem for days now. I have the needed ports forwarded plus more opened just in case, I've tried changing ports.conf to listen to a different port for testing and still ...
user avatar
  • 11
1 vote
1 answer
400 views

Makes OpenVPN a local Apache Webserver accessable from outside?

I am running Apache on my Pi. It's only accessable from my local network. Now I want to install OpenVPN on the same Pi. Is Apache accessable from outside, when I enter the static ip in my browser (...
user avatar
  • 158
0 votes
1 answer
209 views

Raspberri Pi (Raspian) running Apache 2, PhP(7) HTML CSS not running PHP

I am getting very frustrated with trying to track down the source of my problems with the code below. I believe it is something to do with php files not being run. (Note that all files are in the same ...
user avatar
0 votes
0 answers
2k views

Uninstalling apache2

I have a Raspberry pi 3 B. I currently have apache2 installed in /usr/sbin/apache2. I cannot remember if I installed this myself - I don't remember doing so - but perhaps I did, since it is located in ...
user avatar
  • 113
0 votes
0 answers
22 views

My LAMP server does not work after moving to a new house

I self host two websites on a Apache2 instance that runs on a Raspberry Pi3 (more info on versions and configurations below): Website1 is a a static website that I coded from scratch, while website2 ...
user avatar
  • 111
0 votes
0 answers
2k views

Running NextCloud on HTTPS/SSL with LetsEncrypt

I have successfully installed Nextcloud on a Pi3 using snap sudo snap install nextcloud. Confirmation follows promptly: nextcloud 15.0.10snap3 from Nextcloud✓ installed . Now this tutorial: ...
user avatar
  • 11
0 votes
0 answers
76 views

Raspberry apache server not showing images and the site is acting weird

I'm hosting a site made with codeigniter in a raspberry 3 with Apache which is basically a form and the pictures aren't showing. I see the files are with user and group www-data and I'm trying to ...
user avatar
0 votes
0 answers
1k views

php file not executing python script when called through browser

I have an apache2 webserver running on the pi. I have a php file that uses exec() to run a python script. Everything works well from the command line. when loaded through the browser, the exec() ...
user avatar
-1 votes
1 answer
549 views

Segmentation fault error. Trying to loop a python program [closed]

I'm using AT commands to send data over http, but the problem is that sometimes the program has an error and wont run again until I reboot and the GSM. Im using a crontab and also running the file as ...
user avatar
  • 11
1 vote
0 answers
48 views

Raspberry Pi3 not receiving HTTP request from Arduino

I have been running an application on an older original Raspberry Pi. The Raspberry Pi was running Incredible PBX and I have some tables set up in the MySQL database to store data received from an ...
user avatar
0 votes
1 answer
221 views

Use apache2 Mod_proxy to turn two local webservers into one website

I am going to have a raspberry pi 3b+ hosting 2 web applications: Pi-hole (that's a link) and MotionEye (another link) I want to host both of the web interfaces on port 80 without using two ...
user avatar
  • 25
4 votes
1 answer
226 views

Why does my apache take several minutes to spawn workers?

I'm running Apache 2.4.25 on a Raspberry Pi 3A+ with Raspbian Stretch and every first request after booting takes several minutes. The connection does not break it just loads forever. So far I have: ...
user avatar
  • 41
1 vote
0 answers
55 views

www-data can't access external drive

On Pi3 with Stretch, apache is calling an wsgi script that should access a file on an external drive. Here's the apache error log: mod_wsgi (pid=7963): Failed to exec Python script file '/usr/share/...
user avatar
  • 131
1 vote
1 answer
1k views

Using my Apache2 www folder on a USB drive: PERMISSION DENIED

My Raspian Apache2 does not seem to like the www folder on a RAspberry-3B USB drive, which I can easily access from my Windows network. It keeps giving me You don't have permission to access / on this ...
user avatar
  • 79
2 votes
2 answers
2k views

Raspberry pi PHP display code instead of output

I installed php services and Apache2 on my raspberry pi without errors. But, when I opened a browser and entered my page URL, it wrote <?php echo "Hello";?> instead of Hello. I have tried ...
user avatar
0 votes
0 answers
67 views

Mac shared web folder permission on RaspberryPi

I have my websites folder on Mac where I have created a file sharing with user pi. I have then created a mount to this folder on Raspberry Pi like this in fstab //my-mac.local/Projects /home/pi/...
user avatar
1 vote
1 answer
406 views

RPi randomly unreachable over SSH/HTTP

I have a headless Pi running Raspbian with no other peripherals than an ethernet cable attached. It hosts a simple webpage using Apache with some simple PHP that interfaces with MariaDB. I connect ...
user avatar
  • 113
1 vote
3 answers
112 views

Bash script help on RPi

I have a bash script that runs every hour. Output of this is sent to me via email. This is run through cronjob. #!/bin/bash # Script: temp_email.sh # --------------------------------------------------...
user avatar
-1 votes
3 answers
3k views

Can't ping or connect to Raspberry Pi on same Wi-Fi network

I have a Raspberry Pi 3 web server connected to a Wi-Fi network and Windows 10 PC connected to that same network. From the PC, I cannot connect to the pi server or use SSH, however, if I connect the ...
user avatar
1 vote
0 answers
163 views

Securing Raspberry Pi 3B+ Web Server with NAS [closed]

I have been researching about the security threats to a web server. It makes me want to secure my own on my Raspbian OS system. What are the list of things that are recommended or optional to install ...
user avatar
  • 211
0 votes
3 answers
523 views

PHP not executing commands

I have an apache web server installed in my Raspberry Pi. I created an index.php file on the /var/www/html folder. Whenever I access my Pi's IP address on a web browser to control the lights, none of ...
user avatar
1 vote
0 answers
66 views

RPi AP works on laptop, not android

I have a Rpi set up to act as an access point, I'm running a basic web server and going to run scripts. I have my laptop connected to the Rpis Wifi, and can access the IP address and run my test ...
user avatar
  • 19
1 vote
1 answer
149 views

Intercepting HTTP request to fool Android into thinking WiFi network has internet

I have a product on a Raspberry Pi, using Raspbian where people connect to their Pi using WiFi served from the Pi, and then access the software via the web browser on their device (smartphone, tablet, ...
user avatar
1 vote
1 answer
548 views

Uninstalled Lighttpd, installed apache and PHP. PHP not executing

Title says it all. Lighttpd was automatically installed by RaspAP, a wifi web GUI not being part of Raspbian repository. But I require Apache. Uninstalled Lighttpd, Installed apache with PHP & ...
user avatar
1 vote
0 answers
76 views

Unable to access apache2 web server on uap0 virtual interface from external client

I have added a virtual interface uap0 using the command iw dev wlan0 interface add uap0 type __ap on my raspberry pi running Raspbian Lite distro. The idea is that any user with the correct WiFi AP ...
user avatar
0 votes
0 answers
705 views

Error starting apache web server on raspberry pi

I am attempting setting up my raspberry pi to be a web server. I have just installed the program today, so it is on latest configuration. I have gone with apache2. I have read that if entering my ...
user avatar