473,804 Members | 3,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Directory Permissions Question

Many thanks to all who replied to my previous post regaring proper
installation of phpMyAdmin on unix/apache.

Okay, I thought I had correctly followed all the steps to
password-secure the directory where I installed phpMyAdmin on my RedHat9
machine running apache, but I must be missing something:

1. Create a directory in /var/www/html to place the files.
2. Load the files.
3. Check the index.php and make sure it pretty much all works correctly.
4. Create a .htaccess file in the directory
5. Create a mypasswordfile in the directory
6. Edit the .htaccess file thus:

AuthName "My Domain"
AuthType Basic
AuthUserFile /var/www/html/mydirectory/mypasswordfile
require user myusername

7. Set the password thus:

htpasswd -c mypasswordfile myusername
password: my_typed_passwo rd_here

8. Set the permissions on .htaccess and mypasswordfile to 644.

After verifying that the files had the correct content, were located in
the correct directory, and had the correct permissions, I tried hitting
the index.php file from my M$ browser and still did *not* get a
username/password prompt. Also tried restarting the server, no avail. I
can still hit the index.php just by entering the url. However, on
exploring the directory with midnight commander, I do notice that there
is a file called '.htaccess' and *another* file called '.htaccess~' both
of which have the same content. I don't know if this is even relevant,
I'm not really much of a unix monkey but I guess I ought to be more of
one if I'm going to continue developing php/mysql.

Is it possible that the permissions on the directory holding the files
is the issue? Anyone have any troubleshooting suggestions?

Jul 17 '05 #1
2 1873
bonehead wrote:
Many thanks to all who replied to my previous post regaring proper
installation of phpMyAdmin on unix/apache.

Okay, I thought I had correctly followed all the steps to
password-secure the directory where I installed phpMyAdmin on my RedHat9
machine running apache, but I must be missing something:


Have you adjusted the httpd.conf file?

Load it up into a text editor (I can't remeber it's location in RH9
off-hand - try /etc/httpd/conf) and find
AllowOverride

This parameter controls if the .htaccess file is used or not. Just make
sure that it is the directive that relates to the appropriate web
document root.

More at
http://httpd.apache.org/docs/mod/cor...#allowoverride

Hope this helps, regards,

Andy

Jul 17 '05 #2
Andy Barfield wrote:
Have you adjusted the httpd.conf file?

Load it up into a text editor (I can't remeber it's location in RH9
off-hand - try /etc/httpd/conf) and find
AllowOverride


Thanks. Setting AllowOverride to All worked.

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1488
by: Tracy Tripp | last post by:
I'm working on a program that takes files by path and moves them into new locations, and then back again if the user intends. Everything is great so far except I cannot figure out how to keep directory permissions. File permissions are no problem, but when I try and put a directory's permissions back, I, the user, lose all access to that directory. When I give myself permission again, all my files have kept their permissions. Here are...
2
16756
by: John | last post by:
Sorry, but how does one move up a directory ? I'm in a directory from which I called a script. Part of the script functionality is checking the permissions of the directory I am in. I may need to change the directory permissions depending on what they are. Hence, I need to be able to move up one level of the directory tree. chdir? Something like cd .. would be nice
1
1374
by: Shahir A. Ahang | last post by:
Sorry for the cross-post as I am not sure which group to post this question to. I am trying to run an ASP.NET application in IIS 6.0. If I have my application in the c:\inetpub\wwwroot\app1\ directory, which the Default Website is pointing to, the application works. However, if I create a new Website and point it to d:\IIS\sites\app1\ it does not work. I checked the permissions on the c:\inetpub\wwwroot\ directory and the it was the...
6
5187
by: JerryP | last post by:
Hello, is there a way to launch the property dialogue for a directory from my c# app ? I would also like to launch the User Account Properties from Active Directory Users and Computers, and the properties window for an Object in Active Directory. Thanks for any hints.
0
2098
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control Any feed back would be apreciated http://support.microsoft.com/default.aspx?scid=kb;EN-US;31795 FIX: "Failed to Start Monitoring Directory Changes" Error Message When You Browse to an ASP.NET Pag View products that this article applies to This article was previously...
3
2297
by: James Coleman | last post by:
Hello, The following error is appearing when attempting to create a directory using the availale system.io methods: System.IO.DirectoryNotFoundException: Could not find a part of the path "D:\". at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path) at System.IO.Directory.CreateDirectory(String path) at TestVBProject.createdirectorytest.Page_Load(Object...
27
2564
by: Javier Martinez | last post by:
Hi I have asp application in a machine with a virtual directory referring a shared directory in another machine When I try to load any aspx page of my portal I get the following error: Mensaje de error del analizador: We can't load the type 'JULIAN.Global'.
3
2492
by: rick baker | last post by:
I have two projects in a solution and have recently upgraded to Net Framework 1.1. It's not clear if the problem is directly related to the upgrade or not. One of my directories returns an error when trying to "Add" an object: "directory does not have write permission" This is only true when using the "Add ..." from the Solution Explorer. From the windows file explorer there are no permission problems. I can
65
5109
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but got errors of Failed to open file ./outdir/mytestout.txt. Below is the code: #include <stdio.h>
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.