Search…

X3 Photo Gallery Support Forums

Search…
 
**morningstar**
Topic Author
Posts: 4
Joined: 13 Jun 2009, 03:58

403 - Forbidden - You don't have permission to access /image

08 Aug 2009, 02:20

Hello,
since some days i ´ve the problem that, if i want to go to the setup menu, the follow message take place:

Forbidden

You don't have permission to access /imagevue/admin/ on this server.


I ´ve chance nothing. Whats is the problem? Can somebody help me?

Thanks in advance!
Tom
 
**morningstar**
Topic Author
Posts: 4
Joined: 13 Jun 2009, 03:58

08 Aug 2009, 02:25

 
**morningstar**
Topic Author
Posts: 4
Joined: 13 Jun 2009, 03:58

08 Aug 2009, 02:30

some more infomations:
i set the permission to 777.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

10 Aug 2009, 04:32

If all files are in place, then it must be something with permissions, could you please PM me your ftp login to check? Please include a link to this post in the message.

Gotta say that if everything seems correct but doesn't work, we might need your hosting support help to fix permissions and stuff.
firedev.com
 
User avatar
sattva
Experienced
Posts: 41
Joined: 11 Nov 2008, 08:33

Re: 403 - Forbidden - You don't have permission to access /i

07 Apr 2015, 18:15

Hello.

Almost 6 years past since the post in this thread,
and I have the same problem: :lol:
http://ebru-art.com.ua/admin/

It is CentOS 6.2 server
with Apache + NginX + PHP
and I have root login to it - so it is
me who is the hosting provider. 8)

I have 2 licences for Imagevu on 2 domains.

Alex
Alexey Latiy,
Kiev, Ukraine.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: 403 - Forbidden - You don't have permission to access /i

08 Apr 2015, 01:53

What version of Imagevue are you using? Since several years ago, the admin is named /iv-admin/ not /admin/, so unless you have renamed it yourself, you must using a very old version of Imagevue ...

If you still are getting permissions denied to your admin folder, then it is one of these options A) You have some block somewhere in your .htaccess or server config, blocking the word "admin" in URL's or B) The uploaded files inside the admin folder have incorrect permissions. I know this because the imagevue admin can't set forbidden from within the script, so it is server/file-system related.
 
User avatar
sattva
Experienced
Posts: 41
Joined: 11 Nov 2008, 08:33

Re: 403 - Forbidden - You don't have permission to access /i

08 Apr 2015, 03:59

mjau-mjau, thank you for the reply.

It is X2.8.10.3 version with files mainly from 10/07/2013.
Yes, the directory was renaimed.

Rights are:
{yourgallery}/iv-config/ 777
{yourgallery}/content/ 777

This string in /admin/index.php makes the error:
Code
ivControllerFront::getInstance()->dispatch(dirname(__FILE__) . DIRECTORY_SEPARATOR);
Everything before this string works fine.

PHPinfo:
http://ebru-art.com.ua/iv-includes/phpinfo.php

FTP access in your messages' inbox.

Please tell what should I check more.
Searching for nginx logs and errors.
Alexey Latiy,
Kiev, Ukraine.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: 403 - Forbidden - You don't have permission to access /i

08 Apr 2015, 06:58

sattva wrote:This string in /admin/index.php makes the error:
Code
ivControllerFront::getInstance()->dispatch(dirname(__FILE__) . DIRECTORY_SEPARATOR);
Everything before this string works fine.
What error? I see code above, but no error.

I renamed folder to "lemongrass", and now it doesnt say "404 page not found" any more http://ebru-art.com.ua/lemongrass/ ... This proves your server has some weird setup for the word "admin" in Url's, and who knows what else is in store? Now your server is automatically adding "index.php", and goes into a redirect loop. None of these issues, neither the 404-issue or the redirect-loop has anything to do with Imagevue. Sometimes I wonder if you need to use your own server, why so many non-standard settings?

We are not server experts, and although I really want to help, I cannot diagnose non-standard self-hosted server issues effectively :/
 
User avatar
sattva
Experienced
Posts: 41
Joined: 11 Nov 2008, 08:33

Re: 403 - Forbidden - You don't have permission to access /i

09 Apr 2015, 04:19

Thank you very much for your help.
It is something wrong with the server.
I will add comments here as soon as
something become clear.
Alexey Latiy,
Kiev, Ukraine.
 
User avatar
sattva
Experienced
Posts: 41
Joined: 11 Nov 2008, 08:33

Re: 403 - Forbidden - You don't have permission to access /i

25 Apr 2015, 14:31

So I found the solution.

Added to nginx config file here
Code
/home/user/conf/web/nginx.conf
the following settings:
Code
 proxy_buffer_size         128k;
proxy_buffers           4 256k;
proxy_busy_buffers_size   256k;    
And it started to work fine here:
http://ebrua.com/iv-admin/
Domain: ebrua.com [not registered in a gallery]
User: angel
Host server: 80.69.77.192
login: admin
pass: admin

And it still doesn't work here:
http://ebru-art.com.ua/iv-admin/
Domain: ebrua.com [LICENSED and REGISTERED in a gallery in your database]
User: angel (the same)
Host server: 80.69.77.192 (the same)
login: admin
pass: admin

Bothe domain and user were deleted and recreated from the very beginning.
The same settings for Apache/Nginx and all other environment for both domains used.

I also was able to get errors here:
File /var/lib/php/session/sess_qv5h36vklhibpmsvrgdibp2286:
Code
imagevue|a:4:{s:6:"errors";a:2:{i:0;a:4:{s:8:"severity";s:6:"Notice";s:7:"message";s:22:"Undefined index: title";s:8:"filepath";s:37:"/iv-includes/include/ivFile.class.php";s:4:"line";i:41;}i:1;a:4:{s:8:"severity";s:6:"Notice";s:7:"message";s:28:"Undefined index: description";s:8:"filepath";s:37:"/iv-includes/include/ivFile.class.php";s:4:"line";i:42;}}s:5:"login";s:5:"admin";s:8:"messages";a:0:{}s:14:"lastManageLink";s:12:"?path=event/";}
And on screen:
Code
Imagevue X2.8.10.3 Blog Facebook Twitter Feedback Dashboard Authorize
Warning: Invalid callback ivErrors::add, class 'ivErrors' not found in Unknown on line 0 Warning:
Unknown: open(/var/lib/php/session/sess_qv5h36vklhibpmsvrgdibp2286, O_RDWR)
failed: Permission denied (13) in Unknown on line 0
Warning: Invalid callback ivErrors::add, class 'ivErrors' not found in Unknown on line 0
Warning: Unknown: Failed to write session data (files).
Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

Conclusions:
If the the domain was not registered, the gallery works fine (after settings to nginx.conf file were added).
If the domain was registered the gallery doesn't work because of some errors in a registration modules.

P.S.
I din't touch any kind of owner/permissions on both domains.
Alexey Latiy,
Kiev, Ukraine.
 
User avatar
sattva
Experienced
Posts: 41
Joined: 11 Nov 2008, 08:33

Re: 403 - Forbidden - You don't have permission to access /i

25 Apr 2015, 14:42

Once per 20-30 tries the gallery opened in admin mode with first admin page.
After any other click received 403 - Forbidden.
Attachments
imagevue_2015-04-25_imagevue.jpg
Once opened
imagevue_2015-04-25_imagevue.jpg (112.81 KiB) Viewed 6838 times
Alexey Latiy,
Kiev, Ukraine.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: 403 - Forbidden - You don't have permission to access /i

26 Apr 2015, 02:33

I find it strange that your server is returning "permission" errors, as our AUTH does not block anything certainly not file permissions, and nobody else seems to be having this problem. I am however awaiting reply from my colleague for a fix to the admin-auth, since our AUTH is currently down ... It seems for some reason this might solve it for your server, as your explanation seems to insinuate its related.

The AUTH does not save anything in your X3 installation, but it may set cookies once the auth is made. It seems to me that your servers cookie session folders read/write is somehow corrupted.
 
User avatar
sattva
Experienced
Posts: 41
Joined: 11 Nov 2008, 08:33

Re: 403 - Forbidden - You don't have permission to access /i

26 Apr 2015, 02:40

Thank you for your reply.

1. It is X2.8.10.3 not X3.

2. Everything ok with authorization for non registered domain.

3. All problems with admin pannel are on registered domain only in admin pannel.

4. I will check folder with cookies on the server. How to test it?
Alexey Latiy,
Kiev, Ukraine.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: 403 - Forbidden - You don't have permission to access /i

26 Apr 2015, 03:15

Can you provide FTP login and my colleague will take a look?
1. It is X2.8.10.3 not X3.
Sorry, yes typo from me.
2. Everything ok with authorization for non registered domain.
This seems to indicate it is something stored somewhere for your authorized domain. That would be cookie settings I assume. It works fine for other already-authorized domains.
4. I will check folder with cookies on the server. How to test it?
I really don't know, but if you can offer FTP for my colleague, we can check and maybe fix before it even interacts with cookies. Is it a private server?
 
User avatar
sattva
Experienced
Posts: 41
Joined: 11 Nov 2008, 08:33

Re: 403 - Forbidden - You don't have permission to access /i

26 Apr 2015, 03:57

Thank you very much for all your help and assistance.
Is it a private server?
It is VPS on CentOS 6.3 64 bit, with about 15 sites my and my clients.
I can give you root access if needed.

Sent FTP login/pass in a private message.
Alexey Latiy,
Kiev, Ukraine.