LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Web Server Administration howto (https://www.linuxquestions.org/questions/linux-newbie-8/web-server-administration-howto-143302/)

Gear_freak2000 02-07-2004 08:24 AM

Web Server Administration howto
 
Quick easy questions for you lot!

Im running:

Apache2
PHP4
VSFTPD
MYSQL

On my SuSE 9.0 linux box which is connect to the internet / network via a wireless netgear MA311

All these things work no problem!

But my server is not very organized. Because its my first server i just been playing about with things to make them work..

So im going to start from scratch!

My questions are:

1) How do i make Telnet (i know its not secure but there is a reason for me using it), apache and mySQL start up on boot. eg. is it possible to make a "batch" file or something that’s runs on start up?

2) How can i set-up users and administrate them? (so something like "add new user bob pass bob123password access low"

and that will add a new use with access ONLY to his home folder and also create a way of allowing him to ftp but again only into his own folder(s).

3)iv done this before but i forgot how to do it. Link to a program. so instead of navigating to file (say apache) and doing the whole /usr/local/apache2/bin/ thing.... i can just type like "web-server restart"

THANKS FOR ANYHELP!!!

Kind Regards,

-=GEARFREAK=-

Keeble 02-07-2004 08:28 AM

if you installed the ones when you were installing the OS then you they should start on boot

Gear_freak2000 02-07-2004 08:29 AM

What about if i install them after for one reason or another?

(Thanks for the reply!)

frode 04-26-2004 08:30 AM

(I know it's an old thread, but I didn't see any reason to create a new.)
I have some problems with this as well. I installed Apache with PHP and MySQL during the system installation, but none of them starts automatically when I boot my computer. I have to type apache2ctl start and /usr/sbin/mysqld to get them running.

peacebwitchu 04-26-2004 10:13 AM

You need to link from /etc/rc3.d or rc5.d to /etc/init.d to the correct startup scripts similiar to this for ssh.
/etc/rc3.d/S55sshd -> ../init.d/sshd

the 3 in rc3.d is for the default runlevel this machine is starting in. this can be found in /etc/inittab.

The S in S55sshd is for start and the 55 is the order in which it will be brought up. So a syslog entry like this would be started before sshd

/etc/rc3.d/S10syslog -> ../init.d/syslog

OceanSurf 04-29-2004 05:21 AM

Configuting demons to start at boot time in SuSE
 
I've been creating symbolic links to executables for MySQL and Apache following the LAMPS tuorial but no luck. Then I just had a better look in the YaST2 modules. I've allways been using the packages from SuSE CD's since then (if I can).

In YaST go to System and click the Runlevel editor (or something like that). In there you'll see the list of almost every installed package that runs as a demon. You'll have the option to start at boot (or not). For MySQL it runs the install_db and other necessary stuff to make it work. SuSE takes care of everything. But the packages are not up-to-date (you'l have to use Apache 1.3.29 insted of (let's say) 1.3.30 or PHP 4.3.3 instead of 4.3.4. =/

Beats creating symbolic links in /rc5.d/ /init.d/ if you ask me, at least in SuSE.

cheers.-


All times are GMT -5. The time now is 10:13 PM.