Open-source HTTP server.
53
votes
11answers
3k views
What's the easiest way to set up a LAMP stack?
I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be ...
29
votes
2answers
8k views
Why should /var/www not have chmod 777
When opening a page from my server, I sometimes get a "Permission denied" error which I can solve by running chmod -R 777 /var/www. However, people are telling me that this is a bad idea for security ...
6
votes
3answers
16k views
How can I replace missing configuration files after removing a package?
I recently was messing around with my apache config and wanted to reinstall so I could start from fresh. I followed some forum posts about resintalling apache2 and this ended up deleting my ...
14
votes
3answers
11k views
How do I install Bugzilla?
I would like to use Bugzilla on my own computer to track and trace bugs in our own software. How do I set this up?
15
votes
6answers
13k views
how to stop apache2, mysql from starting automatically as computer starts?
my os is 11.04.
i have apache2 & mysql installed.
how to stop apache2, mysql from starting automatically as computer starts?
7
votes
4answers
8k views
Apache symlinked to home directory - Permission Errors
im having a few problems symlinking my /var/www/ to a new Webroot directory inside my home folder. I think these stem from my lack of understanding of linux permissions.
As far as im aware, symlinks ...
5
votes
3answers
5k views
Downgrade PHP to PHP5.2?
I want to install PHP 5.2 in Ubuntu 11.04 , I had some script that did that thing good but only on Ubuntu 9, anyone has a script / instructions how to do it?
2
votes
2answers
4k views
Cannot start XAMPP on Ubuntu 11.10
When I try to start XAMPP with sudo /opt/lampp/lampp start command it gives me a message like this.
Starting XAMPP for Linux 1.7.7...
XAMPP: Another web server daemon with SSL is already running.
...
0
votes
2answers
738 views
Apache Not Accepting a Path in My Home Folder
I have trying to set up an Apache site to use a folder in my home folder without any success. I exactly followed the steps in this page: https://help.ubuntu.com/community/ApacheMySQLPHP
yet I did not ...
1
vote
1answer
517 views
Apache / MySql is not running. What is wrong?
I installed lampp / xampp on my Ubuntu 12.04. After installing, Apache and MySQL were running properly. Now, they're not. Here's what I get when I try to run apache:
Command:
/etc/init.d/apache2 ...
0
votes
2answers
2k views
Cannot start XAMPP
When I try to start XAMPP with /opt/lampp/lampp start command it gives me a message like this.
Starting XAMPP for Linux 1.7.7...
XAMPP: Another web server daemon is already running.
XAMPP: ...
22
votes
6answers
30k views
How can I access apache (on virtualbox guest) from host?
Hi I installed Apache on Ubuntu in a Virtualbox. When I go into the guest and load up Firefox I can see that Apache is working fine when I browse to http://localhost.
I would like to access this same ...
6
votes
3answers
2k views
How to make Apache run as current user
I think for a development machine, its more convenient to run Apache as the current user to simplify permissions problem? How do I do that? I think its suexec but how do I configure it in ...
5
votes
1answer
2k views
how to set up a ubuntu server to be (securely) available from internet?
(apologize in advance, I'm a pro-windows newly converted to ubuntu... if my questions are obvious, please tell me).
I want to build a ubuntu server continuously connected to the internet. I own only ...
1
vote
0answers
517 views
Problems starting Apache2 on Ubuntu 12.04.1 LTS
I recently installed Ubuntu 12.04.1 on my EC2 Micro instance and then installed Apache2 and PHP5. I am now having trouble starting Apache2, I've checked the error logs and here's the result:
[Sun Oct ...
7
votes
5answers
25k views
How do I install Apache Tomcat 7?
Troubleshooting with apache Tomcat 7
steps should be followed ....
after downloading apache-Tomcat 7 //
open terminal go to that downloading file folder in which tar.gz file is still.
Untar the ...
1
vote
2answers
303 views
Should I as a developer use var/www in conjuction with apache?
I come from a strong Windows background. Therefore with IIS I have some site on my D drive, I then point IIS at this location and start serving files. With Apache though it seems var/www is the ...
1
vote
2answers
5k views
403 Forbidden Error when accessing enabled virtual host
When accessing a site defined in my local dev environment, I can't seem to get past a 403 Forbidden error.
Under /etc/apache2/sites-available/ I have defined a file fun.local:
<VirtualHost ...
0
votes
0answers
199 views
Apache stays up for only a minute [closed]
When I start apache, it only stays up for a minute. After that, I can't connect to my website.
It says Apache is running, and when I restart Apache it works fine, for another minute, then it stops ...
14
votes
8answers
36k views
How do you restart Apache?
I switched from SLES to Ubuntu and now I want to restart my local server.
In SLES I used :
rcapache2 restart
but this somehow seems not to work in Ubuntu. :(
How do i restart my Apache?
15
votes
6answers
4k views
upstart-supervised init script for Apache?
I want to run apache on Ubuntu 10.04, and use the nice supervision stuff in upstart (I'm not just talking about the apache init script, but proper service supervision a la daemontools - which is to ...
8
votes
5answers
2k views
How to have two version of PHP installed and switch easily?
I want to have both PHP 5.2.17 and PHP 5.3.5 installed on my Ubuntu machine and switch as per my necessity. How can I achieve this?
3
votes
1answer
6k views
Configuring Permissions for FTP and Apache
I have a web server (Apache2) that i access with FileZilla.
On my web server i have a dir /home/admin/www that i binded to /var/www. So i can access it with FTP. This works perfect!
But everytime ...
4
votes
3answers
11k views
Setting up virtual host
I currently have all my websites as directories under /var/www. I would like to set up a virtual host http://foo/ that points to the /var/www/foo/foo directory (and still keep the default localhost ...
2
votes
2answers
8k views
How to install CodeIgniter?
Please give me a step by step process on how to install CodeIgniter on Ubuntu. I'm still a newbie. Thank you!
3
votes
2answers
614 views
How can I share this local site to not use a sub directory?
I'm working on a site locally that's just sitting in a folder:
localhost/tempplace
How can I route, with Apache2, that to be like:
tempplace:8890
Or just something so it's not a sub ...
5
votes
2answers
10k views
Permanently removing apache2
It seems a simple apt-get remove apache2 does not completely remove apache2 as I can still see it on one of the processes when running top. How does one remove apache2 completely on his ubuntu server?
...
5
votes
1answer
2k views
Easy way to change apache www location
instead of chaning permissions to /var/www, installing nautilus permission related extensions or having to execute gksu i want to know an easy to do way of changing /var/www to another place like ...
1
vote
1answer
429 views
How to patch Apache mod-proxy 3.0.1 with 3.0.1-1.1? [closed]
The command $ sudo apt-get install libapache2-mod-proxy-html and then $sudo service apache2 restart fires:
apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax
error on line 1 of ...
8
votes
4answers
10k views
How can I recursively change the permissions of files and directories?
I have ubuntu installed on my local computer with apache / php / mysql.
I now have a directory at /var/www - inside which I have several of my ongoing projects. I also work with opensource ( drupal, ...
4
votes
2answers
2k views
Running Apache and Tomcat together on different subdomains?
Posted this on ServerFault but didn't get a response. Hoping I will have better luck on the Ubuntu site.
I have been trying to get this working the whole of today. I have a server which resolves to ...
3
votes
2answers
4k views
Why doesn't apache2 respect my envvars file?
My envvar files has these lines in it:
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
My apache2.conf has these lines in it:
# These need to be set in /etc/apache2/envvars
User ...
2
votes
3answers
119 views
How do I install and use Apache?
I have downloaded ubuntu Desktop. I want to create a web server to host Test Web Sites to show my potential clients. Any suggestions, tips, or good direction for me? My plan is to download Apache and ...
2
votes
2answers
388 views
Changed LAMP WWW directory to Dropbox, now getting 403 Forbidden
I wan to use my Dropbox/Web directory as the server directory for LAMP. I cahnged /etc/apache2/sites-available/default
DocumentRoot /home/me/Dropbox/Web #changed from /etc/www
<Directory />
...
2
votes
4answers
1k views
How do I turn on SSL for test server?
I have a LAMP stack running. My the web root is /var/www.
So if I go to http://linux-server/some/page.php It renders the page located at /var/www/some/page.php
If I use https I get page not found.
...
1
vote
3answers
6k views
Unable to restart Apache, getting error: apache2: bad user name ${APACHE_RUN_USER}
I am getting this error trying to restart Apache, does anyone know how to fix this?
Thanks,
11
votes
3answers
10k views
Could not reliably determine the server's fully qualified domain name?
When I restart my apache server using the command
sudo /etc/init.d/apache2 restart
I get the following error:
Restarting web server apache2: Could not reliably determine the
server's fully ...
10
votes
3answers
23k views
Where is the PHP error log
I've installed apache, php, and mysql on Ubuntu 10.10 desktop edition, and it's working fine.
Except I have no clue where to look for apache or PHP log files.
4
votes
1answer
142 views
Is there a modern tutorial for setting up SSL on apache2?
I've been running apache2 for ages on my ubuntu server without SSL. Now that I want to have some directories delivered by SSL, I can't find any straightforward tutorials that were written recently. ...
4
votes
1answer
1k views
How to setup sudoers for Apache web service?
# User privilege specification
root ALL=(ALL:ALL) NOPASSWD: ALL
apache ALL=(ALL:ALL) NOPASSWD: ALL
me ALL=(ALL:ALL) NOPASSWD: ALL
In Fedora both works:
http://localhost/test
echo ...
3
votes
2answers
3k views
Why do I get a 403 error when accessing my apache server?
Im running Ubuntu 12.04 LTS on a system with 2 GB RAM and a 500 GB HDD.
My hard drive has 4 partitions:
Partition 1 = 40 gb Windows (NTFS, lable = win32)
Partition 2 = 320 gb Windows (FAT label = ...
2
votes
4answers
493 views
How do I setup “name based” virtual hosts using Ubuntu 12.04?
How do I setup “name based” virtual hosts using Ubuntu 12.04?
I have followed the instructions given at https://help.ubuntu.com/12.04/serverguide/httpd.html#http-configuration .
I've done the ...
2
votes
2answers
3k views
Portforwarding from host to guest using port 80, but it doesn't work
I installed ubuntu server inside a virtual box(11.04), then i configured apache.
Inside virtual box setting, i made a port forwarding from port 80(host) to 80(guest), i open my web browser on my ...
2
votes
1answer
590 views
What steps do I follow to run a stock Hello World CGI script?
Assume I have finished installing a modern release of stock Ubuntu, and have the following script.
#!/bin/sh
echo "Content-type: text/html\n"
echo "<html><body>Hello ...
2
votes
2answers
5k views
403 Forbidden problem with Apache
Strange, I have change folder users/groups to www-data (sudo chown -R www-data:www-data /datos/www) and also have changed permission to 755 (sudo chmod -R 755 /datos/www), but still getting 403 ...
2
votes
1answer
2k views
PHP scripts are being downloaded from localhost instead of displayed
When I view http://localhost/ in Google Chrome, it tries to download the homepage as a file, and doesn't display it. I tried http://localhost/ in Firefox 4 and it works fine.
In Chrome though, ...
1
vote
1answer
74 views
Apache2: Forbidden You don't have permission to access /dir/ on this server
I can access localhost but not the sub directories index.html
My default conf looks like:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
...
1
vote
1answer
42 views
Where is hadoop-ec2-env.sh in the Hadoop packages?
I'm unable to locate the file hadoop-ec2-env.sh.
I've downloaded and intalled hadoop_1.0.4-1_x86_64.deb from http://mirror.olnevhost.net/pub/apache/hadoop/common/stable/
This is the most recent ...
0
votes
1answer
33 views
image from webserver is not shown in web browser
I am new ubuntu and recently I install 'xampp 1.8.1' on my ubuntu 12.10. My problem is that image from server can not be shown. My code is
<div class="sideBlock unSung">
<h4>Unsung ...
0
votes
1answer
190 views
How can I open specific ports for my Apache server?
How can I open specific ports for my apache server under linux?
I'm trying to build a connection with a online game that sends messages and receives to a specific port. I want to make my apache ...

