You'll get invited to our Meetups as soon as they're scheduled!
| From: | Robert Gonzalez |
| Sent on: | Wednesday, March 18, 2009 3:40 PM |
I think it is Leopard. I think if I reinstalled even the OS and the Mysql & PHP5 it might do the same again however it could have saved my previous php.ini and httpd.conf because it was an upgrade and that is the confusion. Do you have a mac or a pc? I couldn't find the mycrypt extension. The reason is I only saw it listed as a Windows dll extension in the php.ini. I don't know where it is for the mac. Let me try adding that back and see if it works.
Janis L. Rough
\
From: Robert Gonzalez <[address removed]>
To: [address removed]
Sent: Wednesday, March 18, 2009 1:03:02 PM
Subject: Re: [php-139] configure phpMyAdmin on PHP5, Leopard, timezone error, Apache2
Does that php.ini include the mcrypt extension? Sounds like your install is totally knackered. Can you start over again at all?On Wed, Mar 18, 2009 at 12:46 PM, Janis Rough <[address removed]> wrote:
Changing the php.ini to the /etc/php.ini did however get rid of the timezone error message so I could configure phpmyadmin.Janis L. Rough
From: Robert Gonzalez <[address removed]>
To: [address removed]
Sent: Tuesday, March 17, 2009 10:30:56 PM
Subject: Re: [php-139] configure phpMyAdmin on PHP5, Leopard, timezone error, Apache2
Edit the file that is being consumed by PHP as shown in the php.ini directive when you run phpinfo(). Also note that you could have two different INI files being parsed, one for CLI and one for SAPI. To see your CLI ini file, at the command, type:
php -i
You might want to pipe that through less to keep the output manageable.On Tue, Mar 17, 2009 at 10:37 PM, Janis Rough <[address removed]> wrote:
This is exciting! I looked at php_info() and the php.ini looks like it is pointing to /etc
I don't know how it got there but assume it is from Leopard install and Apache2 is in that /etc directory
also which is why I did the Leopard install.
The entropy PHP5 install php.ini is in /usr/local/php5/lib
Which one should I use and how do I get it to use one or the other?
I am really happy, :-)
Thanks ,
diff of the two files and they are way different.
----------------
diff php.ini.default /usr/local/php5/lib/php.ini
3,13d2
< ;;;;;;;;;;;
< ; WARNING ;
< ;;;;;;;;;;;
< ; This is the default settings file for new PHP installations.
< ; By default, PHP installs itself with a configuration suitable for
< ; development purposes, and *NOT* for production purposes.
< ; For several security-oriented considerations that should be taken
< ; before going online with your site, please consult php.ini-recommended
< ; and http://php.net/manual/en/security.php.
<
<
57c46
< ;
---
> ;
62,65c51,116
< ; All the values in the php.ini-dist file correspond to the builtin
< ; defaults (that is, if no php.ini is used, or if you delete these lines,
< ; the builtin defaults will be identical).
<
---
> ; This is the recommended, PHP 5-style version of the php.ini-dist file. It
> ; sets some non standard settings, that make PHP more efficient, more secure,
> ; and encourage cleaner coding.
> ;
> ; The price is that with these settings, PHP may be incompatible with some
> ; applications, and sometimes, more difficult to develop with. Using this
> ; file is warmly recommended for production sites. As all of the changes from
> ; the standard settings are thoroughly documented, you can go over each one,
> ; and decide whether you want to use it or not.
> ;
> ; For general information about the php.ini file, please consult the php.ini-dist
> ; file, included in your PHP distribution.
> ;
> ; This file is different from the php.ini-dist file in the fact that it features
> ; different values for several directives, in order to improve performance, while
> ; possibly breaking compatibility with the standard out-of-the-box behavior of
> ; PHP. Please make sure you read what's different, and modify your scripts
> ; accordingly, if you decide to use this file instead.
> ;
> ; - register_long_arrays = Off [Performance]
> ; Disables registration of the older (and deprecated) long predefined array
> ; variables ($HTTP_*_VARS). Instead, use the superglobals that were
> ; introduced in PHP 4.1.0
> ; - display_errors = Off [Security]
> display_errors = On
> ; With this directive set to off, errors that occur during the execution of
> ; scripts will no longer be displayed as a part of the script output, and thus,
> ; will no longer be exposed to remote users. With some errors, the error message
> ; content may expose information about your script, web server, or database
> ; server that may be exploitable for hacking. Production sites should have this
> ; directive set to off.
> ; - log_errors = On [Security]
> ; This directive complements the above one. Any errors that occur during the
> ; execution of your script will be logged (typically, to your server's error log,
> ; but can be configured in several ways). Along with setting display_errors to off,
> ; this setup gives you the ability to fully understand what may have gone wrong,
> ; without exposing any sensitive information to remote users.
> ; - output_buffering = 4096 [Performance]
> ; Set a 4KB output buffer. Enabling output buffering typically results in less
> ; writes, and sometimes less packets sent on the wire, which can often lead to
> ; better performance. The gain this directive actually yields greatly depends
> ; on which Web server you're working with, and what kind of scripts you're using.
> ; - register_argc_argv = Off [Performance]
> ; Disables registration of the somewhat redundant $argv and $argc global
> ; variables.
> ; - magic_quotes_gpc = Off [Performance]
> ; Input data is no longer escaped with slashes so that it can be sent into
> ; SQL databases without further manipulation. Instead, you should use the
> ; function addslashes() on each input element you wish to send to a database.
> ; - variables_order = "GPCS" [Performance]
> ; The environment variables are not hashed into the $_ENV. To access
> ; environment variables, you can use getenv() instead.
> ; - error_reporting = E_ALL [Code Cleanliness, Security(?)]
> error_reporting = E_ALL
> ; By default, PHP suppresses errors of type E_NOTICE. These error messages
> ; are emitted for non-critical errors, but that could be a symptom of a bigger
> ; problem. Most notably, this will cause error messages about the use
> ; of uninitialized variables to be displayed.
> ; - allow_call_time_pass_reference = Off [Code cleanliness]
> ; It's not possible to decide to force a variable to be passed by reference
> ; when calling a function. The PHP 4 style to do this is by making the
> ; function require the relevant argument by reference.
> ; - short_open_tag = Off [Portability]
> short_open_tag = On
> ; Using short tags is discouraged when developing code meant for redistribution
> ; since short tags may not be supported on the target server.
83c134
< short_open_tag = On
---
> short_open_tag = Off
89c140
< precision = 12
---
> precision = 14
101c152
< output_buffering = Off
---
> output_buffering = 4096
164c215
< allow_call_time_pass_reference = On
---
> allow_call_time_pass_reference = Off
303c354
< ; - Show all errors except for notices and coding standards warnings
---
> ; - Show all errors, except coding standards warnings
305c356
< error_reporting = E_ALL & ~E_NOTICE
---
> error_reporting = E_ALL
315,317c366,370
< ; Off - Do not display any errors
< ; stderr - Display errors to STDERR (affects only CGI/CLI binaries!)
< ;
---
> ; Off - Do not display any errors
> ; stderr - Display errors to STDERR (affects only CGI/CLI binaries!)
> ; On or stdout - Display errors to STDOUT (default)
> ;
> ; To output errors to STDERR with CGI/CLI:
320c373
< ; stdout (On) - Display errors to STDOUT
---
> ; Default
322c375
< display_errors = On
---
> display_errors = Off
332c385
< log_errors = Off
---
> log_errors = On
372c425
< ;error_prepend_string = "<font color=#ff0000>"
---
> ;error_prepend_string = "<font color=ff0000>"
403c456
< variables_order = "EGPCS"
---
> variables_order = "GPCS"
419c472
< register_long_arrays = On
---
> register_long_arrays = Off
424c477
< register_argc_argv = On
---
> register_argc_argv = Off
440c493
< magic_quotes_gpc = On
---
> magic_quotes_gpc = Off
463,464c516
<
< ;;;;;;;;;;;;;;;;;;;;;;;;;
---
> ;;;;;;;;;;;;;;;;;;;;;;;
515c567
< ; cgi.fix_pathinfo=0
---
> ; cgi.fix_pathinfo=1
534c586,593
<
---
> ; Xdebug config for MacOSX and Netbeans IDE
> zend_extension_debug="/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
> xdebug.remote_enable=1
> xdebug.remote_handler=dbgp
> xdebug.remote_mode=req
> xdebug.remote_host=127.0.0.1
> xdebug.remote_port=9000
> xdebug.idekey=
657,658c716
< ;date.timezone =
<
---
> date.timezone = America/Los_Angeles
996c1054
< ;session.cookie_secure =
---
> ;session.cookie_secure =
1030c1088
< session.gc_divisor = 100
---
> session.gc_divisor = 1000
1050c1108
< session.bug_compat_42 = 1
---
> session.bug_compat_42 = 0
1097c1155
< session.hash_bits_per_character = 4
---
> session.hash_bits_per_character = 5
1104c1162
< url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
---
> url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
1227a1286,1288
> ; enable strict encoding detection.
> ;mbstring.strict_encoding = Off
>Janis L. Rough
From: Robert Gonzalez <[address removed]>
To: [address removed]
Sent: Tuesday, March 17, 2009 7:34:27 PM
Subject: Re: [php-139] configure phpMyAdmin on PHP5, Leopard, timezone error, Apache2
Are you sure you are editing the right php.ini file? Run your phpinfo() script again and see what the php.ini file is?On Tue, Mar 17, 2009 at 7:14 PM, Janis Rough <[address removed]> wrote:
Nick & Nick et al
I took out everything exJanis L. Rough
I now have onlyI restarted and got the same error. I looked in the config folder in phpMyADmin. A config.php file didn't get saved.
date.timezone = America/Los_Angeles
I even deleted the server and started over with the setup. The folder is system Read and Write, and Everyone read & write
and Wheel is Read only.
Below are all the errors:
It has been a problem.
Thanks,
-Janis
-------------------Runtime Notice in ./libraries/common.inc.php#281
date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
Backtrace
./libraries/common.inc.php#281: date_default_timezone_get()
./setup/lib/common.inc.php#18: require_once(./libraries/common.inc.php)
./setup/index.php#12: require(./setup/lib/common.inc.php)
Warning: Cannot modify header information - headers already sent by (output started at /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/Error.class.php:359) in /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/header_http.inc.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/Error.class.php:359) in /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/header_http.inc.php on line 23
Warning: Cannot modify header information - headers already sent by (output started at /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/Error.class.php:359) in /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/header_http.inc.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/Error.class.php:359) in /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/header_http.inc.php on line 25
Warning: Cannot modify header information - headers already sent by (output started at /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/Error.class.php:359) in /Users/jr/Sites/phpMyAdmin-3.1.3-english/libraries/header_http.inc.php on line 28Sent: Tuesday, March 17, 2009 5:04:48 PM
From: Nick Wilson <[address removed]>
To: [address removed]
Subject: Re: [php-139] configure phpMyAdmin on PHP5, Leopard, timezone error, Apache2
Just to be sure we are on the same page, your timezone line should be:
date.timezone = America/Los_Angeles
It shouldn't have anything else after America/Los_Angeles and it
shouldn't be in quotes.
On Tue, Mar 17, 2009 at 5:00 PM, Janis Rough <[address removed]> wrote:
> I first removed the quotes around 'America/Los_Angeles' and got the same
> error.
> then I also removed the quotes around the for 'PDT/-7.0/DST' also. It still
> gives the timezone error.
> It is strange, it must be something simple since PHP5 is loaded.
> Thanks,
>
>
> ________________________________
> From: Nick Wilson <[address removed]>
> To: [address removed]
> Sent: Tuesday, March 17, 2009 4:17:53 PM
> Subject: Re: [php-139] configure phpMyAdmin on PHP5, Leopard, timezone
> error, Apache2
>
> Remove the quotes around the timezone in php.ini
>
> On Tue, Mar 17, 2009 at 4:12 PM, Chris Brand <[address removed]> wrote:
>> I find this to be the best solution for getting a lamp stack on a leopard
>> machine.
>>
>> http://www.mamp.info/en/index.html
>>
>> Christopher Brand
>> Phone: [masked]
>> Blog: http://www.NikonWindow.com
>>
>>
>> On Tue, Mar 17, 2009 at 4:00 PM, Janis Rough <[address removed]> wrote:
>>>
>>> I hope someone can help me.
>>> I upgraded to Leopard.
>>> I installed the latest version of PHP5 for Intel/ppc Macs.
>>> I can't configure phpMyADmin using setup.
>>> There is this pesky timezone error.
>>> Someone said that is because Apache2 doesn't know where to pull up the
>>> php5 module and so it is accessing php4 instead and that is why there is
>>> a
>>> timezone error from php4. I don't think this is correct. I have the two
>>> references to php4 commented out in httpd.conf:
>>> #LoadModule php4_module libexec/httpd/libphp4.so
>>> #AddModule mod_php4.c
>>>
>>> Also in php.ini I have the timezone set:
>>> date.timezone = 'America/Los_Angeles' for 'PDT/-7.0/DST'
>>>
>>> So why am I even getting a time zone error? Can you see anything in my
>>> php_info() below that might give a clue?
>>>
>>> I notice that entropy build has a directive to load the php5 module and
>>> the libphp5.so is in
>>> /usr/local/php5/libphp5.so, so all should be well. Besides I am getting
>>> php 5.2.6 in php_info:
>>> --------------entropy directive-----
>>>
>>> LoadModule php5_module /usr/local/php5/libphp5.so
>>>
>>> <IfDefine APACHE1>
>>> AddModule mod_php5.c
>>> </IfDefine>
>>>
>>> <IfModule mod_php5.c>
>>>
>>> AddType application/x-httpd-php .php
>>> AddType application/x-httpd-php-source .phps
>>>
>>> <IfModule mod_dir.c>
>>> DirectoryIndex index.html index.php
>>> </IfModule>
>>>
>>> </IfModule>
>>> "entropy-php.conf" 26L, 493C
>>> -----------------------------------
>>> But it seems to me this directive is working because I am getting
>>> php5.2.6
>>> in php_info()
>>> So how can I get rid of this pesky time zone error so I can use
>>> phpMyAdmin?
>>> Thanks and Regards,
>>> --Janis
>>> -----php_info()-------------
>>>
>>> System Darwin J-Rs-Computer 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
>>> 17:39:01 PST 2008; root:xnu-1228.9.59~1/RELEASE_PPC Power Macintosh
>>> Build Date Sep 19 2008 11:23:02
>>> Configure Command
>>> '/SourceCache/apache_mod_php/apache_mod_php-44.1/php/configure'
>>> '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info'
>>> '--disable-dependency-tracking' '--with-apxs2=/usr/sbin/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-sock=/var/mysql' '--with-mysqli=/usr/bin/mysql_config'
>>> '--with-mysql=/usr' '--with-openssl' '--with-xmlrpc' '--with-xsl=/usr'
>>> '--without-pear'
>>>
>>>
>>> Janis L. Rough
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Please Note: If you hit "REPLY", your message will be sent to everyone on
>>> this mailing list ([address removed])
>>> This message was sent by Janis Rough ([address removed]) from The San
>>> Francisco PHP Meetup Group.
>>> To learn more about Janis Rough, visit his/her member profile
>>> To unsubscribe or to update your mailing list settings, click here
>>>
>>> Meetup Support: [address removed]
>>> 632 Broadway, New York, NY 10012 USA
>>
>>
>>
>>
>> --
>> Please Note: If you hit "REPLY", your message will be sent to everyone on
>> this mailing list ([address removed])
>> This message was sent by Chris Brand ([address removed]) from The San
>> Francisco PHP Meetup Group.
>> To learn more about Chris Brand, visit his/her member profile
>> To unsubscribe or to update your mailing list settings, click here
>>
>> Meetup Support: [address removed]
>> 632 Broadway, New York, NY 10012 USA
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on
> this mailing list ([address removed])
> http://www.meetup.com/sf-php/
> This message was sent by Nick Wilson ([address removed]) from The San
> Francisco PHP Meetup Group.
> To learn more about Nick Wilson, visit his/her member profile:
> http://www.meetup.com/sf-php/members/8266193/
> To unsubscribe or to update your mailing list settings, click here:
> http://www.meetup.com/account/comm/
> Meetup Support: [address removed]
> 632 Broadway, New York, NY 10012 USA
>
>
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on
> this mailing list ([address removed])
> This message was sent by Janis Rough ([address removed]) from The San
> Francisco PHP Meetup Group.
> To learn more about Janis Rough, visit his/her member profile
> To unsubscribe or to update your mailing list settings, click here
>
> Meetup Support: [address removed]
> 632 Broadway, New York, NY 10012 USA
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
http://www.meetup.com/sf-php/
This message was sent by Nick Wilson ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Nick Wilson, visit his/her member profile: http://www.meetup.com/sf-php/members/8266193/
To unsubscribe or to update your mailing list settings, click here: http://www.meetup.com/account/comm/
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Janis Rough ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Janis Rough, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA
--
Robert Gonzalez
http://www.robert-gonzalez.com
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Robert Gonzalez ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Robert Gonzalez, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Janis Rough ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Janis Rough, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA
--
Robert Gonzalez
http://www.robert-gonzalez.com
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Robert Gonzalez ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Robert Gonzalez, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Janis Rough ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Janis Rough, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA
--
Robert Gonzalez
http://www.robert-gonzalez.com
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Robert Gonzalez ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Robert Gonzalez, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Janis Rough ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Janis Rough, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA