View Full Version : Perfect Installation Fedora Core 4
cybereatl
7th February 2006, 00:47
Hi there,
Am trying to follow tutorial but I got stock on "Setting the hostname"
echo server.inspiron.com > /etc/hostname/bin/hostname -F /etc/hostname
shows:
bash: etc/hostname/bin/hostname: No such file or directory
Should I create a file or directory??
falko
7th February 2006, 12:42
Hi there,
Am trying to follow tutorial but I got stock on "Setting the hostname"
echo server.inspiron.com > /etc/hostname/bin/hostname -F /etc/hostname
shows:
bash: etc/hostname/bin/hostname: No such file or directory
The command must be split up in two lines:
echo server.inspiron.com > /etc/hostname
/bin/hostname -F /etc/hostname
cybereatl
7th February 2006, 15:07
Hi there, I worked split it and did ok, the next step with quota got me stuck.
I typed:
[root@server admin]# quotacheck -avugm
bash: quotacheck: command not found
[root@server admin]# quota check -avugm
quota: invalid option -- a
quota: Usage: quota [-guqvs] [-l | -Q] [-i] [-F quotaformat]
quota [-qvs] [-l | -Q] [-i] [-F quotaformat] -u username ...
quota [-qvs] [-l | -Q] [-i] [-F quotaformat] -g groupname ...
Bugs to: mvw@planets.elm.net, jack@suse.cz
[root@server admin]# quotaon
bash: quotaon: command not found
I figure that maybe quota wasn't installed but I did ti before:
[root@server admin]# yum install quota
Setting up Install Process
Setting up repositories
livna 100% |=========================| 951 B 00:00
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.0 MB 00:17
extras : ################################################## 3045/3045
Added 106 new packages, deleted 57 old in 8.13 seconds
Parsing package install arguments
Nothing to do
Like I saw that did nothing I tried:
[root@server admin]# apt-get install quota
Reading Package Lists... Done
Building Dependency Tree... Done
quota is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 224 not upgraded.
Thank you
falko
7th February 2006, 21:32
Are you logged in as root? You must be root in order to set up quota.
cybereatl
8th February 2006, 02:48
Are you logged in as root? You must be root in order to set up quota.
Actually am logged as admin, but I use:
su
password:
and I got
[root@server admin]#
Thank you
falko
8th February 2006, 10:54
Please run updatedb
locate quotacheck and post the output.
cybereatl
8th February 2006, 16:33
Please run updatedb
locate quotacheck and post the output.
Here is!
[admin@server ~]$ su
Password:
[root@server admin]# updatedb
[root@server admin]# locate quotacheck
/usr/share/man/man8/quotacheck.8.gz
/sbin/quotacheck
[root@server admin]#
Thanks
falko
8th February 2006, 18:26
quotacheck is installed. I guess your PATH variable is wrong. Please post the output of echo $PATH (you must run this as root).
cybereatl
8th February 2006, 18:55
quotacheck is installed. I guess your PATH variable is wrong. Please post the output of echo $PATH (you must run this as root).
[root@server admin]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/admin/bin
[root@server admin]#
falko
8th February 2006, 22:34
/sbin is not in your PATH. Please post the output of /root/.profile and /etc/profile.
cybereatl
8th February 2006, 22:52
here is what I got, also I have logged in as root
[root@server ~]# /root/.profile
bash: /root/.profile: No such file or directory
[root@server ~]# /etc/profile
bash: /etc/profile: Permission denied
[root@server ~]#
There is a Question!! am planning to try to deploy a web server using ISPConfig, but first am trying to meet perfect fedora core 4 setup, and I got a question about IP addresses, I got a public one but when creating eth0 and eth0:0 I got the public IP, but what about the :0 address.
I know that I need to run a firewall, and I got Astaro but I don't know how to configure it, so am stuck again there.
Thanks for advise.
falko
9th February 2006, 00:42
[root@server ~]# /etc/profile
bash: /etc/profile: Permission denied
[root@server ~]#
Try cat /etc/profile
However, you can create /root/.profile with the following content:
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
mesg n
Then log out and log in as root again and run echo $PATH again and check if /sbin is in there now.
There is a Question!! am planning to try to deploy a web server using ISPConfig, but first am trying to meet perfect fedora core 4 setup, and I got a question about IP addresses, I got a public one but when creating eth0 and eth0:0 I got the public IP, but what about the :0 address.
The part about eth0:0 is totally optional, you don't need it. It's there to show you how you do it if you hae more than one IP address.
cybereatl
9th February 2006, 14:21
I did follow your instructions and I got:
Create file .profile and paste it in /root the log out and get back in then run:
[root@morticia ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@morticia ~]# quotacheck -avugm
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
[root@morticia ~]# quotaon -avug
[root@morticia ~]#
In the mean time I was following step to have Fedora up and running and then I found on:
[root@morticia ssl]# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
that is asking me for:
[root@morticia ssl]# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
180 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
..................................++++++
.......++++++
e is 65537 (0x10001)
Enter pass phrase for smtpd.key:
and I typed the root password and then:
Verifying - Enter pass phrase for smtpd.key:
back again and typed root password.
Am doing it right or not?? later I filled out the certificate info.
Now I got this:
[root@morticia ssl]# chkconfig ipop3s on
error reading information on service ipop3s: No such file or directory
[root@morticia ssl]#
the other were just fine, just got that error
Then I went thru:
[root@morticia ssl]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
[root@morticia ssl]#
So not everything is fine!!!!
falko
9th February 2006, 21:29
I did follow your instructions and I got:
Create file .profile and paste it in /root the log out and get back in then run:
[root@morticia ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
[root@morticia ~]# quotacheck -avugm
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
[root@morticia ~]# quotaon -avug
[root@morticia ~]#
Ok, your PATH is correct now. :) But you forgot to add ,userquota,groupquota into /etc/fstab and remount the appropriate partition. Please have a look at the "Perfect Setup" tutorial for Fedora, it's shown there.
Enter pass phrase for smtpd.key:
and I typed the root password and then:
Verifying - Enter pass phrase for smtpd.key:
back again and typed root password.
Am doing it right or not?? later I filled out the certificate info.
It can be any password you want. It's not important.
Now I got this:
[root@morticia ssl]# chkconfig ipop3s on
error reading information on service ipop3s: No such file or directory
[root@morticia ssl]#
the other were just fine, just got that error[/QUOTE[
It must be chkconfig pop3s on (without i).
[QUOTE=cybereatl]Then I went thru:
[root@morticia ssl]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
[root@morticia ssl]#
So not everything is fine!!!!
Any errors in the mail log?
cybereatl
9th February 2006, 23:13
here is /etc/fstab content:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
/dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0
I did add it before!!!
Where to check żAny errors in the mail log?
Thanks
cybereatl
9th February 2006, 23:39
After a soft reboot I got quota working, please check if everything seems to be ok:
[root@morticia ssl]# touch /aquota.user
[root@morticia ssl]# touch /aquota.group
[root@morticia ssl]# chmod 600 /aquota.*
[root@morticia ssl]# mount -o remount /
[root@morticia ssl]# quotacheck -avugm
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/mapper/VolGroup00-LogVol00 [/] done
quotacheck: Checked 8855 directories and 98024 files
[root@morticia ssl]# quotaon -avug
/dev/mapper/VolGroup00-LogVol00 [/]: group quotas turned on
/dev/mapper/VolGroup00-LogVol00 [/]: user quotas turned on
[root@morticia ssl]#
But
[root@morticia ssl]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
[root@morticia ssl]#
Where I can check mail logs??
falko
10th February 2006, 00:14
After a soft reboot I got quota working
Then you had forgotten before to remount /:
mount -o remount /
please check if everything seems to be ok:
[root@morticia ssl]# touch /aquota.user
[root@morticia ssl]# touch /aquota.group
[root@morticia ssl]# chmod 600 /aquota.*
[root@morticia ssl]# mount -o remount /
[root@morticia ssl]# quotacheck -avugm
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/mapper/VolGroup00-LogVol00 [/] done
quotacheck: Checked 8855 directories and 98024 files
[root@morticia ssl]# quotaon -avug
/dev/mapper/VolGroup00-LogVol00 [/]: group quotas turned on
/dev/mapper/VolGroup00-LogVol00 [/]: user quotas turned on
[root@morticia ssl]#
That's ok.
But
[root@morticia ssl]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
[root@morticia ssl]#
Where I can check mail logs??
The mail log is in the /var/log directory.
cybereatl
10th February 2006, 01:24
Thanks again, here is content for maillog
Feb 8 16:42:43 morticia sendmail[1999]: alias database /etc/aliases rebuilt by root
Feb 8 16:42:44 morticia sendmail[1999]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Feb 8 16:42:45 morticia sendmail[2004]: starting daemon (8.13.4): SMTP+queueing@01:00:00
Feb 8 16:42:46 morticia sm-msp-queue[2009]: starting daemon (8.13.4): queueing@01:00:00
Feb 8 17:48:21 morticia sendmail[3983]: k18MmK0K003983: from=root, size=814, class=0, nrcpts=1, msgid=<200602082248.k18MmK0K003983@morticia.educandote.ne t>, relay=root@localhost
Feb 8 17:48:23 morticia sendmail[3985]: k18MmMw5003985: from=<root@morticia.educandote.net>, size=1126, class=0, nrcpts=1, msgid=<200602082248.k18MmK0K003983@morticia.educandote.ne t>, proto=ESMTP, daemon=MTA, relay=morticia.educandote.net [127.0.0.1]
Feb 8 17:48:23 morticia sendmail[3983]: k18MmK0K003983: to=root, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:02, mailer=relay, pri=30814, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k18MmMw5003985 Message accepted for delivery)
Feb 8 17:48:25 morticia sendmail[3986]: k18MmMw5003985: to=<root@morticia.educandote.net>, ctladdr=<root@morticia.educandote.net> (0/0), delay=00:00:02, xdelay=00:00:01, mailer=local, pri=31370, dsn=2.0.0, stat=Sent
Feb 9 07:48:13 morticia sendmail[2077]: alias database /etc/aliases rebuilt by root
Feb 9 07:48:13 morticia sendmail[2077]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Feb 9 07:48:14 morticia sendmail[2081]: starting daemon (8.13.4): SMTP+queueing@01:00:00
Feb 9 07:48:14 morticia sm-msp-queue[2087]: starting daemon (8.13.4): queueing@01:00:00
Feb 9 08:53:39 morticia sendmail[3803]: k19DrcAC003803: from=root, size=6276, class=0, nrcpts=1, msgid=<200602091353.k19DrcAC003803@morticia.educandote.ne t>, relay=root@localhost
Feb 9 08:53:39 morticia sendmail[3804]: k19Drdje003804: from=<root@morticia.educandote.net>, size=6588, class=0, nrcpts=1, msgid=<200602091353.k19DrcAC003803@morticia.educandote.ne t>, proto=ESMTP, daemon=MTA, relay=morticia.educandote.net [127.0.0.1]
Feb 9 08:53:39 morticia sendmail[3803]: k19DrcAC003803: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=36276, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k19Drdje003804 Message accepted for delivery)
Feb 9 08:53:40 morticia sendmail[3806]: k19Drdje003804: to=<root@morticia.educandote.net>, ctladdr=<root@morticia.educandote.net> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=local, pri=36832, dsn=2.0.0, stat=Sent
Feb 9 12:34:08 morticia postfix/postfix-script: starting the Postfix mail system
Feb 9 12:34:08 morticia postfix/master[32050]: daemon started -- version 2.2.2, configuration /etc/postfix
Feb 9 12:35:00 morticia postfix/smtpd[32083]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous"
Feb 9 12:35:01 morticia postfix/master[32050]: warning: process /usr/libexec/postfix/smtpd pid 32083 exit status 1
Feb 9 12:35:01 morticia postfix/master[32050]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb 9 16:59:20 morticia postfix/smtpd[1923]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous"
Feb 9 16:59:21 morticia postfix/master[32050]: warning: process /usr/libexec/postfix/smtpd pid 1923 exit status 1
Feb 9 16:59:21 morticia postfix/master[32050]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb 9 17:26:10 morticia postfix/postfix-script: starting the Postfix mail system
Feb 9 17:26:10 morticia postfix/master[2028]: daemon started -- version 2.2.2, configuration /etc/postfix
Feb 9 17:32:06 morticia postfix/smtpd[2702]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous"
Feb 9 17:32:07 morticia postfix/master[2028]: warning: process /usr/libexec/postfix/smtpd pid 2702 exit status 1
Feb 9 17:32:07 morticia postfix/master[2028]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb 9 17:33:39 morticia postfix/smtpd[2720]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous"
Feb 9 17:33:40 morticia postfix/master[2028]: warning: process /usr/libexec/postfix/smtpd pid 2720 exit status 1
Feb 9 17:33:40 morticia postfix/master[2028]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb 9 17:44:29 morticia postfix/smtpd[2876]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous"
Feb 9 17:44:30 morticia postfix/master[2028]: warning: process /usr/libexec/postfix/smtpd pid 2876 exit status 1
Feb 9 17:44:30 morticia postfix/master[2028]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Feb 9 19:17:59 morticia postfix/postfix-script: starting the Postfix mail system
Feb 9 19:17:59 morticia postfix/master[2028]: daemon started -- version 2.2.2, configuration /etc/postfix
falko
10th February 2006, 10:24
Feb 9 17:44:29 morticia postfix/smtpd[2876]: fatal: unknown smtpd_sasl_security_options value "noanonnymous" in "noanonnymous"
You made a typo in your /etc/postfix/main.cf. Please run
postconf -e 'smtpd_sasl_security_options = noanonymous'
and restart Postfix.
cybereatl
10th February 2006, 15:19
Thanks for your help!!
I did change error and typed:
It's works like a charm!!! now am moving on to next step thanks a lot.
Now i got some errors:
Those are in the perl.txt file!!!
It seems to be that every step got some to do!!
falko
10th February 2006, 16:33
/bin/sh: gcc: command not found
You must install gcc. Run yum search gcc and install the appropriate package(s).
cybereatl
10th February 2006, 18:15
I did yum intall gcc and went ok,
I runned install HTML::Parser and got
/usr/bin/make -- OK
then I ran install DB_File
and got an error.txt
I runned install Digest::SHA1
Digest is up to date (2.11)
I runned install Net:: DNS
Net:: DNS is up to date (0.55)
3 of 4, I think that almost done!!!
There is any place on where you can download "Postfix With SMTP-AUTH And TLS" files without has to be online, my home DSL is not too fast, but at my office is super.. any reference???
falko
11th February 2006, 14:13
version.c:30:16: error: db.h: No such file or directory
make: *** [version.o] Error 1
You must install the db and db-devel packages for Fedora Core 4. I don't know their exact names, so you must search them with yum search db and yum search db-devel
Also have a look at these threads:
http://www.howtoforge.com/forums/showthread.php?t=699
http://www.howtoforge.com/forums/showthread.php?t=449
falko
11th February 2006, 14:15
Just found this thread: http://www.howtoforge.com/forums/showthread.php?t=2339
The name of the package is db4-devel, so you can install it by running
apt-get install db4-devel or
yum install db4-devel :)
cybereatl
11th February 2006, 15:12
Cool, thanks Falko!!!
When you mention ....asked if the default directory /home/www should be the directory where ISPConfig will create websites in. Answer n and enter /var/www as the home directory for websites.
You said that is to run CGI scripts under suExec, what is suExec and present any problem to work with joomla?? or is only to deploy cgi-bin access sites??
Thanks, now moving on to ISPConfig forums, thanks for the help Falko
till
11th February 2006, 19:07
You said that is to run CGI scripts under suExec, what is suExec and present any problem to work with joomla?? or is only to deploy cgi-bin access sites??
SuExec is for running CGI-Scripts under the website admin user and group instead of the user of the apache webserver (e.g. www-run).
On the first sight, it affects only cgi-scripts that run in the cgi-bin dir. But you can also solve problems with CMS systems like joomla that run with PHP and need write access to some directorys. If you install PHP as PHP-CGI instead of mod_php and have suexec enabled, you can run joomly without having to chmod some directorys wit 777 permissions or chowning them to the apache user.
Falko has just written a howto that explains how you can run PHP4 as CGI:
http://www.howtoforge.com/apache2_with_php5_and_php4
jsteurer
6th March 2006, 04:00
I used "The Perfect Setup - Fedora Core 4 " tut and when I place my Joomla 1.008 installation files into my /var/www/http/my dir and I go to http:// my IP I get php code displayed. It almost seems that I don’t have the PHP installed, but I wen through all of the steps and received no errors.
I didn’t install the ISPconfig , but I installed webmin 1.26.
Any suggestions at all?
till
6th March 2006, 08:05
The guide prepares the setup of ISPCOnfig, therefor you had to disable PHP beacuse ISPConfig configures PHP on a per website basis.
Have a look at the steps in the howto where you disabled some settings in the apache files and undo these settings. Then restart apache.
cybereatl
8th March 2006, 03:44
How is your joomla instalation going, am hosting 5 sites runnig joomla using ISPConfig and am having some issues with language packages also with some live support software but am presenting permissions problems and I couldn't get a clean installation of joomla.
Let me know how is working for you, am using fedora core 4 and joomla 1.0.8
Cheers :)
jsteurer
8th March 2006, 04:13
Thanks all for the help and now it's finially working...
cybereatl - I'm using Joomla 1.08 as well and I went throught the installation with no problem once I was able to view the page. Now I have to add content.
cybereatl
8th March 2006, 04:42
If you want to share more experiences about joomla, you can visit my forum at www.educandote.com/forums am looking for live support modules for joomla, right now am using hcl but running joomla present some errors.
regards,
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.