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
1
vote
1answer
8 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 ...
0
votes
0answers
35 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 ...
0
votes
1answer
136 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 ...
1
vote
1answer
96 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, ...
0
votes
1answer
58 views

Apache problem after openssl upgrade

Since upgrading openssl via apt a couple of days ago apache no longer displays web pages. It thinks it's running, and listening on port 80 as it used to be, but asking a browser to load the page at ...
0
votes
1answer
955 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 ...
1
vote
1answer
314 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 & ...
0
votes
0answers
12 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 ...
1
vote
1answer
3k views

Installing MySQL server in latest (NOOBS) Raspbian

Here I was, following this tutorial (http://www.penguintutor.com/linux/raspberrypi-webserver), because I wanted to host a pretty simple PHP site on my Raspberry Pi. But once again, as it usually ...
1
vote
1answer
236 views

Raspberry Pi 3 as web server with Raspbian Jessie

Should connecting to my.public.real.ip/24 from another device on a different network connect me to my PIs hosted web page if I have installed apache+gave it static ip+port-forwarded? Is using DNS ...
0
votes
2answers
225 views

Private/Secure port forwarded Apache server?

I'm trying to create a light automation system with my Raspberry Pi 2, PHP, Python and an Apache server. Unlike some people, I want to be able to access this server from anywhere in the world. The ...
0
votes
2answers
363 views

Control Raspberry Pi to control an Arduino over Apache

I want to control a Raspberry pi to control an arduino which is controlled by a webpage hosted by apache. I do not know how I would attempt this and if it is even possible. Can anyone please guide me ...
1
vote
1answer
401 views

cant connect to server after configuring static IP

I'm able to connect to the local server when static IP is not set, however, as soon as I set a static IP on eth0 then I'm no longer able to reach the server by name. When I was configuring my static ...
1
vote
1answer
3k views

Execute python script with web server apache2

I have a problem, I can't execute a Python script on my Raspberry Pi 3. I set an Apache server to execute a python script by following a tutorial. I can execute the following script: #!/usr/bin/...
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
1k views

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

Install libapache-mod-fastcgi on RPi 2

I'm trying to make working Seafile accessible via HTTPS (locally), following this guide, but I can't install libapache-mod-fastcgi, which is why restarting Apache2 finally fails, as ...
0
votes
1answer
2k views

Can cPanel run on Raspbian?

Is it possible to run cPanel on Raspbian? I have a Raspberry Pi 3 Model B, and I want to know if this is possible before I go on purchasing cPanel. I currently have a virtual server on my Raspberry Pi....
0
votes
0answers
199 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: ...
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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
33 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() ...
-1
votes
1answer
97 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 ...
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 ...
0
votes
3answers
232 views

DNS with Raspberry as Wi-FI AP for local users

I have a website running on Apache. When users connect to the Raspberry AP, they can access to the website using the Raspberry's IP. But what I want to do is type an speific direction (like "...
1
vote
0answers
30 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 ...
0
votes
1answer
30 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 ...
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: ...
1
vote
0answers
35 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/...
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 ...
1
vote
1answer
214 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 ...
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 ...
0
votes
0answers
49 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/...
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, ...
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 ...
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 ...
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 ...
0
votes
2answers
5k views

calling Python script with GPIO module over apache2 web server

I have test.py file, and it contains GPIO module commands: #!/usr/bin/python import RPi.GPIO as G import time G.setmode(G.BCM) G.setup(18, G.OUT) G.output(18, True) time.sleep(3) G.output(18,...
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 ...
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 # --------------------------------------------------...
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 ...
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 ...
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/" ...
1
vote
0answers
63 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 ...
1
vote
0answers
130 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 ...
1
vote
0answers
69 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 ...
1
vote
0answers
36 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 ...
0
votes
0answers
427 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 ...
0
votes
1answer
27 views

How to give raspberry pi 0 with apache 2 an domain name?

I made an webserver with apach 2 on my raspberry pi 0. But they did not explain how to link your paid domain name to your webserver. Can someone tell me how to do that?
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 ...