Jump to content

Verify PHP memory_limit


Recommended Posts

Posted

We are hosting our own server, it's a Mac OS X 10.4.11 with PHP 4.4.9

We have some problems with our forum that is due to a low memory limit in PHP.

However, I have changed the memory_limit on every place I could found (to 256M), without success.

Is there any way to *verify* the set memory_limit? php -i dosen't give me a clue.

Further, there is a line enabling "Zend Memory Manager". What is this and should it be on?

We are moving the forum to a new server later this year, but it's nice to have it working in the meanwhile.

Thanks,

/andreas

Posted

PHP 4.4.9 ?!?!?!?! You sure it's not 5.4.9?

You need to upgrade that... I'm honestly surprised your site is even working with that low of a php version..

Posted

Run php info. It will show you what your values are.

If you set a different value and don't see it reflected, try restarting apache. Also, if you have a local php.ini, make sure it's set correctly there and also that your apache configuration is looking in the right place for local php.ini files.

Posted

Run php info. It will show you what your values are.

If you set a different value and don't see it reflected, try restarting apache. Also, if you have a local php.ini, make sure it's set correctly there and also that your apache configuration is looking in the right place for local php.ini files.


phpinfo will also show you the configuration file loaded, so you can ensure you are editing the proper file/location.
Posted

Folks,

thanks for the answers.


No matter what I set the memory_limit value to, and restart Apache (have even restarted the server), I see no difference.

And yes, - it's v4.4.9...

Due to life I haven't been able to update it yet. Is it complicated?

Posted

Here's a version of the info output. As you can see we had a Filemaker Server on this machine as well. That is no longer running, but I can see that PHP still have some info about it. I have altered that php.ini file as well, just to be sure.

====================================================

PHP Version => 4.4.9
System => Darwin static-**** 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386
Build Date => Sep 17 2008 14:52:40
Configure Command => '/SourceCache/apache_mod_php/apache_mod_php-18.11/php/configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock' '--without-pear'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /private/etc/php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20050606
Debug Build => no
Zend Memory Manager => enabled
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, compress.zlib
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies
_______________________________________________________________________
Configuration
PHP Core
Directive => Local Value => Master Value
allow_call_time_pass_reference => Off => Off
allow_url_fopen => On => On
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 2047 => 2047
expose_php => On => On
extension_dir => /usr/lib/php/extensions/no-debug-non-zts-20020429 => /usr/lib/php/extensions/no-debug-non-zts-20020429
file_uploads => On => On
gpc_order => GPC => GPC
highlight.bg => #FFFFFF => #FFFFFF
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
highlight.keyword => #007700 => #007700
highlight.string => #DD0000 => #DD0000
html_errors => Off => On
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => Off
include_path => .:/Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php => .:/Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php
log_errors => On => On
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => Off => Off
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
max_execution_time => 0 => 30
max_input_nesting_level => 500 => 500
max_input_time => 60 => 60
open_basedir => no value => no value
output_buffering => 0 => 4096
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
register_argc_argv => On => Off
register_globals => Off => Off
report_memleaks => On => On
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
ctype
ctype functions => enabled
curl
CURL support => enabled
CURL Information => libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
dbx
dbx support => enabled
dbx version => 1.0.0
supported databases => MySQL
ODBC
PostgreSQL
Microsoft SQL Server
FrontBase
Oracle 8 (oci8)
Sybase-CT
Directive => Local Value => Master Value
dbx.colnames_case => unchanged => unchanged
exif
EXIF Support => enabled
EXIF Version => 1.4 $Id: exif.c,v 1.118.2.37.2.8 2007/12/31 07:22:46 sebastian Exp $
Supported EXIF Version => 0220
Supported filetypes => JPEG,TIFF
ftp
FTP support => enabled
ldap
LDAP Support => enabled
RCS Version => $Id: ldap.c,v 1.130.2.13.2.3 2007/12/31 07:22:48 sebastian Exp $
Total Links => 0/unlimited
API Version => 3001
Vendor Name => OpenLDAP
Vendor Version => 20219
mbstring
Multibyte Support => enabled
Japanese support => enabled
Simplified chinese support => enabled
Traditional chinese support => enabled
Korean support => enabled
Russian support => enabled
Multibyte (japanese) regex support => enabled
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.internal_encoding => ISO-8859-1 => no value
mbstring.language => neutral => neutral
mbstring.substitute_character => no value => no value
mysql
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 4.1.22
MYSQL_MODULE_TYPE => external
MYSQL_SOCKET => /var/mysql/mysql.sock
MYSQL_INCLUDE => -I/usr/include/mysql
MYSQL_LIBS => -L/usr/lib/mysql -lmysqlclient
Directive => Local Value => Master Value
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => no value => no value
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off
odbc
ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library => iodbc
ODBC_INCLUDE => -I/usr/include
ODBC_LFLAGS => -L/usr/lib
ODBC_LIBS => -liodbc
Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_db => no value => no value
odbc.default_pw => <i>no value</i> => <i>no value</i>
odbc.default_user => no value => no value
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited
overload
User-Space Object Overloading Support => enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 7.7 2008-05-07
posix
Revision => $Revision: 1.51.2.4.2.4 $
session
Session Support => enabled
Registered save handlers => files user
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => Off => Off
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /tmp => /tmp
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => Off => Off
sockets
Sockets Support => enabled
standard
Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i
Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=href,area=href,frame=src,input=src,form=fakeentry
user_agent => no value => no value
tokenizer
Tokenizer Support => enabled
xml
XML Support => active
XML Namespace Support => active
EXPAT Version => 1.95.6
zlib
ZLib Support => enabled
Compiled Version => 1.2.3
Linked Version => 1.2.3
Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value
Additional Modules
Module Name
Environment
Variable => Value
TERM_PROGRAM => Apple_Terminal
SHELL => /bin/bash
TERM => xterm-color
TERM_PROGRAM_VERSION => 133-1
OLDPWD => /Users/admin
USER => root
SUDO_USER => admin
SUDO_UID => 501
__CF_USER_TEXT_ENCODING => 0x0:0:0
PATH => /bin:/sbin:/usr/bin:/usr/sbin
PWD => /Library/FileMaker Server/Web Publishing/publishing-engine/php/lib
SUDO_COMMAND => /bin/bash
HOME => /Users/admin
SHLVL => 2
LOGNAME => root
SUDO_GID => 20
SECURITYSESSIONID => b166a0
_ => /usr/bin/php
PHP Variables
Variable => Value
_SERVER["TERM_PROGRAM"] => Apple_Terminal
_SERVER["SHELL"] => /bin/bash
_SERVER["TERM"] => xterm-color
_SERVER["TERM_PROGRAM_VERSION"] => 133-1
_SERVER["OLDPWD"] => /Users/admin
_SERVER["USER"] => root
_SERVER["SUDO_USER"] => admin
_SERVER["SUDO_UID"] => 501
_SERVER["__CF_USER_TEXT_ENCODING"] => 0x0:0:0
_SERVER["PATH"] => /bin:/sbin:/usr/bin:/usr/sbin
_SERVER["PWD"] => /Library/FileMaker Server/Web Publishing/publishing-engine/php/lib
_SERVER["SUDO_COMMAND"] => /bin/bash
_SERVER["HOME"] => /Users/admin
_SERVER["SHLVL"] => 2
_SERVER["LOGNAME"] => root
_SERVER["SUDO_GID"] => 20
_SERVER["SECURITYSESSIONID"] => b166a0
_SERVER["_"] => /usr/bin/php
_SERVER["PHP_SELF"] =>
_SERVER["SCRIPT_NAME"] =>
_SERVER["SCRIPT_FILENAME"] =>
_SERVER["PATH_TRANSLATED"] =>
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["argv"] => Array
(
)
_SERVER["argc"] => 0
====================
Comments?
Posted

Maybe I'm blind, but I don't see a memory_limit reported in that php info.

You REALLY should update php.

It's not hard to update php. If you have yum on the server it can download everything for you.

Posted

Configuration File (php.ini) Path => /private/etc/php.ini

if thats the one you printed here then the 256 isn't in it

really not sure how to update mac servers.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...