can't get random block to work on new server. help.
mgoyal
Joined: 2007-01-23
Posts: 7 |
![]() |
Hi, I recently copied my website (Wordpress 2.1 and Gallery 1.55pl1) over a to a new server. The DNS is pointing to the new server and almost everything is working fine. The only issue I'm having is with block-random.php and block-random-enhanced.php. Other PHP files using my gallery run fine, such as "topXalbums.php" at http://www.snagabag.com/gallery/topXalbums.php However, both http://www.snagabag.com/gallery/block-random.php and http://www.snagabag.com/gallery/block-random-enhanced won't run. block-random.php gives me the following error: and block-random-enhanced.php is presented as a download by my browser instead of being executed. however, when I try to run it from my blog I get the following error: You can see it working here: And not working here: I'm looking for any help on how to get it to run on my new server. Thanks! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
http://codex.gallery2.org/index.php/Gallery1:FAQ#Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F Dave |
|
m_aman
Joined: 2007-01-22
Posts: 1 |
![]() |
grt info florid |
|
mgoyal
Joined: 2007-01-23
Posts: 7 |
![]() |
Thanks for the info! Very helpful. I'm a PHP/programming novice, but I did some investigation. My old server (where block-random.php works) returned the following from "ulimit -a": core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 16384 pipe size (512 bytes, -p) 8 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 7168 virtual memory (kbytes, -v) unlimited My new server, where block-random isn't work, returned the following: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 16384 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 16127 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited In addition to have some additional parameters, the new server has a limit on "max locked memory" and "stack size" both of which are 'unlimited' on the original server. Can I change these (max locked memory and/or stack size) via .htaccess or inserting a little php into my main.php file? Is it safe to try? I'm on a shared server and don't want to screw anything up. Thanks! |
|
mgoyal
Joined: 2007-01-23
Posts: 7 |
![]() |
Also, what does it mean that a specific PHP file is being presented as a download by my browser? (ie-FireFox is asking if I want to open or save the PHP file.) On my new server, other PHP files run just fine: but the random photo PHP file is presented as a file to download: even though the same file is executed properly in my browser on my old server: I've checked the permissions for these PHP files and they are set to 644 on both my old and new servers. (apologies in advance if my questions are asinine...I'm not well versed in these matters.) |
|
mgoyal
Joined: 2007-01-23
Posts: 7 |
![]() |
Updated info... 1. I did not perform a fresh install of Gallery on my new server. Rather I copied my Gallery install over from the old server and reran the config script. Everything appears to be fine (except for the block-random) with Gallery on the new server. 2. Got the following info from my webhost: 3. Used the info in the codex referenced above to increase the PHP memory limit but still getting the same error: ANY help is appreciated. Thanks. |
|
mgoyal
Joined: 2007-01-23
Posts: 7 |
![]() |
ok...found out my new server might have the following issue. |
|