| View previous topic :: View next topic |
| Author |
Message |
shl
Joined: 05 Feb 2008 Posts: 6
|
Posted: Sun Feb 10, 2008 3:04 Post subject: |
|
|
| Quote: | pdf
PDF Support => enabled
PDFlib GmbH Binary-Version => 7.0.2
PECL Version => 2.1.3
Revision => $Revision: 1.5.2.4 $ |
ok, it only works in 32bit mode? |
|
| Back to top |
|
 |
shl
Joined: 05 Feb 2008 Posts: 6
|
|
| Back to top |
|
 |
codethought
Joined: 03 Feb 2008 Posts: 3
|
Posted: Sun Feb 10, 2008 3:53 Post subject: |
|
|
I just got Beta 6 running here on my 10.5.1-based Mac Pro. It's working great!! Thanks Marc for all of your hard work!!!
 |
|
| Back to top |
|
 |
hjl
Joined: 10 Feb 2008 Posts: 2
|
Posted: Sun Feb 10, 2008 16:27 Post subject: Working nicely except.. |
|
|
I installed the beta6 successfully and according to info.php everything is working fine. However could anyone point me in the right direction to get my mysql server working again with entropy php? Or at least what do i do now to set up the mysql server again?
Thanks for making entropy php on leopard  |
|
| Back to top |
|
 |
shl
Joined: 05 Feb 2008 Posts: 6
|
Posted: Sun Feb 10, 2008 16:32 Post subject: |
|
|
in your own php.ini (/usr/local/php5/lib/php.ini):
| Code: | | mysql.default_socket = /var/mysql/mysql.sock |
|
|
| Back to top |
|
 |
ghostwheel
Joined: 03 Feb 2008 Posts: 5
|
Posted: Sun Feb 10, 2008 17:09 Post subject: |
|
|
| shl wrote: | in your own php.ini (/usr/local/php5/lib/php.ini):
| Code: | | mysql.default_socket = /var/mysql/mysql.sock |
|
i tried making this change to the php.ini file, but still had no luck connecting to mysql.
fwiw, mysql.sock is located at /tmp/mysql.sock on my machine (built mysql according to hivelogic's instructions).
i also tried creating a sym link in /var/mysql to /tmp/mysql.sock, but that didn't work either.
running from command line, leopard's built in php can connect, but beta 6 cannot. |
|
| Back to top |
|
 |
hjl
Joined: 10 Feb 2008 Posts: 2
|
Posted: Sun Feb 10, 2008 17:17 Post subject: lol |
|
|
I think i have the opposite problem of Ghostwheel. When i connect with CocoaMySQL and don't specify a socket then it tries to find the socket in /tmp/mysql.sock, however my sock file is in /var/mysql/mysql.sock
Setting the php.ini to /var/mysql/mysql.sock didnt work either.
I've created a new Joomla site, which works fine. However my site prior to updating to entropy php says 'cant connect to mysql database'
Any ideas on this one? |
|
| Back to top |
|
 |
Calebg
Joined: 10 Feb 2008 Posts: 3
|
Posted: Sun Feb 10, 2008 18:51 Post subject: Confirmation of 32 bit intel issues |
|
|
I can confirm Marc's comments about 32 bit intel not working correctly in all instances:
Quote:
It seems to be a 32bit/64bit problem with the MySQL client library I build, regardless of architecture.
64bit Intel works, both 32 bit Intel and PPC don't work:
I have installed everything on a 32 bit generation 1 macbook core duo and PHP's connection to mysql works only for somethings. For instance, phpmyadmin works just fine - however nothing I did could get it to work with several different Drupal instances - instances that were working just fine previously.
I believe this may be related to the fact that sessions were not being initiated/cookies were not being set when I visited my Drupal pages. In Drupal this will cause the access errors I saw, if I'm not mistaken, since even anonymous users are assigned a cookie/session.
So maybe it's really just all a problem with cookie/session creation for 32 bit architectures? |
|
| Back to top |
|
 |
ghostwheel
Joined: 03 Feb 2008 Posts: 5
|
Posted: Mon Feb 11, 2008 1:26 Post subject: Re: Confirmation of 32 bit intel issues |
|
|
| Calebg wrote: | | So maybe it's really just all a problem with cookie/session creation for 32 bit architectures? |
Hmm, I don't see this applying in my case, as I'm just running a test via the command line (taking Apache out of the equation).
Curious that phpmyadmin works for you though. Have you tried running a custom/standalone connection script (something not tied to an application)? |
|
| Back to top |
|
 |
michel
Joined: 09 Feb 2008 Posts: 3
|
Posted: Mon Feb 11, 2008 10:25 Post subject: Re: mysql connection issues |
|
|
| ghostwheel wrote: | | any word on a fix for the mysql connection issues? |
I found out that authentication fails when the users password
was made by PASSWORD('secret') in MySQL 5. Users from older
MySQL versions (PASSWORD_OLD('secret')) get access. |
|
| Back to top |
|
 |
martijnd
Joined: 11 Feb 2008 Posts: 2
|
Posted: Mon Feb 11, 2008 13:36 Post subject: PDFlib / Mysql problem |
|
|
Hi,
First of all, thanks for the great work! I have been using the entropy php package for development purposes for years now!
Unfortunately in my attempts to get my new system up and running, I encounter some problems.
The situation:
I bought a new Mac Pro, so system is x86_64.
It runs Leopard.
I use the entropy php-5.2.5-6 package succesfully with the built in apache of Leopard: (Apache/2.2.6)
I am succesfully running MySQL 5.0.51a, installed based on the .tar package of the mysql website.
The above described setting works perfectly. No problems with MySQL (using phpmyamdin, using PDO to connect to mysql in my scripts).
Here comes the problem:
For a project in development I use the block functionality of PDFLib PPS (commercial), therefore I need version 7 of PDFLib.
So I installed PDFlib using the DSO as is described in the documentation. It is loaded as an dynamic library by PHP.
Under the set-up as described above I find an 'unable to load dynamic library' error in the apache error_log file. Using the hint given here (run apache in 32bit mode) the pdflib library is loaded! However, now my php scripts cannot connect to mysql using PDO!
Obviously, I really need both MySQL and PDFLib 7!
So, is there a solution to be able to run PHP5, MySQL 5+, PDFLib 7 on Leopard on a Mac Pro (x86_64)? Does anyone has suggestions? |
|
| Back to top |
|
 |
ghostwheel
Joined: 03 Feb 2008 Posts: 5
|
Posted: Tue Feb 12, 2008 2:13 Post subject: Re: mysql connection issues |
|
|
| michel wrote: | I found out that authentication fails when the users password
was made by PASSWORD('secret') in MySQL 5. Users from older
MySQL versions (PASSWORD_OLD('secret')) get access. |
sure enough, i updated my test user's password using the OLD_PASSWORD function and now i can connect.
thanks!
out of curiosity, how did you think to check that?
also, any idea why would this not affect 64 bit machines? |
|
| Back to top |
|
 |
martijnd
Joined: 11 Feb 2008 Posts: 2
|
Posted: Tue Feb 12, 2008 16:59 Post subject: update on PDFlib |
|
|
I contacted the support department of PDFlib with the issue I have with PDFlib, see above. They are currently fixing the problems that prevent using PDFlib with PHP and Apache on OS X 10.5.
Thought to just keep you posted.
They propose a workaround: running PHP as a CGI module.
Soon will further investigate/try solutions.
Suggestions are still welcome! |
|
| Back to top |
|
 |
mumunol
Joined: 13 Nov 2007 Posts: 15 Location: Paris, France
|
Posted: Wed Feb 13, 2008 1:00 Post subject: Re: mysql connection issues |
|
|
| ghostwheel wrote: | | michel wrote: | I found out that authentication fails when the users password
was made by PASSWORD('secret') in MySQL 5. Users from older
MySQL versions (PASSWORD_OLD('secret')) get access. |
sure enough, i updated my test user's password using the OLD_PASSWORD function and now i can connect.
thanks!
out of curiosity, how did you think to check that?
also, any idea why would this not affect 64 bit machines? |
The issue was also affecting my Intel 64 bits machine where a complete install of mysql 5.0.45 i686 had been made.
But I found a solution :
1- replacing mysql include elements (MYSQL_INCLUDE) from Marc installation with include elements from the original mysql installation
2- replacing mysql lib elements (MYSQL_LIBS) from Marc installation with lib elements from the original mysql installation.
In other words :
- I replaced the content of | Code: | | /usr/local/php5/include/mysql | with the content of | Code: | | /usr/local/mysql-5.0.45-osx10.4-i686/include |
- I replaced the content of | Code: | | /usr/local/php5/lib/mysql | with the content of | Code: | | /usr/local/mysql-5.0.45-osx10.4-i686/lib |
And no more password issue after restarting mysql server. |
|
| Back to top |
|
 |
sfstreet
Joined: 27 Jan 2008 Posts: 16 Location: San Francisco, CA
|
Posted: Thu Feb 14, 2008 22:24 Post subject: PHP5 on OSX 10.5 - post beta |
|
|
Is there a chance this can be publicly available anytime soon. I am dying to get a copy of it to get the GD Lib working. I been spammed so many times by a lot of spammers coming in with some script. Since I don't get my GD support on Leopard's built in PHP, I get so frustrated all the time.
I am dying and hoping maybe hopelessly..
Thank you guys for all your hard work everyday.
Everybody appreciates it all over the world. |
|
| Back to top |
|
 |
|