Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
php files in password protected folder not working on new CGI platform
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- php files in password protected folder not working...
php files in password protected folder not working on new CGI platform
28-04-2014 7:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi
I've been sifting through my site on the new CGI platform. So far, so good, website displaying properly and php scripts seem to be updated with new crudentials etc.
The only issue I'm having is with a htaccess protected folder (called *domain*/upload/) that I used on the old platform to upload data to my database via php scripts. Its giving me an 500 internal server error when trying to access it. Looking at the folder via FTP, it shows the .htaccess and .htpasswd files in there fine.
Is there anything I should be doing to this folder? Also, in future, would these scripts be better served in the private folder? (Im not sure how the private folder functions, is it different?)
Apologies for all the questions!
Regards
I've been sifting through my site on the new CGI platform. So far, so good, website displaying properly and php scripts seem to be updated with new crudentials etc.
The only issue I'm having is with a htaccess protected folder (called *domain*/upload/) that I used on the old platform to upload data to my database via php scripts. Its giving me an 500 internal server error when trying to access it. Looking at the folder via FTP, it shows the .htaccess and .htpasswd files in there fine.
Is there anything I should be doing to this folder? Also, in future, would these scripts be better served in the private folder? (Im not sure how the private folder functions, is it different?)
Apologies for all the questions!
Regards
Message 1 of 4
(1,546 Views)
3 REPLIES 3
Re: php files in password protected folder not working on new CGI platform
28-04-2014 8:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Does this work if you disable the .htaccess and .htpasswd files?
Is /upload at domain root level (/upload) as you seem to imply or within the webroot (/public/upload)?
/private is used by the system (eg to hold phpMyAdmin configuration data). In my opinion it is best for users to avoid it (and /databases even more so).
David
Is /upload at domain root level (/upload) as you seem to imply or within the webroot (/public/upload)?
/private is used by the system (eg to hold phpMyAdmin configuration data). In my opinion it is best for users to avoid it (and /databases even more so).
David
David
Message 2 of 4
(337 Views)
Re: php files in password protected folder not working on new CGI platform
28-04-2014 9:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Apologies it's in (/public/upload)
I've noticed something. Had to change the absolute path on .htaccess file and re-upload. Now the username and password promt comes up as expected but password not working. Should I assign any special permissions to .htpasswd ?
I've noticed something. Had to change the absolute path on .htaccess file and re-upload. Now the username and password promt comes up as expected but password not working. Should I assign any special permissions to .htpasswd ?
Message 3 of 4
(337 Views)
Re: php files in password protected folder not working on new CGI platform
28-04-2014 11:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Both the .htaccess and .htpasswd files in a restricted directory of mine have chmod permissions of 640 and access control works fine.
This is unlikely to be the problem since a username and password are requested but was the upload done in ASCII mode?
David
This is unlikely to be the problem since a username and password are requested but was the upload done in ASCII mode?
David
David
Message 4 of 4
(337 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- php files in password protected folder not working...