We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [apache-httpd]

For questions pertaining to the Apache web server.

Filter by
Sorted by
Tagged with
16
votes
2answers
42k views

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 ...
8
votes
3answers
18k views

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 ...
7
votes
3answers
1k views

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 ...
4
votes
3answers
11k views

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 ...
4
votes
1answer
9k views

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/...
4
votes
2answers
2k views

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 ...
4
votes
3answers
5k views

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 ...
4
votes
1answer
61 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: ...
3
votes
1answer
2k views

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 ...
3
votes
4answers
26k views

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 <PackageName> has no ...
3
votes
2answers
18k views

Why can't I remove Apache?

I installed a LAMP stack with the following commands: $sudo apt-get install apache2 php5 libapache2-mod-php5 $sudo service apache2 restart $sudo apt-get install mysql-server mysql-client php5-mysql ...
3
votes
4answers
943 views

I can start a html file but not with Apache

I asked this before. The question was marked Duplicate. Unfortunately a newbie like me did not know it was a duplicate. The ‘answers’ I did not understand. I am sorry to ask dumb questions. I ...
3
votes
1answer
1k views

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 ...
3
votes
2answers
11k views

PHP-version on Raspberry Pi different in phpinfo()

I have a Raspberry Pi 2 where I want to run my backend for an application on. This needs php 5.6 to run correctly, otherwise it will just not work. I installed PHP 5.6 on this Raspberry Pi, but now I ...
3
votes
1answer
740 views

Apache on Pi won't display images

I'm trying to display images on the Apache server created on Pi. PHP Code: $files = glob("/var/www/html/Images"); for ($i=1; $i<count($files); $i++) { $num = $files[$i]; echo '<img ...
3
votes
2answers
3k views

Trouble with Alias directive on apache2 server

I have some media in the directory /mnt/sda1 that I would like to embed in my webpage with root at /var/www. I tried adding to /etc/apache2/sites-enabled/000-default.conf: Alias /media/ "/mnt/sda1/" ...
3
votes
2answers
1k views

Cannot Connect to Apache Server, No Errors Generated

I am trying to run an Apache server on my Raspberry Pi, as per this tutorial. I currently have a VPN (OpenVPN) running on the same server. Even when I stop the OpenVPN process with sudo service ...
3
votes
0answers
2k views

Why is there no 'www-data' group by default? [closed]

I just tried to install (and then start) Apache2 HTTPD, but was greeted with the error: apache2: bad group name 'www-data' I quickly checked my /etc/group, and there is no www-data group. I always ...
2
votes
1answer
1k views

Pi Wordpress asks for ftp credidentials

Recently, I have installed a LAMP server on my Raspberry Pi B+ running Raspbian 7 (Jessie) and when I try to install a plugin or theme it asks for FTP credidentials. Does anyone know how to fix this?
2
votes
4answers
906 views

Unable to connect to Apache 2 server on Pi externally

I'm trying to use my Pi as webserver and can confirm that the Apache 2 webserver is functioning properly when accessed locally. In order to allow external access, I have set up port forwarding (80 for ...
2
votes
1answer
9k views

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?
2
votes
2answers
3k views

Hosting Webserver with 3G connection

My Pi 2 is logging temperature and humidity, and is connected to a PiNoir Camera. The Pi 2 is connected to the internet via a 3G USB Modem. I'd like to view my logged data (RRDtool Database) and a ...
2
votes
4answers
9k views

Raspi won't start apache2 after I power cycled

Serious Raspi n00b here (I come from a Microsoft background) Had apache2 running with no issues. Unplugged the Raspi because I wanted to set up a powered usb hub for an external hdd. Got everything ...
2
votes
1answer
2k views

Removed Apache2 and installed NginX, still get Apache default page

I am trying to remove Apache2 and replace with NginX. I purged Apache2 and if I try again, it says "Package 'apache2' is not installed, so not removed". However, when I go to the localhost page, I'm ...
2
votes
1answer
8k views

PHP doesn't work on Apache on RPi

I just installed apache2, php, mysql, phpmyadmin, and vftpd (to add files via filezilla) on my raspberry pi, which is used as a local web server. I created a simple index.php page with Brackets (a ...
2
votes
1answer
236 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 ...
2
votes
1answer
1k views

HTTP to HTTPS redirect issue [closed]

I'm setting up a website on raspberry Pi. my websitename is like this abc123.example.co so the thing is that the "abc123" is random, no idea what will it be next time I start the server. now, I'd ...
2
votes
2answers
241 views

Can I have an Apache Server on Pi 3 if it's working as a WiFi AP

I want to create a webserver local-network accessible but without router. The idea is to connect a device (phone, PC) to the Raspberry over WiFi, and see the webpage on the Apache Server. Is it ...
2
votes
3answers
3k views

CGI and sudoers

I may got stuck in a very simple problem, but I can't figure it out. I would like to run using a cgi script a simple command: sudo service transmission-daemon stop in order to stop a system daemon. I ...
2
votes
1answer
5k views

Citadel server along Apache server behind a router

I have an Apache server running on my Raspberry Pi. The Pi is behind a router, having local IP address 192.192.192.192. I use the Virtual Server feature of the router to allow traffic through ports 80,...
2
votes
2answers
278 views

Apache2 Web Server: unable to view web page remotely

I just made my first raspberry pi web server. I am running it from my home. I currently don't have a domain name for it, but I do have my router port forwarding my pi. The page runs fine when I'm at ...
2
votes
0answers
212 views

xdotool from Apache/PHP script

With Raspbian Wheezy I could do the following without any problem through a PHP script run by Apache on the local Pi: exec('env DISPLAY=:0 xdotool mousemove 20 10 2>&1', $output); But now I ...
2
votes
0answers
107 views

Configuration for NASA ISLE deployment

NASA has released an open-source version of it's lab inventory system known as ISLE: https://github.com/nasa/isle I went through the local setup using Vagrant but I was wondering if it would be ...
2
votes
0answers
123 views

Local LAMP server slow on mobile devices

I set a local lamp server at my raspberry 2 B. I uploaded a HD media file in it is working well when I browse I can watch video well. My problem is I am connecting to raspi by wireless and it is ...
2
votes
1answer
2k views

rpi as wireless access point and web server

My RPi currently has a working 3G dongle and a Wifi dongle. I followed this tutorial on how to set it up as an access point on wlan0 and modified it a bit so my NAT routes into the 3G modem (ppp0) ...
1
vote
1answer
3k views

Use of Raspberry Pi 3 as a web server - is it a good choice?

Currently, I'm using a web hosting service and I spend about 33$/month. I'm planning to buy Raspberry Pi 3 for have my own web server, but I'm worrying about performance. Is it safe (regarding ...
1
vote
2answers
6k views

Create a Raspberry Pi webserver with a domain name

I just set up my Apache web-server (following a tutorial from Jeremy Morgan), and since I have a domain name (pillower.com) registered with GoDaddy, I was wondering how I could link them. Would ...
1
vote
3answers
70 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 # --------------------------------------------------...
1
vote
4answers
12k views

ownCloud setup: Can't write into config directory!

I'm trying to set ownCloud up on my Pi (following this). I've made a symbolic link from my data and config folders to a USB stick mounted at /media/cruzer_usb (as per the link), and everything works, ...
1
vote
1answer
4k views

Can't install apache

I can't download apache2 and php5: sudo apt-get install apache2 php5 libapache2-mod-php5 Gives me the error "Failed to fetch [URL] 404 Not Found". The raspberry is connected via ethernet to my ...
1
vote
1answer
887 views

How do I install Apache2 and PHP without the internet connection?

I do not have access to internet on my Pi. So I cannot install the above mentioned software using sudo apt-get install apache2 php5 I have downloaded all the files form http://archive.raspbian.org/...
1
vote
2answers
3k views

Apache2 webserver running python script

I ned to be able to access the RPi's GPIO pins, and to do that, my python script needs to be able to access /dev/mem. I can post code if you need it, but i'm really just looking for suggestions on ...
1
vote
1answer
362 views

Access to webpage from other computer giving error

I installed apache2 following some tutorial, but I got stuck and am not sure if the server has been installed correctly. I want to access my shell outside the network. I think I port forwarded and ...
1
vote
1answer
9 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 ...
1
vote
1answer
215 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 ...
1
vote
1answer
636 views

SSL problem “SSL_ERROR_RX_RECORD_TOO_LONG” for Raspbian Stretch?

I have a problem connecting to my https, but not my http. This is the error I receive "SSL_ERROR_RX_RECORD_TOO_LONG". I also tried Listen 443 https from other suggestions. What am I doing wrong? ...
1
vote
1answer
440 views

Pi web server can't be accessed by domain name

I have an earlier Pi model circa 2012, with apache2,php5,mysql-client,mysql-server and phpmyadmin installed. I have an xfinity router (Comcast Cisco DPC3939) the gateway IP is 10.0.0.1. My Pi has a ...
1
vote
4answers
937 views

Raspberry Pi Wifi Pineapple/Access Point, Wifi honey pot setup error!

https://www.youtube.com/watch?v=T3s9KYCU3tE I have been following this tutorial for a while and I have come across a problem that will not let me finish the setup by running: sudo apt-get install ...
1
vote
1answer
599 views

Apache to serve local address from another RPi

Is it possible for a RPi server to serve from another RPi on the same network? I have 2 RPi's on my home network, both running apache servers - Raspberry A is linked to a web domain i.e. mydomain.net,...
1
vote
1answer
1k views

How to give web server (Apache) privileges to execute shell commands

I have installed Apache2 and I am running Raspbian Jessie. Then I installed WiringPi and PHP and now I want to access the GPIO headers on Pi using the PHP Web page. Here is how my page looks. I want ...