Questions tagged [apache-httpd]

For questions pertaining to the Apache web server.

Filter by
Sorted by
Tagged with
0
votes
3answers
5k views

Variable which can be used between a python and php file

I need 14 variables globally whose value can be manipulated by both php and python program. The python program just wants to read the value of the variable. The PHP program should write the value of ...
-1
votes
1answer
4k 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
2k views

Python module subprocess not working with Django running server via Apache

I am working on a home automation project, and I want to run certain python codes when going to certain URLs of my Django Webpage. The subprocess.call() line from my Django Views.py works perfectly on ...
1
vote
0answers
340 views

Apache2 port 80 issues - Arris modem

I configured my Arris TG852G router to forward port 80 to my raspberry pi private IP address. I also put port triggers on port 80. I have Raspbian OS on my pi. With Apache running and listening on ...
0
votes
2answers
463 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
685 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 ...
0
votes
1answer
306 views

dnsmasq, hostapd and virtual hosts on a Single Machine

I have a raspberry pi setup with dnsmasq, hostapd and apache. I am trying to get dnsmasq to point to virtual hosts so I can make a portable intranet with multiple sites. I have the same setup at home, ...
3
votes
1answer
1k 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 ...
4
votes
2answers
4k 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 ...
1
vote
1answer
279 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
2k views

PHP script is not returning to main page after calling Python script

I am designing a Raspberry Pi based home automation unit in which the Pi will communicate with several atmega328p microcontrollers (in each room) via nrf24l01. Atmega side will not be a problem, but I ...
1
vote
2answers
4k 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/...
0
votes
2answers
434 views

Can't install apache2 properly on RPi3

I try to run apache2 on my RPi3 on Raspbian Jessie with this tutorial : https://www.stewright.me/2015/08/tutorial-install-apache-php-and-mysql-on-a-raspberry-pi-2/ Everything runs fine during the ...
1
vote
1answer
549 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 ...
0
votes
1answer
676 views

Which web server to select to reconfigure phpMyAdmin automatically?

I am trying to install PhpMyAdmin with Nginx server on Raspbian jessie. Both mySQL and Nginx is already installed. When installing PhpMyAdmin, it says to choose the web server. It is showing only two ...
2
votes
2answers
584 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 ...
1
vote
0answers
167 views

Why does my Raspberry Pi keep deleting the /var/www folder?

I'm running a web server that uses PHP5 and SQlite for database queries. I have my crontab set to reboot the machine at midnight each day. Every few days, all of my files in the /var/www folder are ...
2
votes
0answers
306 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 ...
3
votes
4answers
1k 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 ...
5
votes
1answer
16k 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?
12
votes
3answers
26k 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 ...
1
vote
2answers
3k views

How to add a hostname on my Apache server?

I have installed two things : A wi-fi access point through this tutorial: https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point And an Apache server from this tutorial: https:/...
1
vote
4answers
1k 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
0answers
391 views

localhost Apache Very Slow

I have my RPi set up as an Apache2 Webserver. When I curl to localhost with my network cable unplugged I get a response in <1s However, once I connect the network cable - the time for response ...
1
vote
1answer
882 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,...
2
votes
1answer
2k 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
617 views

Linux (Raspbian ) on raspberry pi 3 “hangs” after a random period of time, how to debug?

I have a raspberry pi that is running a website on apache2. The only other thing running on it is a script running to read out some sensors and store the information in a database (running every ...
0
votes
1answer
2k views

How can I add anonymous ftp?

I am using SSH and PuTTY for SSH terminal access; FileZilla works well for sftp file transfers. I've installed tightvncserver for desktop access. sudo apt-get-install tightvncserver sudo vncserver ...
2
votes
1answer
3k 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 ...
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 ...
0
votes
1answer
236 views

How to install proxy_fcgi module for Apache?

I am trying to install Seafile on my Raspberry Pi, following the documentation, and an running into a problem with the proxy_fcgi module. Where can I find the proxy_fcgi module? It is not in the /usr/...
1
vote
0answers
136 views

apache2 working but not showing up in netstat?

When I check which ports/interfaces apache is listening on, I see that it is listening only for tcp6 connections: $ sudo netstat -tulnp | grep apache tcp6 0 0 :::80 :::* ...
1
vote
2answers
18k views

PHP can't execute sudo script (www-data is allowed to sudo commands)

Can anyone of you tell me why this doesn't work? When i open the file doesnt run anything :( This is my php file: <!DOCTYPE html> <html> <head> <title>Restarter ...
0
votes
3answers
670 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 "...
2
votes
0answers
116 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 ...
3
votes
2answers
302 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 ...
0
votes
1answer
405 views

Apache2 using older PHP version than what was installed

I've recently updated to PHP 5.6.10 by building it from source (Since I can't download it from the repositories, I'm still using Wheezy 7.0). The build went perfectly and once it was installed, using ...
0
votes
2answers
421 views

second virtualhost causes apache2 failure

This on a Raspberry Pi 2. When I add a second virtual host to the 000-default.conf file, and restart apache2, it gives me this error: [....] Restarting apache2 (via systemctl): apache2.serviceJob for ...
0
votes
1answer
476 views

Glype running on Apache2 and PHP 5.6.24 witch cURL enabled can't find the settings file for admin configuration

I'm attempting to setup a proxy website on a Raspberry Pi 2 Model B. I've tried Simple PHP Proxy and PHP Web Proxy (Sorry I don't have enough reputation to post more than two links). I wasn't ...
1
vote
1answer
262 views

How to write a initial script and let it run a command automatically

As the title saying, I want to start on this. sudo service (my service name) start. Where do I write this script that can make service initially start? My service is "apache2" and "bluetooth". ...
1
vote
0answers
124 views

NAS mounted drive permissions as the www folder

So I am messing around with my Pi (Raspbian) and I have setup an apache server on it with php. I have set the apache server to use a folder on the mounted NAS drive however when trying to use unlink ...
-1
votes
2answers
279 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 ...
1
vote
0answers
18 views

Forwarding calls from Apache server to cpp server both running on Raspberry

I am using raspberry Pi B+ and i have installed both , Apache server and my own cpp server , running on different ports.The cpp server is based on 'GNU Libmicrohttpd' library and i can choose a ...
4
votes
4answers
33k 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 ...
2
votes
4answers
17k 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
0answers
181 views

Using audio-output of raspberry from apache server

I am currently struggling on a project I am working on. I am supposed to control the audio output of a raspberry from a computer or another device. I installed an apache server and I want to execute a ...
1
vote
1answer
2k views

Apache 2.4: AH01630: client denied by server configuration

I upgraded from Apache 2.2 to 2.4 and i'm having trouble getting everything working again. The error in /var/log/apache2/error.log is: [Sat May 07 22:36:38.152432 2016] [authz_core:error] [pid 30664] ...
2
votes
2answers
4k 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 ...
1
vote
1answer
2k views

Apache2 Fails To Start Second Time After Install

I have a Pi 3 and just installed Apache and PHP via this link sudo apt-get install apache2 -y sudo apt-get install php5 libapache2-mod-php5 -y The Apache server turned on with no problems and I was ...
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 ...