Hello.
Recently I upgraded my hosting account, I moved my site from shared hosting to VPS (virtual private server).
I used professional site moving service from my company, I believed everything will be the same.
After few days I noticed something.
On old shared hosting Zenphoto gallery created images in cache folder and its subdirectories.
Example:
cache/album-name/subalbum-name/image-name_120_thumb.jpg
or
cache/album-name/subalbum-name/subalbum-name/image-name_w128_h128_cw128_ch128_thumb.jpg
...
Everything worked ok.
But now, on new server gallery creates all images again, even subfolders and images in cache folder already exist.
Gallery now creates all images in cache folder.
Example:
cache/album-name__subalbum-name__image-name_120_thumb.jpg
cache/album-name__subalbum-name__subalbum-name__image-name_w128_h128_cw128_ch128_thumb.jpg
Gallery now do not use subdirectories in cache folder and images in them, instead, it creates all images in root of cache folder.
File/Folder permissions for cache folder and files are 644 for files and 755 for folders.
Google and other search engines already indexed a lot of images from my old hosting from cache folder and its subfolders, so, what I should do to tell gallery to use that images again.
-----------------------
One more thing I noticed.
When I log into gallery, and go to upload page I get "yellow note"
"PHP Safe Mode Restrictions in effect!
You may be unable to perform uploads when PHP Safe Mode restrictions are in effect"
Then I looked in phpinfo file and searched for it, this is what I have found:
Directive Local Value Master Value
safe_mode On On
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
Then I checked it o old hosting:
Directive Local Value Master Value
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid On On
safe_mode_include_dir no value no value
But, I have no problems with uploading. I can upload images using web browser. My problem is cache folder.
Informations you may need:
Zenphoto version 1.2.9 [5088] (Official Build)
PHP version: 5.3.6
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 64M (Note: Your server might allocate less!)
MySQL version: 5.0.92
Best regards.
Comments
2. Consider to upgrade to the current version.
I have disabled php safe mode, and I have increased memory limit from 64 to 96M.
It is working.
Best regards.