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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-05-2003, 11:17 AM
|
#1
|
Member
Registered: Aug 2003
Posts: 34
Rep:
|
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
|
|
|
08-05-2003, 11:26 AM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
Does the webmail directory have permissions set for users to enter it?
|
|
|
08-05-2003, 11:34 AM
|
#3
|
Member
Registered: Aug 2003
Posts: 34
Original Poster
Rep:
|
I am sorry but which permissions im going to set for what kind of users
|
|
|
08-05-2003, 11:38 AM
|
#4
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
08-05-2003, 11:41 AM
|
#5
|
Member
Registered: Aug 2003
Posts: 34
Original Poster
Rep:
|
I am sorry but which permissions im going to set for what kind of users
|
|
|
08-05-2003, 11:43 AM
|
#6
|
Member
Registered: Aug 2003
Posts: 34
Original Poster
Rep:
|
but I gave permissions for user apache and group apache, i have done from the stuff from www.squirrelmail.org
|
|
|
08-05-2003, 11:48 AM
|
#7
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
08-05-2003, 11:53 AM
|
#8
|
Member
Registered: Aug 2003
Posts: 34
Original Poster
Rep:
|
i am sorry but i am newbie how can i do it
|
|
|
08-05-2003, 11:58 AM
|
#9
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
08-05-2003, 02:32 PM
|
#10
|
Member
Registered: Aug 2003
Posts: 34
Original Poster
Rep:
|
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();
?>
|
|
|
08-05-2003, 02:37 PM
|
#11
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Have you got php installed?
rpm -qa | grep php
If so then you may need to uncomment the AddType and LoadModule lines for php.
|
|
|
08-05-2003, 02:39 PM
|
#12
|
Member
Registered: Aug 2003
Posts: 34
Original Poster
Rep:
|
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.
|
|
|
08-06-2003, 01:24 PM
|
#13
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
It is installed. Uncomment the AddType and LoadModule directives relating to php in httpd.conf
|
|
|
08-06-2003, 04:21 PM
|
#14
|
Member
Registered: Aug 2003
Posts: 34
Original Poster
Rep:
|
It is everything uncomment......wha shall i do?
|
|
|
08-06-2003, 09:31 PM
|
#15
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|