Current location: Hot Scripts Forums » Programming Languages » PHP » php help please


php help please

Reply
  #1 (permalink)  
Old 06-14-04, 07:56 PM
Insider Edge Insider Edge is offline
New Member
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
php help please

I uploaded the phpaccess from here: http://www.krizleebear.de/phpaccess/dynamisch/index.php

after logging in, when I go to enter a username and password, I get errors and they don't get entered. I get the following errors:

Warning: fopen(.htpasswd): failed to open stream: Permission denied in /home/fargo/www/members/phpaccess.php on line 1034

Warning: fputs(): supplied argument is not a valid stream resource in /home/fargo/www/members/phpaccess.php on line 1036

Warning: fclose(): supplied argument is not a valid stream resource in /home/fargo/www/members/phpaccess.php on line 1038


Someone said to make sure the file permissions are correct and I asked them how to make sure but they never got back to me about it. this is what is on that above website about doing it and I have no idea where or how to do it:

Upload phpaccess.php

Set the following filepermissions:

phpaccess.php: chmod 0775
Directory phpaccess lays in: chmod 0777

Start PHPAccess in your browser

I hope that is my problem. thanks in advance for any help.
Reply With Quote
  #2 (permalink)  
Old 06-14-04, 08:01 PM
Revenant Revenant is offline
Wannabe Coder
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
go to your ftp, right-click on phpaccess.php and press properties / CHMOD ... type 777 into the text field.
__________________
» Ivan Alfaro
» Webmaster
» Website Design
Reply With Quote
  #3 (permalink)  
Old 06-14-04, 08:10 PM
Insider Edge Insider Edge is offline
New Member
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Revenant
go to your ftp, right-click on phpaccess.php and press properties / CHMOD ... type 777 into the text field.
Thanks for the quick reply Rev. I don't use FTP - I do it manually through my control panel. This is what the top section looks like:

<!--
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++
+ PHPAccess 1.05 -
+ Administration of
+ Password protection for WWW-directories by HTAccess
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++

Copyright (C) 2003 Christian Leberfinger


This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


-->

<?php

/**********************/
/* FILE-PERMISSIONS */
/**********************/
/* Directory : 0775 */
/* Script : 0777 */
/**********************/

I'm assuming it has something to do with the part just above this sentence but I really have no idea. Any thoughts?

Thanks!
Reply With Quote
  #4 (permalink)  
Old 06-15-04, 01:32 PM
Insider Edge Insider Edge is offline
New Member
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Any one else have any suggestions on what would cause these errors?

Thanks!
Reply With Quote
  #5 (permalink)  
Old 06-16-04, 01:45 AM
Worm's Avatar
Worm Worm is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Germany, Frankfurt am Main
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Insider Edge
I uploaded the phpaccess from here: http://www.krizleebear.de/phpaccess/dynamisch/index.php

after logging in, when I go to enter a username and password, I get errors and they don't get entered. I get the following errors:

Warning: fopen(.htpasswd): failed to open stream: Permission denied in /home/fargo/www/members/phpaccess.php on line 1034

Warning: fputs(): supplied argument is not a valid stream resource in /home/fargo/www/members/phpaccess.php on line 1036

Warning: fclose(): supplied argument is not a valid stream resource in /home/fargo/www/members/phpaccess.php on line 1038


Someone said to make sure the file permissions are correct and I asked them how to make sure but they never got back to me about it. this is what is on that above website about doing it and I have no idea where or how to do it:

Upload phpaccess.php

Set the following filepermissions:

phpaccess.php: chmod 0775
Directory phpaccess lays in: chmod 0777

Start PHPAccess in your browser

I hope that is my problem. thanks in advance for any help.
Hi !

You only have one big problem You have 3 warnings, but warning 2 + 3 just depend on warning 1.

It seems like the script in /home/fargo/www/members/phpaccess.php tries to open/write/close the .htaccess file without having the rights for this. Either your user is not authorized to access this file which could be solved if you change chmod to 0777. You wont be able to do this on a web interface (change the chmod) because it seems like the user the webserver runs on does not have enough privileges to change the file's mods. So you either will have to connect to this server or you will not be able to run this script...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
PHP integrated with ASP Mikeirv PHP 7 05-25-04 05:00 AM
PHP Dudes - Hi All stuart New Members & Introductions 4 05-03-04 01:22 PM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 12:31 AM
Realtime PHP Code Obfuscation barrywien General Advertisements 1 11-16-03 06:50 PM


All times are GMT -5. The time now is 05:02 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.