LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-06-2003, 07:13 AM   #1
gallet
Member
 
Registered: Aug 2003
Posts: 34

Rep: Reputation: 15
Unhappy Squirrelmail


Hi, im using redhat 7.2 and i installed SquirrelMail and my Apache server is up and running. However, when i go to the browser....

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

<?php

/**
* index.php -- Displays the main frameset
*
* Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Redirects to the login page.
*
* $Id: index.php,v 1.14 2002/12/31 12:49:29 kink Exp $
*/

header("Location: src/login.php\n\n");
exit();

?>


when i did rpm -qa | grep php i could see:

php-ldap-4.1.2-6
asp2php-0.75.17-1
php-4.1.2-6
asp2php-gtk-0.75.17-1
php-imap-4.1.2-6
php-pgsql-4.1.2-6
error: rpmdb: damaged header instance #1819308097 retrieved, skipping.



I need help accessing that login screen....any help is appreciated..thank u
 
Old 08-06-2003, 12:09 PM   #2
rlkiddjr
Member
 
Registered: Feb 2002
Distribution: FreeBSD 4.9
Posts: 69

Rep: Reputation: 15
To the best of my knowledge, on RH7.2 you had to install the php module for apache. From what I see, Apache is not passing the script to PHP, so I don't think you have the module installed.

Could be wrong, if I am someone please corect me.

Hope that helps
 
Old 08-06-2003, 02:21 PM   #3
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
which one i need to install for Apache...
 
Old 08-06-2003, 02:23 PM   #4
bovan
LQ Newbie
 
Registered: Jul 2003
Location: Canada eh
Distribution: debian 3.0
Posts: 19

Rep: Reputation: 0
PHP4
 
Old 08-06-2003, 02:31 PM   #5
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
but i have got php4 installed so i dont know what to do it
 
Old 08-06-2003, 02:33 PM   #6
bovan
LQ Newbie
 
Registered: Jul 2003
Location: Canada eh
Distribution: debian 3.0
Posts: 19

Rep: Reputation: 0
does redhat have aptitude? if so try installing through that.. Would you happen to know how to log in ? i'm setting mine up right now just got it done and i can't log in with any accounts.... Oh and make sure you have imap for apache
 
Old 08-06-2003, 02:48 PM   #7
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
ok but how can I do this, i am sorry but i am newbie
 
Old 08-06-2003, 02:52 PM   #8
bovan
LQ Newbie
 
Registered: Jul 2003
Location: Canada eh
Distribution: debian 3.0
Posts: 19

Rep: Reputation: 0
do you have aptitude? if so use thast and find the imap-apache package or maybe it's apache-imap lol sorry i'm new as well and am having issues loggine in to my newly set up SM :S
 
Old 08-06-2003, 02:58 PM   #9
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
i have got php-imap-4.1.2-6
 
Old 08-06-2003, 03:04 PM   #10
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
Here is a part of the install instructions for setting up a mail server that have to do with php, try these and see if that helps. The full guide is at: http://www.pipeline.com.au/staff/mbo...ail-server.htm
-------------------------------------------------------------------------


www.php.net

Go to their website and download the latest source to /usr/local/src. In this example I have used :

php-4.3.2.tar.gz

Extract the source

cd /usr/local/src
tar xzf php-4.3.2.tar.gz
chown -R root.root php-4.3.2.tar.gz
cd php-4.3.2

And now use the configure script to patch the Apache source tree

./configure \
--with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs
make
make install

Put the sample php.ini file into the required location

cp php.ini-dist /usr/local/lib/php.ini

--------------------------------------------------------------------------
Open up the httpd.conf and make sure these lines are in your configureation:


# Following line should be present already as it would be inserted by the PHP make
# Make sure you move it outside of the IfDefineSSL section if the make (incorrectly) put it there
LoadModule php4_module libexec/libphp4.so

# uncomment (or add) the following line
AddType application/x-httpd-php .php

# Add the index.php into this line so apache will use this file as a default in addition to index.html
DirectoryIndex index.php index.html

-----------------------------------------------------------------------

Restart apache
 
Old 08-06-2003, 03:04 PM   #11
bovan
LQ Newbie
 
Registered: Jul 2003
Location: Canada eh
Distribution: debian 3.0
Posts: 19

Rep: Reputation: 0
If you have imap and PHP4 installed it should work if not try installing squirrelmail from aptitude then restarting apache and connect to your site /squirrelmail and it should load and if you figure out how to log in let me know... or if you have msn add me and maybe we could help each other
 
Old 08-06-2003, 03:19 PM   #12
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
where can i install squirrelmail from aptitude what does it mean?
 
Old 08-06-2003, 03:50 PM   #13
rlkiddjr
Member
 
Registered: Feb 2002
Distribution: FreeBSD 4.9
Posts: 69

Rep: Reputation: 15
You can have PHP installed on your system, but if you don't have the Apache module loaded then Apache will never pass the files to PHP. There are two places that the module could be loaded from. 1.) /usr/lib/httpd/modules. If here it will be a file named mod_php.so. 2.) Or it could be loaded from /etc/httpd/conf.d/php.conf. Either way you have module loaded before it will work.
 
Old 08-06-2003, 05:42 PM   #14
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
ok but where can i load this apache module, into the httpd.conf and how can i load this module
 
Old 08-07-2003, 08:27 PM   #15
rajbaxi
Member
 
Registered: Jul 2003
Location: MI
Distribution: redhat,mandrake,debian
Posts: 68

Rep: Reputation: 15
in httpd.conf do a search for "module" and look out for php or something.
 
  


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
how did SquirrelMail get there? novaprime Linux - Software 4 01-24-2005 04:49 AM
Squirrelmail gallet Linux - Software 14 08-06-2003 08:31 PM
SquirrelMail darthczyz Linux - Software 3 05-28-2003 09:02 AM
Squirrelmail bentman78 Linux - Software 3 03-28-2003 04:43 PM
Squirrelmail 1.2.11 mail55127 Linux - Software 0 03-13-2003 01:44 PM

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

All times are GMT -5. The time now is 11:16 AM.

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