LinuxQuestions.org
Help answer threads with 0 replies.
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 03-30-2003, 05:01 PM   #1
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Running SquirrelMail


Hi, im using redhat 7.3 and i installed Squirrel Mail and my Apache server is up and running. However, looking at the homepage of Squirrel Mail i did this:

"ln -s /usr/share/squirrelmail /var/www/html/webmail"

It says that if i type "http://yourdomain/webmail" , i should be able to see it but i can't. When i try, i get this:

"Cannot locate remote server"

I know you need php and imap installed and i have these versions:
asp2php-gtk-0.76.2-1
asp2php-0.76.2-1
php-4.1.2-7
php-ldap-4.1.2-7
php-imap-4.1.2-7
imap-2001a-1

I need help accessing that login screen....any help is appreciated..thank u

-twantrd
 
Old 03-30-2003, 05:28 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
It looks like apache can't see yourdomain... Is your DNS and apache setup properly?
 
Old 03-30-2003, 05:48 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Yea, my DNS and apache is setup properly. I can access my website with no problem..but when i try adding the "/webmail" after my homepage that's when it can't see it. Oh btw, im using dyndns. Could that cause a problem? THank you....


-twantrd
 
Old 03-30-2003, 06:05 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Is your documentroot actually pointing to /var/www/html?
 
Old 03-31-2003, 03:43 AM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
im a newbie sorrie . How can i check if my documentroot is pointing to /var/www/html? Thank you....



-twantrd
 
Old 03-31-2003, 08:30 AM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
'grep DocumentRoot /etc/apache/httpd.conf'
 
Old 03-31-2003, 09:14 AM   #7
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
If you can see your web site then your DNS and dyndns service are probably all set up OK. I use a similar service to dyndns and have no problems getting to webmail.

You could create a simple page called test.php with the following text:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "<p>Hello World</p>"; ?>
</body>
</html>

save this file in /var/www/html

Now point your web browser to:

http://localhost/test.php

If you can see Hello World then php is working OK, if you can't see Hello World then I'd guess that your httpd.conf file may have some stuff missing... more on that in a minute.

I think httpd.conf is stored in /etc/httpd/conf if not do a search for it:

find / -name httpd.conf -print

Once you've located it open it using your choice of editor. Here are some of the php lines that I have in mine:

DirectoryIndex index.html index.html.var index.php index.shtml

(note that index.php is added)

AddType application/x-httpd-php .php

You may also see:

Include conf.d/php.conf

You need to make sure that lines in httpd.conf are not repeated in php.conf e.g AddType application/x-httpd-php .php isn't included in both files.

If php.conf doesn't exist on your system, shout and I will post it's contents for your perusal.

Good Luck. Hube
 
Old 03-31-2003, 12:28 PM   #8
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Thank you for the help you guyz...however, it still doesn't work. I located DocumentRoot and yes it is pointing to "/var/www/html" and the test.php does work. In addition, im running phpsysinfo and that has a index.php which displays just fine... therefore my php is working. Hube, I also see that i have

"AddType application/x-httpd-php .php"

I dont have php.conf nor conf.d but I have srm.conf and access.conf.

In addition, i was reading and a person posted a tip about checking to see if port 25 was open for smtp. So, i did this:

"telnet blahblah.com 25"

and it says:

"Connection refused"

I have already opened port 25 on my router and i read that some ISP's do block that port so maybe my ISP is blocking that port?

But even if they did block port 25, i should still be able to see the squirrel mail login page because im accessing it through my website (port 80). I just can't send/receive e-mail. Are those assumptions right? Thanx for any input u guys have....i appreciate it

-twantrd
 
Old 03-31-2003, 12:49 PM   #9
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
I don't see port 25 as an issue, this is for smtp and basically allows your machine to receive email (presume you have an email server like sendmail running). I am using RH 8.0 so I don't know what config files get used for RH 7.3 but if you're seeing similar entries then I would hope it's OK to assume that my httpd.conf is equilavlent to your access.conf?

So we know that your machine is working with php, that's good news , but if you do:

http://localhost/webmail you don't get anything? (connection refused?)

In my setup I have a symbolic link from /var/www/html/webmail to /usr/share/squirrelmail

Can you confirm that by cd'ing to /var/www/html/webmail that there is something in that directory? e.g, your symbolic link (if it exists?) is working:

cd /var/www/html/webmail
ls

Can you see index.php?

If you can see index.php (along with other files and directories, what are the permissions?). Does apache have permission to read these files?

Did you setup config.php usind the conf.pl script?
 
Old 03-31-2003, 07:27 PM   #10
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
In my symbolic link "/var/www/html/webmail" there is index.php and all the files that are from /usr/share/squirrelmail. Sendmail is also running (still doesn't work even when i turn if off). I cannot tell if apache has permission to read these files....i think it does tho because of this in my httpd.conf:

<Directory />
Options FollowSymLinks
Order deny,allow
Deny from none
Allow from all
AllowOverride None
</Directory>

When i run the conf.pl script for Squirrel Mail i enter Server Settings and this is what i have:


Server Settings
1. Domain : blahblah.com
2. IMAP Server : blahblah.com
3. IMAP Port : 143
4. Use Sendmail/SMTP : Sendmail
5. Sendmail Path : /usr/sbin/sendmail
10. Server : uw
11. Invert Time : false
12. Delimiter : detect

R Return to Main Menu
C. Turn color on
S Save data
Q Quit

Do u think i need the php.conf file? Thanks for your help partner....

-twantrd
 
Old 03-31-2003, 07:40 PM   #11
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Actually, i found the problem guys....it was in the php.ini file. I had to edit "file_uploads = Off" to ON!! Now i can see the login page. But now i get an error saying that after logging in my name i need to contact the mail server. Well, i'll try to figure out what's going on....but thank you very much for your guys' help!!

-twantrd
 
Old 03-31-2003, 09:42 PM   #12
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
Did you configure an imap server with your squirrelmail session, you have to tell squirrelmail what imap server you're using. This can be accessed via the conf.pl file where you setup your squirrelmail. I think from your thread that you're saying you were able to login? So it's not an authentification problem? That had me stumped for a while! Glad you've made some progress, feels good doesn't it!
 
Old 04-01-2003, 12:00 AM   #13
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Yes, it feels very good to get things to work!! I dont mind trying different paths to find the solution. Plus, thanx to your help i wouldn't even get this far. Ok, so which IMAP server do i pick and do i just add the IP or something? If i can get my e-mail server to work....i would be so happy! Btw, thanks for your patience and willingness to help me Hube...i really appreciate it. . Linux aint so bad afterall......


-twantrd
 
Old 04-01-2003, 10:58 AM   #14
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
I'm a newbie to Linux also, but work with UNIX so some of the stuff can be similar :-) It can be a real pain in the butt at times... but when you get things working it can be a real delight! OK, enough ramblings!

There is a perl script in /usr/share/squirrelmail/config called conf.pl, run that, it's pretty easy to use.

I am running courier-imap on my system but I believe RH comes with another version (uw-imap). If you do rpm -q imap you should find out a little more about the version you are running. The conf.pl script generates a file in /etc/squirrelmail called config.php, in that file you should see some of the following (if you used confg.pl properly!):

$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = true;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$use_authenticated_smtp = false;
$pop_before_smtp = false;

$imap_server_type = 'uw'; <---- this is the RH default on 8.0, I have courier rather than uw...

$invert_time = false;
$optional_delimiter = 'detect';

Give it a try and let me know how you get on.

Hube
 
Old 04-01-2003, 01:22 PM   #15
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Original Poster
Rep: Reputation: 52
Hmm....i spent hours last night trying to get this to work. Well, i downloaded the rpm's for courier (cuz i couldn't get UW to work either):

courier-imap-1.5.3-5.i686.rpm
courier-imap-common-1.5.3-5.i386.rpm
courier-imap-deliverquota-1.5.3-5.i386.rpm
courier-imap-maildirmake-1.5.3-5.i686.rpm
courier-imap-pop3-1.5.3-5.i386.rpm
courier-imap-userdb-1.5.3-5.i386.rpm

When i installed courier-imap-1.5.3-5.i686.rpm i did the --nodeps option because it requred lib.so.6 or some kind of dependency and i couldn't find it. Afterwards, i did the command "maildirmake Maildir". But when i try to login i get this error:

Unknown error: Fatal error: Maildir: No such file or directory
Read data:

My conf.pl server setting is this:

1. Domain : blahblah.com
2. IMAP Server : localhost
3. IMAP Port : 143
4. Use Sendmail/SMTP : Sendmail
5. Sendmail Path : /usr/sbin/sendmail
10. Server : courier
11. Invert Time : false
12. Delimiter : detect

Would it be easier if i installed redhat 8.0? i heard that it does come with squirrel mail too. THanx for your help Hube.

-twantrd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squirrelmail help Child of Wonder Linux - Networking 8 01-11-2006 09:14 PM
how did SquirrelMail get there? novaprime Linux - Software 4 01-24-2005 05:49 AM
How to get imap running with squirrelmail don_dimo Linux - Software 1 10-30-2003 10:12 PM
Squirrelmail gallet Linux - Software 15 08-08-2003 05:04 AM
Running Squirrelmail gallet Linux - Software 3 08-05-2003 01:39 PM

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

All times are GMT -5. The time now is 08:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration