LinuxQuestions.org
Help answer threads with 0 replies.
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-05-2003, 10:17 AM   #1
gallet
Member
 
Registered: Aug 2003
Posts: 34

Rep: Reputation: 15
Question Squirrelmail


Hi, im using redhat 7.3 and i installed Squirrel Mail 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:

"Forbidden
You don't have permission to access /webmail/index.php on this server."

I have given permission to /var/www/html/webmail/index.php for user and group apache 777 and it doesnt work.

I need help accessing that login screen....any help is appreciated..thank u
 
Old 08-05-2003, 10:26 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Does the webmail directory have permissions set for users to enter it?
 
Old 08-05-2003, 10:34 AM   #3
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
I am sorry but which permissions im going to set for what kind of users
 
Old 08-05-2003, 10:38 AM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I think that you need to set the permissions on the /var/www/html/webmail . I believe that you need to let the people that need to execute the index.php have enter access to that directory.
 
Old 08-05-2003, 10:41 AM   #5
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
I am sorry but which permissions im going to set for what kind of users
 
Old 08-05-2003, 10:43 AM   #6
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
but I gave permissions for user apache and group apache, i have done from the stuff from www.squirrelmail.org
 
Old 08-05-2003, 10:48 AM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I believe that chmod 770 should do it to start with. You should place all the users that are gowing to acces there mail on the web in a group and give that group access to that directory and file. You can do this by chown apache.webmail /var/www/html/webmail. If the name of that group that the users are in is named webmain.
 
Old 08-05-2003, 10:53 AM   #8
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
i am sorry but i am newbie how can i do it
 
Old 08-05-2003, 10:58 AM   #9
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
I believe that you can make a new group with the groupadd command. Then edit the /etc/group file and add the users you want. Or use GUI program that comes with Red Hat.
 
Old 08-05-2003, 01:32 PM   #10
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
ok i have done everything about permissions, but now when i put www.example.com/webmail/index.php i can see 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();

?>
 
Old 08-05-2003, 01:37 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Have you got php installed?
rpm -qa | grep php

If so then you may need to uncomment the AddType and LoadModule lines for php.
 
Old 08-05-2003, 01:39 PM   #12
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 08-06-2003, 12:24 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It is installed. Uncomment the AddType and LoadModule directives relating to php in httpd.conf
 
Old 08-06-2003, 03:21 PM   #14
gallet
Member
 
Registered: Aug 2003
Posts: 34

Original Poster
Rep: Reputation: 15
It is everything uncomment......wha shall i do?
 
Old 08-06-2003, 08:31 PM   #15
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Quote:
error: rpmdb: damaged header instance #1819308097 retrieved, skipping.
I am no Red Hat expert (or Linux for that matter), but maybe that error message is the problem. Maybe the PHP rpm is messed up.
 
  


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
how did SquirrelMail get there? novaprime Linux - Software 4 01-24-2005 04:49 AM
Squirrelmail gallet Linux - Software 15 08-08-2003 04:04 AM
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 05:30 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