Web Hosting Talk







View Full Version : Starting in /web


syanet
02-04-2001, 07:42 PM
I'm trying to make it so Siteadmins start in /web rather than users/name. I modified the proftpd.conf file like follows:

ServerName "ProFTPD"
ServerType inetd
DeferWelcome off
DefaultServer on
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultRoot ~ !site-adm

to

ServerName "ProFTPD"
ServerType inetd
DeferWelcome off
DefaultServer on
DefaultRoot / admin
DefaultRoot ~/.. site-adm
DefaultRoot ~ !site-adm

That obviously did not work. Any ideas?

SI-Chris
02-04-2001, 10:02 PM
Change the "DefaultRoot ~/../.. site-adm" line to: "DefaultRoot ~/../../web site-adm". You have to put that in the <VirtualHost xxx.xx.xx.xx> tags for the hosts' corresponding IP#. Note that you need to do that every time you add a virtual host, as the Cobalt will overwrite your changes (I know, it's a pain).

Starhost
02-05-2001, 05:27 AM
Their is 1 disadvantage for this.
The site administor won't be able to login in the user dir. :(

Or is it possible to make an alias in the /web dir that redirects to the user dir?

gmilhon
02-05-2001, 07:16 PM
You have to modify /usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm. Otherwise, each time you make changes to any site, it will over-write the conf file.

Add:
DefaultChdir ../../web $Sites_AdminGroup

To the follow section:
<VirtualHost $ip>
DefaultRoot / admin
DefaultRoot ~/../.. $Sites_AdminGroup
DefaultChdir ../../web $Sites_AdminGroup

DefaultRoot ~/../.. $Sites_AdminGroup
DefaultChdir ../../web $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
AllowOverwrite on
DisplayLogin .ftphelp
$anonConfig</VirtualHost>

syanet
02-05-2001, 07:43 PM
Slight problem I get to You have to
/usr/lib/perl5/site_perl/5.00503 and find no cobalt directory.

gmilhon
02-06-2001, 12:30 AM
Do a locate on Ftp.pm (locate Ftp.pm)

syanet
02-06-2001, 01:24 AM
Which one needs edited?

/usr/lib/perl5/site_perl/5.005/LWP/Protocol/ftp.pm
/usr/lib/perl5/site_perl/5.005/URI/ftp.pm

Starhost
02-14-2001, 05:41 AM
/usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm

syanet
02-14-2001, 09:13 AM
Originally posted by Starhost
/usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm

But I don't have a Cobalt folder in that directory.

Starhost
02-14-2001, 09:20 AM
Then type in telnet/ssh:

locate Ftp.pm

Then you'll find the exact location of it on your raq.

Cael
02-16-2001, 07:27 AM
I am confused, which one do I need to configure?

only the Ftp.pm or proftpd.conf as well????

syanet
02-16-2001, 02:15 PM
Originally posted by syanet
Which one needs edited?

/usr/lib/perl5/site_perl/5.005/LWP/Protocol/ftp.pm
/usr/lib/perl5/site_perl/5.005/URI/ftp.pm

Then to quote myself, which one?

Starhost
02-16-2001, 03:09 PM
[admin@deimos admin]$ locate Ftp.pm
/usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm
[admin@deimos admin]$

Thats the one you need, atleast if you are running a raq3.

syanet
02-16-2001, 03:41 PM
We'll I'm on a RaQ3 and don't have a Cobalt folder in the directory. I did a locate and came up with a ftp.pm file in these two locations only:

/usr/lib/perl5/site_perl/5.005/LWP/Protocol/ftp.pm
/usr/lib/perl5/site_perl/5.005/URI/ftp.pm

I just don't know which is the equivelent of the one in the Cobalt directory.

Starhost
02-16-2001, 03:43 PM
you did:

locate ftp.pm

You have to do

Locate Ftp.pm


The correct file is the one I gave you.

Starhost
02-16-2001, 03:46 PM
[admin@deimos admin]$ locate ftp.pm
/usr/lib/perl5/site_perl/5.005/LWP/Protocol/ftp.pm
/usr/lib/perl5/site_perl/5.005/URI/ftp.pm
[admin@deimos admin]$ locate Ftp.pm
/usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm
[admin@deimos admin]$


The one in bold is the correct file.

syanet
02-16-2001, 04:22 PM
That's prgress at least. I made the changes, but permission is denied when I try to upload it via Telnet. How do I get around that?

Starhost
02-17-2001, 07:10 AM
Just edit them both that is what I did atleast

SI-Chris
02-17-2001, 07:23 AM
Originally posted by syanet
That's prgress at least. I made the changes, but permission is denied when I try to upload it via Telnet. How do I get around that?
I think you mean upload via FTP? The way to do it is Telnet into your box, then switch to root (type "su" then your password at the prompt), then use pico to edit the file.

Cael
02-17-2001, 07:55 AM
Originally posted by Donovan
I am confused, which one do I need to configure?

only the Ftp.pm or proftpd.conf as well????

Can anyone answer my question ?

HostHawk
04-13-2001, 04:41 PM
WHAT THE HELL....

If I knew that b4 ... I would have never got RAQ.
Is there a solution to the problem that the site administrator too goes to the directory /users/hell/with/raq/web instaed of /web.

So how raq administrators give user name and passwords to their clients? Do they always tell them to do cd ../../web. If I sign-up with such a company I will never be there for more than a month. Thats terrible ... thats shocking !

Starhost
04-13-2001, 05:33 PM
Just edit them both, then it sures work.

HostHawk
04-16-2001, 11:26 AM
I edited both and Ftp now land on /web BUT Now I have a new problem!!!
I can't go into the user management area.

www.usersite.com/siteadmin gives page not found error ... plz help....

Chicken
04-17-2001, 02:51 AM
Well, this could be due to a few things... not sure if you can get into the CP via this:
http://serv.erip.addr.ress:81/.cobalt/siteManage/www.domain.com

-but if not, you can try:
/etc/rc.d/init.d/admserv restart