LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2004, 11:43 AM   #31
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31

heh... well, if you figure it out, please share! I think it may help others who have the same problem.

Glad to hear it works for you now.
 
Old 08-26-2004, 01:20 PM   #32
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
i think it was the fact that i wasnt using the /var/www/cgi-bin/ but when i changed that it still didnt work and i was very dissapoinded but i had to create a new .htpasswd file. then i was reading throught the guide and i remembered to chmod the new .htpasswd when i did it worked.
 
Old 08-26-2004, 02:46 PM   #33
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
i think i have done something really bad to php! how would i uninstall it so i can start again ?
 
Old 08-26-2004, 02:50 PM   #34
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
to remove it...

rpm -e php

You'll probably get a bunch of dependancy errors, so in that case....

rpm -e php --nodeps

which will remove it no matter what... the problem is, you may break some other stuff in the process, so you'll HAVE to install it again to fix the stuff that is broken.

After that, just do ...

yum install php

and it'll be reinstalled from your yum source.
 
Old 08-26-2004, 03:05 PM   #35
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
ok, for 1 i didnt install it using rpm, i did it from source. and i dont have yum installed either
 
Old 08-26-2004, 03:18 PM   #36
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
In that case, don't uninstall it.... just install another copy right over the top of what you have now.

If you install by source, you're on your own... I don't know all of the little quirks involved with installing a major package like php. I only use RPM for installing on RH/Fedora... especially for big packages like php. I really only install from source with smaller packages where I have some really good documentation or howto's so I can fully understand what I'm doing. Otherwise I simply trust RPMs to handle all the details.
 
Old 08-26-2004, 03:40 PM   #37
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
lol, i do find source quite confusing but i never really add options i just do './configure' 'make' & 'make install' but this time when i installed php i added an argument that i saw somewhere and it didnt work from when i first installed it.
how do i get yum ?
 
Old 08-26-2004, 03:45 PM   #38
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
If you have up2date, maybe use that. Try doing...

up2date -l

That's a lowercase L. If it works, you can do...

up2date -di php

Check the man pages for those for more explanation.

If you dont want to mess with that, or if it doesn't work, you can get an RPM from www.rpmseek.com for yum. Just save it to your machine and do...

rpm -Uvh yum.x.x.x.rpm

You may want to check around the forums for other posts I have made... there are explanations on how to set your yum repositories to something better than the defaults. The defaults they give you sometimes work, sometimes don't.
 
Old 08-27-2004, 09:03 AM   #39
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
ive got 1 little question.

Quote:
vi /var/qmail/supervise/qmail-pop3d/run Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com.

would i set that to oasis(my hostname) or oasis.snerkel.org ?
what is this setting used for ?
 
Old 08-27-2004, 11:45 AM   #40
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
This is one of those I was telling you about... Youve got to use the same domain you've been using for the configure line we talked about earlier, and also for this too. So in the end, I think you'll have a mail account for you@oasis.snerkel.org and it will forward all your mail to you@snerkel.org.
 
Old 08-27-2004, 05:40 PM   #41
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
can you help with this ? im trying to test Courierpassd.

Code:
[root@oasis xinetd.d]# telnet localhost 106
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
how do i allow port 106 ?
 
Old 08-27-2004, 08:19 PM   #42
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
Quote:
<VirtualHost 1.2.3.4:80>
ServerName mail.mydomain.com
ServerAlias mail.*
ServerAdmin postmaster@mydomain.com
DocumentRoot /var/www/webmail
</VirtualHost>

<VirtualHost 1.2.3.4:80> - This indicates I'm setting up my mail interface as a virtual host, rather than IP based. Obviously, you're going to want to replace 1.2.3.4 with the IP address of your web server. Additionally, what you have here may vary from server to server and is dependent on how you have your Apache configured. Be cautious!
i dont get that! what ip am i ment to change 1.2.3.4 to!? my internal or external ip ? i set it to my internal but then i thought that doesnt affect anyone outside my network, BUT ive get a dynaminc ip so can i set it to my domainname ? or can i set it to mail.domain.com ? so that when people go to mail.snerkel.org that will appear.
do i need to setup a virtual host to run SquirrelMail ?

also im not reciving or being able to send mail is there any way to check things ?
 
Old 08-27-2004, 09:25 PM   #43
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
>> how do i allow port 106 ?

Start by checking to see if you have a firewall blocking it. Run...

iptables -L

If you get just a few lines of output, copy and paste them in here. If you get a whole bunch of output it means you have some firewall rules somewhere in there blocking that port. In that case, pipe it to a filename, with...

iptables -L > /root/iptables.output

So you can review the file and see what rules are stopping your port from being open.
 
Old 08-27-2004, 09:42 PM   #44
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
>> what ip am i ment to change 1.2.3.4 to!?

If you're behind a router, you want to change that to 192.168.x.x (or whatever it happes to be). Also, if that's the case, then you probably need to open a port on your router to allow 106 to be accessible.

If your server is exposed to the open internet, then change the IP to the external IP given to you by your provider. In that case, you probably have iptables firewalling your 106, so maybe forget what I said earlier.

Also, I wanted to point out about dude's tutorial...

Quote:
Additionally, what you have here may vary from server to server and is dependent on how you have your Apache configured. Be cautious!
As George Carlin says... "Spooky language!" What he is saying here is not very useful except to scare people who are unfamiliar with apache... instead he should put something like "See here for more information... http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Sorry, I am just nit picking now. I digress.
 
Old 08-28-2004, 09:53 AM   #45
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
Code:
[root@oasis snerkel.org]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Lokkit-0-50-INPUT  all  --  anywhere             anywhere
 
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Lokkit-0-50-INPUT  all  --  anywhere             anywhere
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Chain RH-Lokkit-0-50-INPUT (2 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:courierpassd flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:smtp flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ftp flags:SYN,RST,ACK/SYN
ACCEPT     udp  --  anywhere             anywhere           udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT     udp  --  anywhere             anywhere           udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT     all  --  anywhere        
     anywhere
ACCEPT     all  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere           tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     tcp  --  anywhere             anywhere           tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere           udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere           udp dpt:nfs reject-with icmp-port-unreachable
REJECT     tcp  --  anywhere             anywhere           tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     tcp  --  anywhere             anywhere           tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
im not going to bother setting up a virtual server for squiralmail, do i need 1 for it ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a mail server. scjvsTP Linux - Networking 1 10-03-2005 02:24 PM
[SOLVED] Setting up a mail server? ziphem Linux - Newbie 2 11-27-2004 02:09 AM
setting up mail server fayax1 Linux - General 1 11-02-2004 05:27 PM
Setting a mail server. hubergeek Linux - Networking 0 04-26-2002 12:38 PM
Setting up a mail server linuxguruwannabe Linux - Networking 13 08-07-2000 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration