[Path Problem] when pointing the domain to other catalog

Hi, I installed ZP not so long ago.

The gallery is in folder /galeria in http://mydomain.pl/pe/galeria
The domain is not important, just the /pe/galeria
Since i had some minor problems with ZP automatically recognizing the paths (like when pointing to domain.pl/pe/galeria the gallery appeared to have no css styles whatsoever, and wrong links to the albums - but when writing /pe/galeria/index.php everything was allright) so i decided to override the paths in zp-config.php file:
Setting these two paths to:

`define('WEBPATH', '/pe/galeria');

define('SERVERPATH', '/pe/galeria');`

did the trick.
But now, in admin panel of my hosting company i want to redirect the mydomain.pl to the /pe subfolder, so the link to gallery would be mydomain.pl/galeria. After doing the changes to zp-config:

`define('WEBPATH', '/galeria');

define('SERVERPATH', '/galeria');`

when viewing the gallery, these errors showed up:

`
Warning: session_start() [function.session-start]: open(/tmp/sess_ee32c4a29c090ebf9c16f810d0b394a3, O_RDWR) failed: No such file or directory (2) in /galeria/zp-core/admin-functions.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /galeria/zp-core/admin-functions.php:9) in /galeria/zp-core/admin-functions.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /galeria/zp-core/admin-functions.php:9) in /galeria/index.php on line 84

Warning: Cannot modify header information - headers already sent by (output started at /galeria/zp-core/admin-functions.php:9) in /galeria/index.php on line 85

Warning: Unknown: open(/tmp/sess_ee32c4a29c090ebf9c16f810d0b394a3, O_RDWR) failed: No such file or directory (2) 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 (/tmp) in Unknown on line 0
`
So my question is, what should i do to permanently change the path? (Tried messing with .htaccess too).

Thanks in advance,
Yogal
Sign In or Register to comment.