Editing the httpd.conf file

I’m trying to do the following:

$ sudo pico apache2.conf

It’s not working. I’m in the directory that this file is in, but to ensure this had nothing to do with location, I tried the following, too:

$ sudo pico /etc/apache2/apache2.conf

That didn’t work either. I looked at the permissions, and it says that the owner has read / write permission.

The funny thing is that it’s not even being read into pico, but yet, the services are functionally perfectly fine and I can use KATE on the actual box to read the contents at least… What the heck is going on here? This is so frustrating. Ha.

Here’s what I’m trying to do: Create public_html directories for people using SSH into my server. I’ve created the following symlinks for this:

sudo ln -s …/mods-available/userdir.load
sudo ln -s …/mods-available/userdir.conf

…but after doing this and restarting Apache, I receive the following error message:

[Fri Feb 04 14:13:39 2011] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.

So after looking around, I found the following in the “/etc/phpmyadmin/apache.conf” file:

Alias /phpmyadmin /usr/share/phpmyadmin

After commenting it out, I restart Apache. I then try the “/~user” URLs, but I only receive a “not found” message. Oh, and to top that off, phpMyAdmin doesn’t work either–I have to leave the Alias inside of apache.conf for that to work…

What gives?

Wolf,

It’s been a while since I used Linux but the whereis directive was helpful (in finding more than one copy of a file). I believe that apache2.conf is the Linux equivalent of httpd.conf on WinDoze so you’re looking in the correct area (try type {other files in that directory} to see if they have the Apache configuration information).

SSH or SSL ({HTTPS})? SSH is not a part of Apache (or I’m really off-base!). SSL will only provide an encrypted access to web directories but will not verify the identity of the individual connecting.

userdir? I’m not familiar with that module but I think I’d use subdirectories to partition your host’s directories for clients and suspect that you’ll need Linux’s equivalent of httpd-vhosts.conf for those.

PHPMyAdmin is a GUI tool for manipulating your MySQL database via the web connection.

Color me confused.

Regards,

DK

DK, all I’m trying to do here is create user accounts on an Ubuntu server where when they use WinSCP or SSH to log into the machine, they log into their account directory where that’s the only directory they have “full power over.”

So, for example, say my user name on this box is “Wolf.” If I log into it using WinSCP, SSH, whatever, I would immediately be taken to my user “space”, which in this case, would be “www.blah.com/~wolf”. See me?

(Sorry if my last post was confusing.)