Jump to content

Securing a PEAR Install with .htaccess


Ricky55

Recommended Posts

Hi

 

I am very new to PHP but I have just been following a tutorial that required PEAR to be installed on my server. I installed PEAR fine using the go-pear.php script and I now have the web front end working and I've got the packages installed that I needed.

 

I am however getting a message across the interface saying "Warning: This package management website is not protected with a password, this is a MAJOR security risk."

 

It provides a read me file with some instructions on how to secure using an htaccess file but I've tried this and I can then no longer access the front end once its on the server.

 

I have installed PEAR to a folder called pearInstall, I have attached the code for the htaccess, I have tried uploading this file to both the site root and the pearInstall folder.

 

What am I doing wrong?

 

Thanks

 

$ echo "
AuthUserFile $(pwd)/.htpasswd
AuthType Basic
AuthName \"Web-based PEAR Frontend\"
Require valid-user" > .htaccess && htpasswd -c .htpasswd admin

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.