Search…

X3 Photo Gallery Support Forums

Search…
 
funmsa
Topic Author
Posts: 5
Joined: 03 Jul 2011, 05:48

Problem when going into Galleries (V0.22)

22 May 2017, 17:26

Please help.

I install a new version into a share \\COMPUTER\myshare
There is an URL that redirect into my share like http://myshare  (for a internal WEBSite)
Info from PHPInfo
[table][tr][td]_SERVER["DOCUMENT_ROOT"][/td][td]E:/wwwroot/myshare[/td][/tr][/table]
Site X3 look to work fine from home page I see subfolder, but when I click into galleries I obtain error message like :

URL : myshare                             => Preview home page fine, but when I click on "landscapes" gallerie page...
URL : http://myshare/galleries/landscapes/

Not Found
The requested URL /galleries/landscapes/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Soo what I have to setup to view images into landscapes ? .htaccess or Setings->Settings->Base URL ? 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Problem when going into Galleries (V0.22)

23 May 2017, 02:48

Soirry, but I'm struggling to understand what you are trying to do, what you have done, and what the question is here.

If only the home page works, it sounds to me like the .htaccess rewrite isn't working. You don't have a link to this website?
 
funmsa
Topic Author
Posts: 5
Joined: 03 Jul 2011, 05:48

Re: Problem when going into Galleries (V0.22)

23 May 2017, 03:30

Hello,

  To be more precise :

  - It's a internal site (so I can't give you public URL)
  - Server is on a computer like \\MYCOMPUTER
  - Folder where X3 is deployed is on this computer like E:/wwwroot/myshare  (E: is local drive of MYCOMPUTER)
  - A URL "http://myshare" is defined to point on a tomcat with a httpd.inc.conf
     DocumentRoot "E:/wwwroot/myshare"
    ...
     <Directory "E:/wwwroot/">

        Options None
        AllowOverride None                         ### I try to set All but nothing work
        Order Deny,Allow
        Allow from All
   </Directory>

  So when I install X2 (everything work perfectly) and when I install X3 (home page work fine but not when I click Galleries/Landscapes pictures aren't accessible. It's clear now (many thanks for your help) ?

 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Problem when going into Galleries (V0.22)

23 May 2017, 06:20

funmsa wrote:So when I install X2 (everything work perfectly) and when I install X3 (home page work fine but not when I click Galleries/Landscapes pictures aren't accessible. It's clear now (many thanks for your help) ?
It definitely means rewrite is not working properly. X3 is a full website that uses rewrite URL's for all pages. X2 doesn't use neither htaccess or rewrite rules, and is just a single-page application where URL's don't change (except #hash).

Almost impossible for me to diagnose a private server without a link. What does your diagnostics say?

Either .htaccess is simply not working or not allowed, or rewrite module is not working or not available, or you might need to set rewriteBase / in top of .htaccess.

Does the .htaccess file work inside the /config/ directory? Try to load http://myshare/config/readme.txt ... If .htaccess is working, this file (all files inside /config/) should be blocked.
 
funmsa
Topic Author
Posts: 5
Joined: 03 Jul 2011, 05:48

Re: Problem when going into Galleries (V0.22)

23 May 2017, 11:31

Hello,

  Effectively link http://myshare/config/readme.txt output :

USER CONFIG
================
This folder is reserved for X3 user config settings. Do not attempt to edit anything in this folder manually.

...
 
 So it look than .htaccess don't work => I setup htppd-inc.conf

<Directory "E:/">

    Options None
    AllowOverride None
    Order Deny,Allow
    Deny from All
</Directory>

<Directory "E:/wwwroot/myshare">
    Options None
    AllowOverride All
    Order Deny,Allow
    Allow from All
</Directory>



and into file .htaccess 

RewriteBase /lodhphoto



and now I see http://myshare/config/readme.txt 

Forbidden

You don't have permission to access /config/readme.txt on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Better, but now... my home page look like (http://myshare)

Forbidden

You don't have permission to access /config/readme.txt on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


WHat's wrong now... what I have to setup ? 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Problem when going into Galleries (V0.22)

23 May 2017, 12:58

About the config file, good ...
funmsa wrote:RewriteBase /lodhphoto
lodhphoto? No idea where you get that from ... It should either be "RewriteBase /", since your X3 is in root of host, or "# RewriteBase /", disabled (commented out).