20

On Debian (the operating system Raspbian is based on) and Raspbian the config file is apache2.conf (not httpd.conf) and it should be in /etc/apache2.


7

Try sudo apt-get --purge remove apache2 and then sudo apt-get autoremove. I had that same thing with emacs due to it installing other dependencies. emacs would still be there after --purge remove. Autoremove helped removing the dependencies which were installed with emacs.


7

This should be able to be fixed by either providing the FTP credentials in your wp-config.php file (in the root directory of the Wordpress install) or by changing ownership of the Wordpress install. I recommend the changing ownership option. Changing Ownership On my Debian WordPress server (not Raspbian, but regular Debian Wheezy), my entire installation ...


6

when raspberry pi 3 handles 10 Thousand connection Very, very unlikely. If each connection were generating 1 KB/s of traffic, that's 10 MB/s, which is just within the 12 MB/s theoretical upper limit of the 100 Mbps ethernet NIC. But I don't see how a 4 x 1.2 Ghz processor is going to be able to do much with that volume of information, besides maybe turn it ...


5

This should be a comment, but its a bit long. While I've not (yet) tested out various webservers on my Pi, I have previously run a lot of testing on webservers running on x86 server hardware. What I know from there is: most people get confused about the difference between performance and capacity - you'll see lots of posts claiming nginx is faster than (...


4

You will have to forward port 80 to your Raspberry Pi. Then you have to tell GoDaddy that you want them to have the IP of your domain name updated as soon as you get a new IP (Dynamic DNS). Maybe you should use GoDaddy with DynDNS.


4

All of the files in the sites-enabled/ directory are actually symlinks to their counterparts in the sites-available/ directory. For some reason it looks as if the file that 000-default is linked to is not there any more. You should be able to tell if I'm right by executing the following, which I think will give you some errors about dangling symlinks: ...


3

While I'm not quite certain why Linux decides to say permission is denied rather than giving a more helpful error the problem here is that you're not telling it what you want to do, you're just giving it the path of a file. I'm assuming you want to edit the file to change your hostname? In that case you'll want to open it in an editor like nano for example. ...


3

You can execute shell commands remotely using ssh. man ssh has more info than you'll ever want -- here's the essential info: Let's call the host on which you want the commands to run the target, and the host requesting it the client. Generate a key using ssh-keygen on the client, using the account that will be making the requests. Accept the default ...


3

First a bit of context: Essentially the Raspberry Pi is a mini computer that runs Linux (or Android). Although it is a different CPU architecture (ARM) to what most Home PCs and many servers run (x86/x86_64) in essence it is just a computer running Linux... First thing you want to do is choose which OS you wish to install. My personal preference is for ...


3

Always run sudo apt-get update first before installing / upgrading as that will ensure you are getting the newest packages / package locations. 404 errors are commonly because packages are no longer available as new ones have replaced them, or you aren't connected to the internet. But as you can ping google.com, that rules out internet connectivity issues. ...


3

You can create symlinks in this directory and add this option to you site config: <Directory /> Options FollowSymLinks </Directory>


3

Make sure that the apache2 server is on port 80 and not 8080. Apache2's default is port 8080.


3

You can use a CGI script - this basically means you can get scripts run by the webserver. Here are some samples from a old project I did (not necessarily the best way of doing stuff, but it worked quite well if with some latency over a WiFi connection): controls-touchembed.html <!DOCTYPE HTML> <html> <head> <title>Robox Pi - ...


3

Your public files are owned by root. Apache can't access it. Change the ownership so that it's owned by www-data. To restore ownership of the files in your public directories, run these: chown -R www-data /var/www chgrp -R www-data /var/www chown -R www-data /usr/lib/cgi-bin chgrp -R www-data /usr/lib/cgi-bin These will change the owner and group of the ...


3

I just figured it out, what I did is I added this line Require all granted between the directory tages to the etc/apache2/conf-avilable/serve-cgi-bin.conf. Then I added the following line to the /etc/apache2/apache2.conf file: ServerName localhost Then a2enmod cgi service apache2 restart


3

I just figured it out, what I did is I added this line Require all granted between the directory tages to the etc/apache2/conf-avilable/serve-cgi-bin.conf. Then I added the following line to the /etc/apache2/apache2.conf file: ServerName localhost Then a2enmod cgi service apache2 restart


3

Looking at your sources.list file your problem may be that you are only using "Wheezy" {Debian/Raspian Version 7.x "OldStable"} sources but also have "jessie" {Debian/Raspian Version 8.x "Stable"} sources commented out - if you have previous had the latter uncommented you may have installed packages from the later version ones and then, when they were ...


3

Create a different conf file for the second virtualhost and put it in /etc/apache2/sites-available and run $ sudo a2ensite $ sudo a2enmod rewrite $ sudo service apache2 restart will enable the new conf file will enable rewrite module to allow filepath access restart apache Also apachectl -t to check for config syntax


3

To stop a service doesn't prevent the deamon to start the service on boot. For this you should deactivate the service to come up on all run levels A simple command for this on raspbian is update-rc.d apache2 disable If you later want the webserver starts again on default just type update-rc.d apache2 enable' With the comand sudo /etc/init.d/apache2 start ...


2

If your pi is behind a router, make sure NAT / port forwarding / Virtual Server is forwarding port 80 to your pi's IP. And then, tell goDaddy to point A record to your external IP using DNS manager. You could also create a CNAME that forwards www.domain.com to your IP or your dynamic host ( whatever.no-ip.com )


2

if anyone also experiencing same problems then here is what the problem with me was. i copied the code from tutorial and the location in configuration file in apache was not set correctly. i changed to this and it started working after that only. <Location /> allow from all </Location> the file to change was in /etc/apache2/conf.d/...


2

If you're interested in hiring people from the Stack Exhange community, the best place to do that is Stack Overflow Careers. Stack Exchange sites are not the right place to look for employmees. Please refer to the help section of the site for what is an appropriate use of the site.


2

You shouldn't do that (chown). Apache is running under a different user, for a purpose. You don't want a webserver that is accessible by the whole world to have access to all files. That is in case the program has some vulnerability that can be exploited. You as a user must add permissions to files the server is allow to read, and most importantly which ...


2

If you are sure you want to give the www-data group the ability to restart a service, you should specify the commands within the sudoers file. %www-data ALL=NOPASSWD: /usr/sbin/service SERVICENAME * or %www-data ALL=NOPASSWD: /usr/sbin/service SERVICENAME stop, /usr/sbin/service SERVICENAME start, /usr/sbin/service SERVICENAME restart Note: The www-data ...


2

Do a mod_rewrite on the source IP of requests and redirect to the LAN IP. If you are connecting to your own public IP, the source IP should either be your own public IP or the IP of your gateway. You could also write a small PHP script which does the redirection (example: /redir.php) and bookmark that instead.


2

This message usually indicates the filesystem is in read only mode or not fully supported. Please check the following: which filesystem is the external drive formated with? (mount| grep media) is the drive mounted rw (same as above) If the external drive is formated with fat/fat32/ntfs this is your problem. If not then unmount the drive (do not unplug it)...


2

Here's a sample script to read an sqlite3 database using Python: import sqlite3 conn = sqlite3.connect('example.db') c = conn.cursor() for row in c.execute('SELECT * FROM led'): print row Check out the documentation, it's pretty good.


2

Based on the above you have two problems file and directory ownership and odd file permissions. to correct this do the following: sudo chown -R pi /var/www this will make all of the files and sub-directories of the /var/www/ directory owned by the Pi user and group. to correct the file p permissions on the index.php file do this: chmod 644 index.php ...


Only top voted, non community-wiki answers of a minimum length are eligible