Questions tagged [apache-httpd]

For questions pertaining to the Apache web server.

The Apache HTTP server is a popular web server developed and maintained by an open community and available for different operation systems.

168 questions
18
votes
2 answers

Where is the HTTPD.CONF file?

I am attempting to stop people from being able to browse directories on my server. I have a fully functioning public facing LAMP on my pi but when you type in a dir name or my ip address you can see the DIR info. Here is a live…
DotNetRussell
  • 325
  • 2
  • 3
  • 11
14
votes
3 answers

Performance comparison of RPi 3 web servers: Apache, Nginx, and Lighttpd

Has anyone done any real performance comparison testing on RPi 3 on popular web servers: Apache2 -- the most prevalent server Nginx -- the server that claims to be best performer Lighttpd -- the most lightweight server Or a package I have not heard…
Sandor Dosa
  • 521
  • 1
  • 5
  • 17
7
votes
3 answers

Raspberry Pi 21, 22, and 80 Ports Acting Up

I am running an Apache 2 web-server with MySQL and PHPMyAdmin but the 21, 22, and 80 ports act up all the time. The 21 and 22 ports stop working at about the same time but the port 80 works for a lot longer until it needs to be rebooted. But once…
Geeoon Chung
  • 123
  • 1
  • 9
7
votes
1 answer

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
5
votes
1 answer

How to stop Apache from running a local web server on Boot?

I tried using this sudo /etc/init.d/apache2 stop, but it only temporarily works and the server starts working again after a reboot. Is there a disable feature or something similar?
shurup
  • 193
  • 2
  • 3
  • 10
5
votes
1 answer

Apache2 subtext can't acces 000-default

I have been using Apache2 and webmin with my Raspberry Pi. After a restart and reinstallations Apache won't start. > sudo /etc/init.d/apache2 restart apache2: Syntax error on line 268 of /etc/apache2/apache2.conf: Could not open configuration file…
enrique2334
  • 153
  • 1
  • 3
5
votes
2 answers

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 a script called LED-on.py, that, when I run…
4
votes
1 answer

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: made sure that the system is reachable via SSH.…
pmallot
  • 41
  • 3
4
votes
3 answers

Internet always cuts out

I'm using my Raspberry Pi to set up a simple Apache Web Server using these instructions. The problem I am having is that the Web Server will come up for a little while but then seem to just stop working. I have connected my Raspberry Pi to the…
Kezz
  • 223
  • 3
  • 11
4
votes
1 answer

Security issues in PHP executing PYTHON scrips

So I've got a PHP script thats capable of executing Python commands (to control GPIO), thanks to the users of StackExchange. My previous question here. Now I'm able to control the GPIO pins from a script hosted in Apache2 of the Pi. This was done…
Krish
  • 237
  • 1
  • 3
  • 8
4
votes
2 answers

Why can't I return value from python script to PHP script when trying to use GPIO

I have spent two days on this and have tried nearly everything I could find. I am using an apache server (2.4.10). I have two files in a folder called testPythonPHP that is located in the root folder of my server (/var/www/html). The files are…
Xavier
  • 41
  • 1
  • 2
4
votes
1 answer

How to change default apache folder to Flash drive on Raspbian?

I have apache 2.4 on my raspberry pi and need to change DocumentRoot to flash drive folder. But I have 403 Forbidden. In apache logs: AH01630: client denied by server configuration: /media/pi/www/html/ and AH00035: access to /index.html denied…
4
votes
4 answers

E: Package has no installation candidate

I am unable to install any package using command "apt-get install". Whenever I execute above command to install any package, it shows me a common error saying E: Package has no installation candidate I tried following packages to…
HarshIT
  • 235
  • 1
  • 4
  • 13
4
votes
1 answer

Apache "404 not found error"

I previously posted a similar question because I used to get a 403 error message (Forbidden). So I decided to get a new micro SD card, and I installed a fresh Apache server then I re-followed this tutorial from scratch…
Julia_arch
  • 241
  • 1
  • 2
  • 8
4
votes
3 answers

Apache server "403 forbidden, you don't have permission."

I followed this tutorial Building an SQLite temperature logger. The python files work perfectly, no errors at all. However, I am not able to see the webpage, I get a 403 - forbidden error. I've been banging my head for the last couple of days. I'm…
Julia_arch
  • 241
  • 1
  • 2
  • 8
1
2 3
11 12