Sorry if this is considered off-topic - but I've been trying to get some Drupal (4.6) work done and have been beating my head against this all day -
I'm having a wierd problem. I'm setting up my laptop (winxp home) to do some dev. work - I have previously installed apache 1.x and PHP 4.3.10. I can't get the "memory_limit" ini setting to "take". It is clearly (and I believe correctly) set in my ini file -
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Which is the default when you set up PHP. When I do a phpinfo() it simply doesn't report anything - doesn't show up. Other variables can be set in that ini file and they do show up.
I have tried to manually set it but that doesn't work. I try this:
print "here I am: ".ini_get('memory_limit')."</br>"; print "here I am: max size: ".ini_get('post_max_size');
and I can see post_max_size but not memory_limit. I have tried with both the cgi and dll flavors of PHP. I deeply suspect a stupid MS trick. HELP!
Needless to say everything is working fine in linux land - I just got done there in 2 minutes what I have spent all day doing so far - but I would like to be able to work on my laptop (no jokes about installing linux on my laptop please - I've had enough today already).
Thanks in adavance,
Dan
I got Drupal running on my laptop at home and the one I carry for work, so I know it can be done. But I'm no genius with Windows. (I agree that it is a piece of cake getting it running on Linux.) All I can think of is the php.ini has to be in the windows directory, not just in the php install dir, so you might check that out.
Steve
Sorry if this is considered off-topic - but I've been trying to get some Drupal (4.6) work done and have been beating my head against this all day
I'm having a wierd problem. I'm setting up my laptop (winxp home) to do some dev. work - I have previously installed apache 1.x and PHP 4.3.10. I can't get the "memory_limit" ini setting to "take". It is clearly (and I believe correctly) set in my ini file -
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Which is the default when you set up PHP. When I do a phpinfo() it simply doesn't report anything - doesn't show up. Other variables can be set in that ini file and they do show up.
I have tried to manually set it but that doesn't work. I try this:
print "here I am: ".ini_get('memory_limit')."</br>"; print "here I am: max size: ".ini_get('post_max_size');
and I can see post_max_size but not memory_limit. I have tried with both the cgi and dll flavors of PHP. I deeply suspect a stupid MS trick. HELP!
Needless to say everything is working fine in linux land - I just got done there in 2 minutes what I have spent all day doing so far - but I would like to be able to work on my laptop (no jokes about installing linux on my laptop please - I've had enough today already).
Thanks in adavance,
Dan
-- [ Drupal support list | http://lists.drupal.org/ ]
I haven't done this, but one workaround would be to try setting the variable in the .htaccess file in your drupal directory. You should be able to add a line like
php_value memory_limit 32M
to the various php variable overloads in the section that begins with
<IfModule mod_php4.c> # If you are using Apache 2, you have to use <IfModule sapi_apache2.c> # instead of <IfModule mod_php4.c>.
if you've used the default .htaccess file. I have no idea how this would play out on a windows system, however.
-Ethan.
stevew@etmeli.us wrote:
I got Drupal running on my laptop at home and the one I carry for work, so I know it can be done. But I'm no genius with Windows. (I agree that it is a piece of cake getting it running on Linux.) All I can think of is the php.ini has to be in the windows directory, not just in the php install dir, so you might check that out.
Steve
Sorry if this is considered off-topic - but I've been trying to get some Drupal (4.6) work done and have been beating my head against this all day
I'm having a wierd problem. I'm setting up my laptop (winxp home) to do some dev. work - I have previously installed apache 1.x and PHP 4.3.10. I can't get the "memory_limit" ini setting to "take". It is clearly (and I believe correctly) set in my ini file -
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Which is the default when you set up PHP. When I do a phpinfo() it simply doesn't report anything - doesn't show up. Other variables can be set in that ini file and they do show up.
I have tried to manually set it but that doesn't work. I try this:
print "here I am: ".ini_get('memory_limit')."</br>"; print "here I am: max size: ".ini_get('post_max_size');
and I can see post_max_size but not memory_limit. I have tried with both the cgi and dll flavors of PHP. I deeply suspect a stupid MS trick. HELP!
Needless to say everything is working fine in linux land - I just got done there in 2 minutes what I have spent all day doing so far - but I would like to be able to work on my laptop (no jokes about installing linux on my laptop please - I've had enough today already).
Thanks in adavance,
Dan
-- [ Drupal support list | http://lists.drupal.org/ ]
I haven't tried the .htaccess route yet - but I have tried manually setting the php values with "ini_set" which I believe does the same thing - but I'll try the htaccess when I get a moment. For know I've moved back to Linux. Thanks for your help.
Dan
p.s. - sorry about that re-send, my bad.
I haven't done this, but one workaround would be to try setting the variable in the .htaccess file in your drupal directory. You should be able to add a line like
php_value memory_limit 32M
to the various php variable overloads in the section that begins with
<IfModule mod_php4.c> # If you are using Apache 2, you have to use <IfModule sapi_apache2.c> # instead of <IfModule mod_php4.c>.
if you've used the default .htaccess file. I have no idea how this would play out on a windows system, however.
-Ethan.
stevew@etmeli.us wrote:
I got Drupal running on my laptop at home and the one I carry for work, so I know it can be done. But I'm no genius with Windows. (I agree that it is a piece of cake getting it running on Linux.) All I can think of is the php.ini has to be in the windows directory, not just in the php install dir, so you might check that out.
Steve
Sorry if this is considered off-topic - but I've been trying to get some Drupal (4.6) work done and have been beating my head against this all day
I'm having a wierd problem. I'm setting up my laptop (winxp home) to do some dev. work - I have previously installed apache 1.x and PHP 4.3.10. I can't get the "memory_limit" ini setting to "take". It is clearly (and I believe correctly) set in my ini file -
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Which is the default when you set up PHP. When I do a phpinfo() it simply doesn't report anything - doesn't show up. Other variables can be set in that ini file and they do show up.
I have tried to manually set it but that doesn't work. I try this:
print "here I am: ".ini_get('memory_limit')."</br>"; print "here I am: max size: ".ini_get('post_max_size');
and I can see post_max_size but not memory_limit. I have tried with both the cgi and dll flavors of PHP. I deeply suspect a stupid MS trick. HELP!
Needless to say everything is working fine in linux land - I just got done there in 2 minutes what I have spent all day doing so far - but I would like to be able to work on my laptop (no jokes about installing linux on my laptop please - I've had enough today already).
Thanks in adavance,
Dan
-- [ Drupal support list | http://lists.drupal.org/ ]
I am having a problem in that first page comes up fine. looks good all the logos and colors are in place. When I click on create first account all I get is a directory listing. Same with every internal link.
Windows XP pro Php 4.3 Mysql 4.0
Installed PHPDEV on another computer same results.
Any ideas on what to try next.
Thanks Ron
Did you set the $base_url in the sites/default/settings.php file correctly?
What is the full URL of the homepage (which works), and how does that compare with the URLs of the various links that don't work?
Ron Mahon wrote:
I am having a problem in that first page comes up fine. looks good all the logos and colors are in place. When I click on create first account all I get is a directory listing. Same with every internal link.
Windows XP pro Php 4.3 Mysql 4.0
Installed PHPDEV on another computer same results.
Any ideas on what to try next.
Thanks Ron
Thanks to those who responded. So it looks like there was *not* a memory issue after all :(. I had hit an error, assumed it was memory related and when I tried to do set the "memory_limit" higher essentially became fixated. So from what I can tell (and this *is* an assumption) it looks like the binary install of MySQL for windoze is built with the memory_limit disabled - which means that PHP will be allowed to use whatever memory the OS wants to give it during it's invocation. I'm not sure what the root problem I had was - since this morning it all just went away :(. Whatever.
Thanks,
Dan
Sorry if this is considered off-topic - but I've been trying to get some Drupal (4.6) work done and have been beating my head against this all day -
I'm having a wierd problem. I'm setting up my laptop (winxp home) to do some dev. work - I have previously installed apache 1.x and PHP 4.3.10. I can't get the "memory_limit" ini setting to "take". It is clearly (and I believe correctly) set in my ini file -
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Which is the default when you set up PHP. When I do a phpinfo() it simply doesn't report anything - doesn't show up. Other variables can be set in that ini file and they do show up.
I have tried to manually set it but that doesn't work. I try this:
print "here I am: ".ini_get('memory_limit')."</br>"; print "here I am: max size: ".ini_get('post_max_size');
and I can see post_max_size but not memory_limit. I have tried with both the cgi and dll flavors of PHP. I deeply suspect a stupid MS trick. HELP!
Needless to say everything is working fine in linux land - I just got done there in 2 minutes what I have spent all day doing so far - but I would like to be able to work on my laptop (no jokes about installing linux on my laptop please - I've had enough today already).
Thanks in adavance,
Dan