Apache2 questions
Le grand pinguin
rm at mh-freiburg.de
Wed Dec 22 21:06:19 UTC 2004
On Wed, Dec 22, 2004 at 03:40:21PM -0500, Drew, Bill wrote:
> I looked in the forums and couldn't find the answers I need there. Here
> are my questions in order as I think they need to be answered. I am a
> relative newbie to linux but not to the web and creating webpages. I
> got the server to run by going to /usr/share/apache2 and doing "apache2
> -k start".
Probably not what you want to do. Iff you got apache2 installed as a
Debian/Ubuntu package then there should be a file '/etc/init.d/apache2'.
You can use this script to start/stop/restart etc. the server, just do an:
sudo /etc/init.d/apache2 start
> 1. How do I get apachectl to run? I get "command not found." messages.
> What directory in root session do I need to be in?
The init-script is doing this for you - in the right environment, so use
it.
> 2. How do I change the default start-up page? What directory? Apache2
> documentation does not tell how to do that as far as I can tell.
Have a look at the configuration files in '/etc/apache2/sites-available/default'
There you'll find the setting for 'DocumentRoot' (should be '/var/www').
> 3. How do I get apache2 to start at bootup?
Either create maual links from the init script to the runlevel directories
or do:
sudo update-rc.d apache2 defaults
HTH Ralf Mattes
> Wilfred (Bill) Drew
> Associate Librarian, Systems and Reference
> Morrisville State College Library
> E-mail: mailto:drewwe at morrisville.edu
> AOL Instant Messenger:BillDrew4
> BillDrew.Net: http://billdrew.net/
> Wireless Librarian: http://people.morrisville.edu/~drewwe/wireless/
> Library: http://library.morrisville.edu/
> SUNYConnect: http://www.sunyconnect.suny.edu/
> "To teach is to learn twice." - Joseph Joubert
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list