![]() |
|
admin url contains local path - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: admin url contains local path (/thread-6215.html) |
admin url contains local path - johnd126 - 2009-12-02 Hi Just installed zenphoto on my windows server (running apache). When I try logging from http://myserver/zenphoto/zp-core/admin.php it tries to redirect to http://myserver/zenphoto/C:\webroot\myserver\zenphoto\zp-core\admin.php What do I have set incorrectly to cause this? Thanks admin url contains local path - acrylian - 2009-12-02 You might need to set the webpaths on the admin url contains local path - johnd126 - 2009-12-02 I assume you mean these: //define('WEBPATH', '/zenphoto'); I did uncomment each of these and try different settings for both of them (not sure which one applied) but it didn't make a difference. Would the settings in the .htaccess file come into play? I use a custom named version of the file and renamed the .htaccess file to match the name I use but it didn't make a diff either. Once I re-browse to http://myserver/zenphoto/zp-core/admin.php I'm logged in and everything works ok so it only seems to affect that one refresh. admin url contains local path - acrylian - 2009-12-02 I meant those lines. You mean the rewrite path within the htaccess file, not the file itself I assume? admin url contains local path - johnd126 - 2009-12-02 No, I DO mean the file itself. I changed the name '.htaccess' to something else unique for other reasons years ago. The RewriteBase /zenphoto directive in the file itself is correct so I didn't have to adjust that. I see this in the source of the admin.php page before I log in: `` In all other cases after I'm logged in the paths are /zenphoto/something ... only in this case is it showing a local path rather than a URL. Where does it get this from? admin url contains local path - sbillard - 2009-12-03 So, what version of Zenphoto? (Always helps to read the forum rules before asking for help. That you know what information we need to be able to help you.) admin url contains local path - johnd126 - 2009-12-03 I've downloaded and installed zenphoto 1.2.7 just two days ago. It's running on Windows XP with Apache 2.0.63 and PHP 5.2.11. admin url contains local path - acrylian - 2009-12-03 Well, the admin url contains local path - johnd126 - 2009-12-03 The mod_rewrite IS working as things are now: for instance when I browse to http://myserver/zenphoto/admin I am redirected to http://myserver/zenphoto/zp-core/admin.php. It's only the redirect path within the output of the admin.php itself which is being created incorrectly. Is mod_rewrite used for that? Is there an issue with zenphoto being in a directory a couple up from the root? I.e. I have it in c:\webroot\myserver\zenphoto. admin url contains local path - acrylian - 2009-12-03 Actually zenphoto can run either in the root or a folder. I see no reason why not from a folder within a folder but the htaccess file needs to reflect that of course. admin url contains local path - sbillard - 2009-12-04 ADMIN does not use mod_rewrite for any of its URLs. find the function
admin url contains local path - johnd126 - 2009-12-05 That appears to have fixed it! I'll keep trying to stuff to make sure it doesn't affect something else. Thanks. |