+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
*nix Thread, nix noob needs help in Technical; Never used Linux before I'm trying to set up a test server using fedora 5 so I can install moodle ...
  1. #1
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    360
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    nix noob needs help

    Never used Linux before

    I'm trying to set up a test server using fedora 5 so I can install moodle for the science department to try out.

    I've installed Fedora ok (text mode) and am now trying to install MySQL, Apache & PHP but have become stuck at the first hurdle.

    I'm using the CD from SAMs Teach yourself PHP,Apache & MySQL as the SQL version is newer and the instructions are usually easy to follow.

    Everything is fine until I get to the part of finishing the installation and starting the MySQL server.

    The book tells me to type in

    scripts/mysql_install_db --user=mysql

    but all I get is 'No such file or directory' even though I can see it in the scripts directory.

    I've tried running it directly from the scripts folder but get 'command not found'

    Obviously the book is out of sync with fedora 5, so can anyone throw some light on this and what I should try?

  2. #2

    Join Date
    Oct 2006
    Posts
    94
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: nix noob needs help

    I would recommend not following the directions in the book for setting up MySQL on Fedora as they are probably out of date and don't tie in with the subtle differences that Fedora has from other *generic* Linux distros.

    Instead, have a look at the guide I found here. I remember using this guide a while back when I was experimenting with Fedora.

    http://www.stanton-finley.net/fedora...ion_notes.html

    I eventually found Fedora to be too much like redhat and a bit of a pain to configure with minimal configuration tools.

    Ubuntu on the other hand has bridged this gap nicely. I would really recommend that you dump fedora for ubuntu if you are a Noob to Linux as its far far easier to setup and is better supported by a mamoth amount of guides and info on the net. Either way it's your choice. Let us know how you get on!

  3. #3
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    360
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: nix noob needs help

    Thanks for the link - looks useful.

    I've tried Mandriva but had the same problem as above so using fedora as that is what the book refers to. We will probably use ubuntu eventually but I thought it may be easier getting to grips with everthing if the book & OS spoke the same language

  4. #4
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,009
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: nix noob needs help

    Get the Ubuntu Server ISO. On the opening menu it gives you the choice of a lamp install. Easy peasy.

  5. #5
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    360
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: nix noob needs help

    Quote Originally Posted by ChrisH
    Get the Ubuntu Server ISO. On the opening menu it gives you the choice of a lamp install. Easy peasy.
    I know but as I'm learning everything from scratch I wanted to do it all manually. I could have installed MySQL the same way with fedora. At this rate I may give in and do it that way or as suggested and use Ubuntu.

    I've already used XAMPP to install moodle on a Win XP laptop which works well but we are trying to keep costs down by using Linux.

  6. #6

    Join Date
    Oct 2006
    Posts
    94
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: nix noob needs help

    If you eventually switch over to Ubuntu (and you will eventually as Fedora will annoy the pants off you!) Check out this guide for Ubuntu (current version Dapper) as it has extensive instructions on doing just about everything with it in the manual configuration sense:

    It's worth checking out this link:
    http://ubuntuguide.org/wiki/Dapper

    I have used this to manually set up a LAMP server with all the trimmings, takes a bit of effort but is fairly straightforward with the guide.

  7. #7


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,473
    Thank Post
    866
    Thanked 848 Times in 670 Posts
    Rep Power
    196

    Re: nix noob needs help

    alan, if by "manually" you mean ./configure;make;make install typ installing, you're asking for trouble. I personally have grave reservations about installing anything that's not covered by my chosen distro's package manager - as it's a serious security flaw. You want to be able to easily keep everything up-to-date, so installing mysql should be as easy as:
    yum install mysql
    or
    apt-get install mysql
    or
    urpmi mysql
    (depending on your particular poison)

    Also, ChrisH has a point - ubuntu is good. You can learn about package management later, right now, I am figuring you have enough on your plate!

    Good luck!

  8. #8
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,009
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: nix noob needs help

    Quote Originally Posted by tom_newton
    Also, ChrisH has a point - ubuntu is good. You can learn about package management later, right now, I am figuring you have enough on your plate!
    Tis good advice similar to how I learned. and only after I was comfortable with packages and really needed a new version of something I moved onto installing from source. The biggest thing you will come accross is the path differences different distros like Fedora and Debian based ones.

  9. #9

    Join Date
    Oct 2006
    Posts
    94
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: nix noob needs help

    Thats a good point you raised there tom, compiling is best avoided if you can get a pre-made binary from a trusted repository. It also saves a lot of hassle trying to resolve dependencies. (i.e attempting to locate and install mass load of libraries and binaries needed for compilation).

    You should only compile if there's a specific feature you want in a program that doesnt exist in any premade binary anywhere or the software you want to install only exists in source.

    Although it looks like our friend Alan does have his heart set on FedoraCore5 we will however do our best to convert him to Ubuntu! wmuhahahaha

  10. #10


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: nix noob needs help

    The book tells me to type in

    scripts/mysql_install_db --user=mysql

    but all I get is 'No such file or directory' even though I can see it in the scripts directory.
    make sure you are in the scripts directory

    Code:
    cd /path/to/scripts/
    make the mysql_install_db file executable
    Code:
    chmod u+x ./mysql_install_db
    run the command

    Code:
    mysql_install_db --user=mysql

  11. #11

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: nix noob needs help

    Conventional wisdom with production systems is that you compile and install application XYZ yourself. Chances are you'll need some compile time options that your package maintainer didn't choose or you'll need a newer version of the software. This is exactly what I have to do with Dansguardian on my Squid boxes.

    But by all means, let your package manager keep the underlying system up to date.

  12. #12


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,473
    Thank Post
    866
    Thanked 848 Times in 670 Posts
    Rep Power
    196

    Re: nix noob needs help

    @Geoff, depends on the conventinal wisdom, and, to some extent, the server. If it's a server for a *very* particular job, then maybe. If its just a LAMP stack to run www based application X then:
    1. You are highly, highly unlikely to find anything compiled out by default that you need. Bear in mind that apache is very modular.
    2. Performance gains by compiling for SSE2 or whatever are negligible, and make even less difference to End User Experience
    3. Managed packages are far easier to keep up to date
    4. A compiler is a great thing to have on somebody else's server (that you're trying to root!) not your own

    I take your point that sometimes you need a newer version, but this is mainly a debian thing as their pkgs tend to be a bit behind the curve. With Dansguardian, yeah, mostly you'll end up rolling your own, the intrinsic problems involved are why most people using dansguardian eventually go for the SmoothWall variant, just as most people using linux use a distro rather than LFS.

  13. #13
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    360
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: nix noob needs help

    Quote Originally Posted by CyberNerd
    make the mysql_install_db file executable
    Code:
    chmod u+x ./mysql_install_db
    run the command

    Code:
    mysql_install_db --user=mysql
    chmod seemed to work (after including the .sh ext) but the following just said 'command not found'

    Going to start from scratch in the morning with a fresh head - if that still fails I'll load the apps with the distro. (Whichever that one will be )

  14. #14
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,009
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: nix noob needs help

    Did you do:

    Code:
    mysql_install_db --user=mysql
    or

    Code:
    ./mysql_install_db --user=mysql
    If its a script you will probably need ./

  15. #15

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: nix noob needs help

    1. You are highly, highly unlikely to find anything compiled out by default that you need. Bear in mind that apache is very modular.
    Most distribution installs of apache2 have no apxs command for example

    Performance gains by compiling for SSE2 or whatever are negligible, and make even less difference to End User Experience
    Compare the speed of SSL with and without SSE2.

    Managed packages are far easier to keep up to date
    When I compile something I need thats not in the standard distro package archive I pack it into a deb. I then run my own package archive locally (really, it's not as scary as it sounds). That way I get the benifit of apt-get without sacrificing the ability to run my own versions of the software I need.

    A compiler is a great thing to have on somebody else's server (that you're trying to root!) not your own
    Obviously having compile tools on your server is a bad idea. Thats why you should have a Linux desktop box for doing all your 'development' work.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Class Server noob questions
    By dagza in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 31st October 2006, 08:26 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •