LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-03-2005, 04:03 PM   #1
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Rep: Reputation: 15
PHP and Squirrel mail


Hi,

I have just managed to install Redhat Enterprise V3. I would like to set up an email server with a web front end. The redhat installation already has sendmail, squirrelmail, php and mysql installed as standard.

The problem is im having some problems and need some help getting started.

1. I know that sendmail is installed but i would like to switch to postfix. I know that postfix is also installed. Is there an easier way to switch to postfix?

2. I also know that squirrelmail is also installed as ive seen its files in /usr/share/squirellmail. I tried to access this from my browser on my pc but i cant seem to be able to open any php files. I konw that php is installed as i did select it when i was installing redhat. Do i need to startup a service in order to start supporting php scripts?

Since i have sendmail, php, mysql, squirrelmail and mysql already installed as part of the standard redhat installation i know that everything is there i just need to know where to start. Any help would be greatly appreciated..

cheers..
 
Old 12-03-2005, 04:44 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
1. use the "alternatives" command, "alternatives --config mta" then choose postfix from the list. you can then totally uninstall sendmail if you wish.

2. the only service would be apache. you should already have php installed, but what do you mean by can't open php files? with mod_php installed that would place any relevant php config files in /etc/httpd/conf.d and so PHP should be running. Squirelmail will also drop it's own required declarations into that dir too, so you shouldn't need to do anythign to at least see the web pages for it. actually making it show you your mail might be a different issue.
 
Old 12-03-2005, 05:44 PM   #3
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Original Poster
Rep: Reputation: 15
Hi,

Thats exactly what i thought since php is installed. This is how i tried to access squirrel mail.

I performed a search on any files called index.php and this is what i got back..

Code:
[root@Bravanese ziggy]# find / -name index.php
/usr/share/squirrelmail/config/index.php
/usr/share/squirrelmail/functions/index.php
/usr/share/squirrelmail/help/index.php
/usr/share/squirrelmail/images/index.php
/usr/share/squirrelmail/locale/index.php
/usr/share/squirrelmail/src/index.php
/usr/share/squirrelmail/index.php
/usr/share/squirrelmail/plugins/administrator/index.php
/usr/share/squirrelmail/plugins/bug_report/index.php
/usr/share/squirrelmail/plugins/calendar/index.php
/usr/share/squirrelmail/plugins/delete_move_next/index.php
/usr/share/squirrelmail/plugins/filters/index.php
/usr/share/squirrelmail/plugins/newmail/index.php
/usr/share/squirrelmail/plugins/index.php
/usr/share/squirrelmail/plugins/listcommands/index.php
/usr/share/squirrelmail/plugins/mail_fetch/index.php
/usr/share/squirrelmail/plugins/sent_subfolders/index.php
/usr/share/squirrelmail/plugins/spamcop/index.php
/usr/share/squirrelmail/plugins/squirrelspell/js/index.php
/usr/share/squirrelmail/plugins/squirrelspell/modules/index.php
/usr/share/squirrelmail/plugins/squirrelspell/index.php
/usr/share/squirrelmail/plugins/translate/index.php
/usr/share/squirrelmail/themes/index.php
i originally assumed that this would be the root location of squirrel mail..

Code:
/usr/share/squirrelmail/index.php
so then i tried to access the site by typing http://xx.xx.xx.xx/squirrelmail/index.php but i get a page not found error.

if i try http://xx.xx.xx.xx i get the Apache welcome page.

any ideas? im i using the wrong url?
 
Old 12-03-2005, 05:52 PM   #4
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Original Poster
Rep: Reputation: 15
This is the versoin of php i have..

Code:
[root@Bravanese ziggy]# php version
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.2

No input file specified.
[root@Bravanese ziggy]#
 
Old 12-04-2005, 02:34 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
check /etc/httpd/conf.d/squirrelmail.conf that's part of the rpm i've got installed under centos 4
 
Old 12-04-2005, 06:03 AM   #6
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Original Poster
Rep: Reputation: 15
Hi,

Thanks for that... it looks like squirrel mail was running under a different alias..

The contents of the /etc/httpd/conf.d/squirrelmail.conf file are

Code:
#
# SquirrelMail is a webmail package written in PHP.
#

Alias /webmail /usr/share/squirrelmail
~
so i was able to access the squirrel mail site via /webmail

Now ill try and get it to display my email..
thanks for the help guys..
 
  


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
squirrel mail duplicte mail basbosco Linux - General 1 08-10-2005 09:03 AM
squirrel mail help please krayz1e Linux - Newbie 5 05-30-2005 11:55 PM
Squirrel Mail Ornery_Boy Linux - Software 2 05-19-2005 09:50 AM
Squirrel Mail LeniuNYC Linux - Software 11 03-07-2004 12:47 PM
squirrel mail depaul Linux - Newbie 7 02-26-2004 12:24 PM

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

All times are GMT -5. The time now is 06:34 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