Forum Home
Press F1
 
Thread ID: 27472 2002-11-23 04:53:00 Linux questions JoGiles (1898) Press F1
Post ID Timestamp Content User
100818 2002-11-23 04:53:00 Hey there.
I was hoping someone could help me with this problems.

I've been running linux for a few months now, and am just starting to transition my web development (personal programming) from Win XP to Linux. I've been setting up Apache, PHP (my preferred language) and MySQL. I've got a few problems I would love to get sorted.

1) How do I setup accounts in MySQL? i just want a default root account with an equally default password - this computer has no security problems.

2) How do I get MySQL and Apache to start on bootup? Currently I'm having to go to my apache directory and go 'apachectl start' to start Apache, and MySQL doesn't work yet because I haven't got an account.

3) Windows has *.bat files, what does Linux have, if anything, for simple repetitive commands such as connecting to cvs servers, etc? I'd love to make some small functions, and I know C if that can help in any way.

Cheers,
Jonathan Giles
JoGiles (1898)
100819 2002-11-24 02:33:00 To start programmes at boot time, have a look at the directory /etc/rc . d . There you will see a number of files . Have a look at some of them . You will see how to make apache start . . .

*nix has shell instead of a . bat utility . Most of the "executables" in /etc are shell files . Copy one of them and make some changes . The first line is a a comment which gives the path to the shell you are using . (You can do it in perl or most interpreters) . There is a "C-lie" shell ("csh") . Basically you include the commands you would issue at the command prompt . Environment variables can be called with $EnvName, and command line arguments with %1, . . . (%0 is the "command" itself) . The result of a command can be entered with `command` (note the "backwards quotes") . (When you have made the file, you have to make it executable ("chmod +x filename", and if it needs root privilege, you have to invoke it with " . /filename" (if you are in the same directory) .

I haven't used MySQL . . . There will be an FAQ for it . . . I'd guess at www . mysql . org . :D

Have a look at the Linux FAQ here . . . I've given links to some pretty goot sites .
Graham L (2)
1