[SOLVED] Admin section broken - Just states "Index of /admin", provides a link to parents directory and apache msg (below)
|
superflyman
Joined: 2009-11-12
Posts: 24 |
Posted: Thu, 2009-11-12 01:04
|
|
When I go to the Dashboard on my site at www.example.com/admin I get the following error msg and blank page: Index of /admin Parent Directory (link) Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Server at www.example.com Port 80 Any help would be greatly appreciated. This is a fresh install of G3 Beta 3. The only tweak I made is to uncomment the .htaccess file to hit the root directory instead of example.com/index.php. Thanks- |
|

Posts: 16503
First, please upgrade to the latest experimental. Follow the tips about unpacking the code and do not overwrite your current install:
http://codex.gallery2.org/Gallery3:Upgrading
Second, are you logged in?
Third, I don't know how you can be seeing any sort of directory contents since gallery3 does not have an "admin" directory. That's all done through URL rewriting.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22890
The proper url would be:
http://example.com/gallery3/index.php/admin
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 24
@nikekiam
I upgraded to the latest experimental and still the same issue. And yes, I'm logged in. Gallery 3 may not have an "admin" directory so I think this has to so with the .htaccess setting. It looks like everything gets mapped back correctly except for the Dashboard. Not sure if this is a bug.
@dave
Thanks, this is a good workaround which i totally missed! When I use this it works just fine. However, I still would like to essentially hide the index.php. Using the .htaccess file provided by gallery 3 I simply followed the directions and uncommented the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
</IfModule>
Everything works just fine --- all of the links are operational except for the Dashboard located at www.example.com/admin
Should I submit this as a bug or is there still something I'm missing on my end. Can you try this on your end and see if you have the same behavior? Please let me know. Thank you both for your help...
Posts: 16503
I've had G3 running like this for many months now, it's not a bug. Are you sure rewriting works on your server? Post a link to your site and to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 24
I have confirmed that rewriting works on the server. I have also loaded phpinfo.php on the server. Also, I just did a clean install again with the latest build just to see if anything got mucked up last time and the same behavior is present with the dashboard tab.
Posts: 16503
Is there a directory names admin? That's the only way I can duplicate this behavior on my installs. If that directory exists, rename or delete it.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 24
Yes, good catch! I checked and it looks like the host automatically adds a admin directory to public html. I deleted it and everything works fine. Thanks!