Installing A LAMP System With Fedora Core 6 - Page 4

Discussion in 'HOWTO-Related Questions' started by LAEAGLE, Feb 18, 2007.

  1. LAEAGLE

    LAEAGLE New Member

    Installing A LAMP System With Fedora Core 6 - Page 4 need to move to quota?

    when i get here i get this? i also get this when i chkconfig step 7 and 8 what did i do/notdo ?
    touch /aquota.user /aquota.group
    chmod 600 /aquota.*
    mount -o remount /
    quotacheck -avugm
    bash: quotacheck: command not found
    cd /
    quotacheck -avugm
    bash: quotacheck: command not found
    chkconfig --levels 235 named on
    bash: chkconfig: command not found

    i am loged as root and the files in sbin ?

    /sbin/quotacheck -avugm
    quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
     
    Last edited: Feb 19, 2007
  2. LAEAGLE

    LAEAGLE New Member

    here is more info

    [[email protected] testme3]# /sbin/quotacheck -avugm
    quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
    [[email protected] testme3]# /sbin/quotacheck -a
    [[email protected] testme3]# /sbin/quotacheck -av
    quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
    [[email protected] testme3]# /sbin/quotacheck -augm
    [[email protected] testme3]# /sbin/quotacheck -v
    Bad number of arguments.
    Utility for checking and repairing quota files.
    quotacheck [-gucfinvdmMR] [-F <quota-format>] filesystem|-a
    Bugs to [email protected], [email protected]
    [[email protected] testme3]# /sbin/chkconfig --levels 235 named on
    [[email protected] testme3]# /etc/init.d/named start
    Starting named: [ OK ]
    [[email protected] testme3]# yum install mysql mysql-devel mysql-server
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    Nothing to do
    [[email protected] testme3]# /sbin/chkconfig --levels 235 mysqld on
    [[email protected] testme3]# /etc/init.d/named start
    Starting named: named: already running [FAILED]
    [[email protected] testme3]# chkconfig --levels 235 mysqld on
    bash: chkconfig: command not found
    [[email protected] testme3]# /sbin/chkconfig --levels 235 mysqld on
    [[email protected] testme3]# /etc/init.d/mysqld start
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    [[email protected] testme3]# hostname -f
    hostname: Unknown host
    [[email protected] testme3]# hostname
    laeagle.org.kidco1
    [[email protected] testme3]# vi /etc/hosts
    [[email protected] testme3]# /etc/init.d/network restart
    Shutting down interface eth0: [ OK ]
    Shutting down loopback interface: [ OK ]
    Bringing up loopback interface: [ OK ]
    Bringing up interface eth0: [ OK ]
    [[email protected] testme3]# hostname
    laeagle.org.kidco1
    [[email protected] testme3]# hostname -f
    hostname: Unknown host
    [[email protected] testme3]# /usr/bin/resolveip
    /usr/bin/resolveip Ver 2.3, for redhat-linux-gnu (i686)
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL license

    Get hostname based on IP-address or IP-address based on hostname.

    Usage: /usr/bin/resolveip [OPTIONS] hostname or IP-address
    -?, --help Displays this help and exits.
    -I, --info Synonym for --help.
    -s, --silent Be more silent.
    -V, --version Displays version information and exits.

    Variables (--variable-name=value)
    and boolean options {FALSE|TRUE} Value (after reading options)
    --------------------------------- -----------------------------
    silent FALSE
    [[email protected] testme3]# /usr/bin/resolveip -i
    /usr/bin/resolveip: unknown option '-i'
    [[email protected] testme3]# /usr/bin/resolveip -I
    /usr/bin/resolveip Ver 2.3, for redhat-linux-gnu (i686)
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL license

    Get hostname based on IP-address or IP-address based on hostname.

    Usage: /usr/bin/resolveip [OPTIONS] hostname or IP-address
    -?, --help Displays this help and exits.
    -I, --info Synonym for --help.
    -s, --silent Be more silent.
    -V, --version Displays version information and exits.

    Variables (--variable-name=value)
    and boolean options {FALSE|TRUE} Value (after reading options)
    --------------------------------- -----------------------------
    silent FALSE
    [[email protected] testme3]# /usr/bin/resolveip 192.168.3.100
    /usr/bin/resolveip: Unable to find hostname for '192.168.3.100'
    [[email protected] testme3]# /usr/bin/resolveip 192.168.3.101
    /usr/bin/resolveip: Unable to find hostname for '192.168.3.101'
    [[email protected] testme3]# vi /etc/sysconfig/network-scripts/ifcfg-eth0:0
    [[email protected] testme3]# /etc/init.d/network restart
    Shutting down interface eth0: [ OK ]
    Shutting down loopback interface: [ OK ]
    Bringing up loopback interface: [ OK ]
    Bringing up interface eth0: [ OK ]
    [[email protected] testme3]# iptables -L
    bash: iptables: command not found
    [[email protected] testme3]# //sbin/iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    [[email protected] testme3]# /etc/init.d/mysqld start
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    [[email protected] testme3]# /etc/init.d/mysqld start --force
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    [[email protected] testme3]# /etc/init.d/mysqld
    Usage: /etc/init.d/mysqld {start|stop|status|condrestart|restart}
    [[email protected] testme3]# /etc/init.d/mysqld status
    mysqld is stopped
    [[email protected] testme3]# /etc/init.d/mysqld restart
    Stopping MySQL: [FAILED]
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    [root@
     
  3. LAEAGLE

    LAEAGLE New Member

    try this

    Please run the "quotaoff -a" before "quotacheck -avugm"
    looks liked it worked?
    [[email protected] testme3]# quotaoff -a
    bash: quotaoff: command not found
    [[email protected] testme3]# /sbin/quotaoff -a
    [[email protected] testme3]#

    dont forget sbin ?
    [[email protected] testme3]# quotaoff -a
    bash: quotaoff: command not found
    [[email protected] testme3]# /sbin/quotaoff -a
    [[email protected] testme3]# quotacheck -avugm
    bash: quotacheck: command not found
    [[email protected] testme3]# /sbin/quotacheck -avugm
    quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
    [[email protected] testme3]# /sbin/quotacheck -augm
    [[email protected] testme3]# take the v out?
     
    Last edited: Feb 19, 2007
  4. falko

    falko Super Moderator ISPConfig Developer

  5. LAEAGLE

    LAEAGLE New Member

    Doz This Help

    [[email protected] testme3]# updatedb
    [[email protected] testme3]# locate quotacheck
    /sbin/quotacheck
    /usr/share/man/man8/quotacheck.8.gz
    [[email protected] testme3]# locate quotaon
    /sbin/quotaon
    /usr/share/man/man8/quotaon.8.gz
    [[email protected] testme3]# echo $PATH
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/sbin:/home/testme3/bin
    SBIN IS HERE?
    [[email protected] testme3]# vi /etc/profile
    [[email protected] testme3]# you had profiles
    bash: you: command not found
    [[email protected] testme3]# the s TOOK THE S OUT IS THAT OK?
    bash: the: command not found
    [[email protected] testme3]# # /etc/profile
    [[email protected] testme3]#
    [[email protected] testme3]# # System wide environment and startup programs, for login setup
    [[email protected] testme3]# # Functions and aliases go in /etc/bashrc
    [[email protected] testme3]#
    [[email protected] testme3]# pathmunge () {
    > if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
    > if [ "$2" = "after" ] ; then
    > PATH=$PATH:$1
    > else
    > PATH=$1:$PATH
    > fi
    > fi
    > }
    [[email protected] testme3]#
    [[email protected] testme3]# # ksh workaround
    [[email protected] testme3]# if [ -z "$EUID" -a -x /usr/bin/id ]; then
    > EUID=`id -u`
    > UID=`id -ru`
    > fi
    [[email protected] testme3]#
    [[email protected] testme3]# # Path manipulation
    [[email protected] testme3]# if [ "$EUID" = "0" ]; then
    > pathmunge /sbin
    > pathmunge /usr/sbin
    > pathmunge /usr/local/sbin
    > fi
    [[email protected] testme3]#
    [[email protected] testme3]# # No core files by default
    [[email protected] testme3]# ulimit -S -c 0 > /dev/null 2>&1
    [[email protected] testme3]#
    [[email protected] testme3]# if [ -x /usr/bin/id ]; then
    > USER="`id -un`"
    > LOGNAME=$USER
    > MAIL="/var/spool/mail/$USER"
    > fi
    [[email protected] testme3]#
    [[email protected] testme3]# HOSTNAME=`/bin/hostname`
    [[email protected] testme3]# HISTSIZE=1000
    [[email protected] testme3]#
    [[email protected] testme3]# if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    > INPUTRC=/etc/inputrc
    > fi
    [[email protected] testme3]# PATH=${PATH}:/sbin
    [[email protected] testme3]# export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
    [[email protected] testme3]#
    [[email protected] testme3]# for i in /etc/profile.d/*.sh ; do
    > if [ -r "$i" ]; then
    > . $i
    > fi
    > done
    [[email protected] testme3]#
    [[email protected] testme3]# unset i
    [[email protected] testme3]# unset pathmunge
    [[email protected] testme3]# which quotacheck
    /sbin/quotacheck
    You have new mail in /var/spool/mail/root WTF ???
    LOOK BACK @ IP STUFF LOCAL ETC ???
    MAYBE I MESSED UP THERE?
    NOT SHOUTING DONT KNOW HOW TO HILITE YET DOS 25YRS A GO DID NOT DO THIS WE R OFF BY 12HRS I NEED TOO PM U FOR A PROJECT ?
    SCAN THE OTHER STUFF HERE U WILL SEE OTHER ERRORS POST 2,3 ETC
     
  6. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Don't know what you're trying to do, but if the previous post is a real copy of the output on your screen, your system is really hosed and I advise you to wipe it out and re-install. Your output is scattered with parts of spam emails and other garbage. If it's real output, you're probably hacked.

    If not, please post clean and proper output so we can try to help you.
     
  7. LAEAGLE

    LAEAGLE New Member

    hi
    thanks for your help
    i ran etc/profile by accdent may have made toast out of system? was trying to print it for u.

    if i am posting wrong let me know :)

    1st problem was my file path needed sbin in it i know how to add it in dos but not in linux falco showed me a link on how to add so i vi the file but could not make it work so as long as i use /sbin things were going ok. i'm sending what i'm doing so you can see what i'm getting. sorry for the long letter.:D

    so as i move on i got this

    [email protected] testme3]# /sbin/quotacheck -avugm
    quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
    [[email protected] testme3]# /sbin/quotacheck -a
    [[email protected] testme3]# /sbin/quotacheck -av
    quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
    [[email protected] testme3]# /sbin/quotacheck -augm
    [[email protected] testme3]# /sbin/quotacheck -v
    Bad number of arguments.
    Utility for checking and repairing quota files.
    quotacheck [-gucfinvdmMR] [-F <quota-format>] filesystem|-a
    Bugs to [email protected], [email protected]
    [[email protected] testme3]# /sbin/chkconfig --levels 235 named on
    [[email protected] testme3]# /etc/init.d/named start
    Starting named: [ OK ]

    as long as i leave out the v it looks like it goes thru can't find what v is for

    can this be causing the problem? or


    [[email protected] testme3]# /sbin/chkconfig --levels 235 mysqld on
    [[email protected] testme3]# /etc/init.d/mysqld start
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    *********************************************************


    [email protected] testme3]# hostname -f
    hostname: Unknown host
    [[email protected] testme3]# hostname
    laeagle.org.kidco1
    [[email protected] testme3]# vi /etc/hosts
    ----------------------------------------------------------------
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.3.100 kidco1.laeagle.org kidco1

    ::1 kidco1.laeagle.org kidco1 localhost.localdomain localhost
    -----------------------------------------------------------------
    im useing dns for my isp so i can work on internet eth0:0 is 192.168.3.101
    ---------------------------------------------------------------------

    [[email protected] testme3]# /etc/init.d/network restart
    Shutting down interface eth0: [ OK ]
    Shutting down loopback interface: [ OK ]
    Bringing up loopback interface: [ OK ]
    Bringing up interface eth0: [ OK ]
    [[email protected] testme3]# hostname
    laeagle.org.kidco1
    [[email protected] testme3]# hostname -f
    hostname: Unknown host
    [[email protected] testme3]# /usr/bin/resolveip
    /usr/bin/resolveip Ver 2.3, for redhat-linux-gnu (i686)
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL license

    Get hostname based on IP-address or IP-address based on hostname.

    Usage: /usr/bin/resolveip [OPTIONS] hostname or IP-address
    -?, --help Displays this help and exits.
    -I, --info Synonym for --help.
    -s, --silent Be more silent.
    -V, --version Displays version information and exits.

    Variables (--variable-name=value)
    and boolean options {FALSE|TRUE} Value (after reading options)
    --------------------------------- -----------------------------
    silent FALSE
    [[email protected] testme3]# /usr/bin/resolveip -i
    /usr/bin/resolveip: unknown option '-i'
    [root@laeagle testme3]# /usr/bin/resolveip -I
    /usr/bin/resolveip Ver 2.3, for redhat-linux-gnu (i686)
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL license

    Get hostname based on IP-address or IP-address based on hostname.

    Usage: /usr/bin/resolveip [OPTIONS] hostname or IP-address
    -?, --help Displays this help and exits.
    -I, --info Synonym for --help.
    -s, --silent Be more silent.
    -V, --version Displays version information and exits.

    Variables (--variable-name=value)
    and boolean options {FALSE|TRUE} Value (after reading options)
    --------------------------------- -----------------------------
    silent FALSE
    [root@laeagle testme3]# /usr/bin/resolveip 192.168.3.100
    /usr/bin/resolveip: Unable to find hostname for '192.168.3.100'
    [root@laeagle testme3]# /usr/bin/resolveip 192.168.3.101
    /usr/bin/resolveip: Unable to find hostname for '192.168.3.101'
    [root@laeagle testme3]# vi /etc/sysconfig/network-scripts/ifcfg-eth0:0
    [root@laeagle testme3]# /etc/init.d/network restart
    Shutting down interface eth0: [ OK ]
    Shutting down loopback interface: [ OK ]
    Bringing up loopback interface: [ OK ]
    Bringing up interface eth0: [ OK ]
    [root@laeagle testme3]# iptables -L
    bash: iptables: command not found
    [root@laeagle testme3]# //sbin/iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    [root@laeagle testme3]# /etc/init.d/mysqld start
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    [root@laeagle testme3]# /etc/init.d/mysqld start --force
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    [root@laeagle testme3]# /etc/init.d/mysqld
    Usage: /etc/init.d/mysqld {start|stop|status|condrestart|restart}
    [root@laeagle testme3]# /etc/init.d/mysqld status
    mysqld is stopped
    [root@laeagle testme3]# /etc/init.d/mysqld restart
    Stopping MySQL: [FAILED]
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]
    [root@

    thanks for looking at this long stuff
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Did you modify /etc/fstab, as shown in the tutorial?
     
  9. LAEAGLE

    LAEAGLE New Member

    yes

    yes i did so what i have done now is reinstalled ubuntu desktop with vmware server. so far so good. then will try add on for fordora in vserver.

    is this set up write i'm have the same hostname and hostname -f problem?

    vi /etc/hosts
    ----------------------------------------------------------------
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.3.100 kidco1.laeagle.org kidco1

    ::1 kidco1.laeagle.org kidco1 localhost.localdomain localhost
    -----------------------------------------------------------------
    im useing dns for my isp so i can work on internet eth0:0 is 192.168.3.101
    ---------------------------------------------------------------------
    if u need more look back at other

    #hostname
    laeagle.org.kidco1
    #hostname -f
    hostname: Unknown host


    thanks for your help
     
  10. falko

    falko Super Moderator ISPConfig Developer

    I'm sorry, but I don't understand the question?
     
  11. LAEAGLE

    LAEAGLE New Member

    starting over

    you asked if i set up fstab and i was saying yes i did. so i took off fadora.
    and installed ubuntu desktop with vmware server. so far so good. then will try adding on for fordora in a vserver.

    when i tried to run this i got an error.
    i have restarted the system 3 times

    /etc/init.d/mysqld start
    Initializing MySQL database: Neither host 'laeagle.org.kidco1' nor 'localhost' could be looked up with
    /usr/bin/resolveip
    Please configure the 'hostname' command to return a correct hostname.
    If you want to solve this at a later stage, restart this script with
    the --force option
    [FAILED]


    is the file set correctly?
    is this set up write i'm not getting same output in hostname and hostname -f problem?

    vi /etc/hosts
    ----------------------------------------------------------------
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.3.100 kidco1.laeagle.org kidco1

    ::1 kidco1.laeagle.org kidco1 localhost.localdomain localhost
    -----------------------------------------------------------------
    im useing dns for my isp so i can work on internet
    ---------------------------------------------------------------------
    if u need more look back at other post you can see step by step

    #hostname
    laeagle.org.kidco1
    #hostname -f
    hostname: Unknown host

    are they supposted to match?

    thanks for your help
     
    Last edited: Feb 23, 2007
  12. falko

    falko Super Moderator ISPConfig Developer

    Please comment out ::1 kidco1.laeagle.org kidco1 localhost.localdomain localhost in /etc/hosts.
    Then run
    Code:
    echo laeagle.org.kidco1 > /etc/hostname
    and reboot the system.
     

Share This Page