Emma Badger | 1 May 18:06

Mac OSX Tiger, installing Apache2, PHP5, MySQL5

I successfully installed Apache2 and got it working and then installed PHP5.
I configured Apache2 to use PHP5 and got the error "Cannot load
\usr\local\php5\libphp5.so into server: cannot create object file image or
add library".

I posted the error on macosxhints and was told that it would be better to
install the applications using DarwinPorts.  I removed PHP5 and Apache2 and
got Apache 1.3 working.  I installed DarwinPorts and Apache2, PHP5 and
MySQL5 using sudo port install php5 +apache2 +mysql5.

I still had to configure Apache2 to get it working (should DarwinPorts do
the configuration for you?) and I'm still getting the same error.

My httpd.conf says
LoadModule php5_module /usr/local/php5/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

I've checked that libphp5.so exists in \usr\local\php5.

Any help would be appreciated.

Thanks
eoghan | 1 May 18:11

Re: Mac OSX Tiger, installing Apache2, PHP5, MySQL5

Emma Badger wrote:
> I successfully installed Apache2 and got it working and then installed PHP5.
> I configured Apache2 to use PHP5 and got the error "Cannot load
> \usr\local\php5\libphp5.so into server: cannot create object file image or
> add library".
> 
> I posted the error on macosxhints and was told that it would be better to
> install the applications using DarwinPorts.  I removed PHP5 and Apache2 and
> got Apache 1.3 working.  I installed DarwinPorts and Apache2, PHP5 and
> MySQL5 using sudo port install php5 +apache2 +mysql5.
> 
> I still had to configure Apache2 to get it working (should DarwinPorts do
> the configuration for you?) and I'm still getting the same error.
> 
> My httpd.conf says
> LoadModule php5_module /usr/local/php5/libphp5.so
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
> 
> I've checked that libphp5.so exists in \usr\local\php5.
> 
> Any help would be appreciated.
> 
> Thanks

Hi
Darwinports should install you php/apache etc into /opt/local/ as far as 
i recall. Change you conf to reflect this and make sure the libphp5.so 
is  in /opt. not exactly sure where the lobphp5 is, but do a search for it.
(Continue reading)

Joe Auty | 1 May 18:18

Re: Mac OSX Tiger, installing Apache2, PHP5, MySQL5

Unless you changed the default install locations, the php module  
should have not been installed in /usr/local, but in /opt/local...

On May 1, 2006, at 12:06 PM, Emma Badger wrote:

> I successfully installed Apache2 and got it working and then  
> installed PHP5.
> I configured Apache2 to use PHP5 and got the error "Cannot load
> \usr\local\php5\libphp5.so into server: cannot create object file  
> image or
> add library".
>
> I posted the error on macosxhints and was told that it would be  
> better to
> install the applications using DarwinPorts.  I removed PHP5 and  
> Apache2 and
> got Apache 1.3 working.  I installed DarwinPorts and Apache2, PHP5 and
> MySQL5 using sudo port install php5 +apache2 +mysql5.
>
> I still had to configure Apache2 to get it working (should  
> DarwinPorts do
> the configuration for you?) and I'm still getting the same error.
>
> My httpd.conf says
> LoadModule php5_module /usr/local/php5/libphp5.so
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> I've checked that libphp5.so exists in \usr\local\php5.
>
(Continue reading)

Trevor Smith | 1 May 18:51

Re: Mac OSX Tiger, installing Apache2, PHP5, MySQL5

On 1-May-06, at 1:06 PM, Emma Badger wrote:
> I successfully installed Apache2 and got it working and then  
> installed PHP5.
> I configured Apache2 to use PHP5 and got the error "Cannot load
> \usr\local\php5\libphp5.so into server: cannot create object file  
> image or
> add library".
> ...
> My httpd.conf says
> LoadModule php5_module /usr/local/php5/libphp5.so
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> I've checked that libphp5.so exists in \usr\local\php5.

I also struggled with apache2 + php5 + mysql5. I tried binary  
packages, compiling from individual sources and other combinations.  
Eventually I gave up and used darwinports to install all 3 packages  
and, with some tweaking, got it working.

As noted by others, darwinports installs everything in /opt/local by  
default. Apache2 will quite predictably be in /opt/local/apache2 (but  
php5 and mysql5 will NOT be in /opt/local/mysql and /opt/local/php so  
don't look for them there!).

A few tips:

1. if you had php and apache and mysql installed before, you will  
likely need to check that the old versions are not still being found  
before the new versions (check your path in your .bashrc  
(Continue reading)

Michael Thon | 1 May 20:11
Picon

starting mysql5 server for the first time

I installed mysql5 and I'm trying to start the server.  First I tried  
to run :

sudo /opt/local/share/mysql5/mysql/mysql.server start
Starting MySQL................................... ERROR!

Then, after looking at the portfile, I tried:

sudo -u mysql  mysql_install_db5

It also produced error messages, among them:
Installation of system tables failed!

Examine the logs in /opt/local/var/db/mysql5 for more information.

...which does not exist on my system.  Any suggestions?
thanks
Mike
Joe Auty | 1 May 20:34

Re: starting mysql5 server for the first time

Is this a brand new install, or an upgrade from an older version of  
MySQL?

On May 1, 2006, at 2:11 PM, Michael Thon wrote:

> I installed mysql5 and I'm trying to start the server.  First I  
> tried to run :
>
> sudo /opt/local/share/mysql5/mysql/mysql.server start
> Starting MySQL................................... ERROR!
>
> Then, after looking at the portfile, I tried:
>
> sudo -u mysql  mysql_install_db5
>
> It also produced error messages, among them:
> Installation of system tables failed!
>
> Examine the logs in /opt/local/var/db/mysql5 for more information.
>
> ...which does not exist on my system.  Any suggestions?
> thanks
> Mike
>
>
> _______________________________________________
> Darwinports mailing list
> Darwinports <at> opendarwin.org
> http://www.opendarwin.org/mailman/listinfo/darwinports
(Continue reading)

Michael Thon | 1 May 20:45
Picon

Re: starting mysql5 server for the first time

A brand new install.  also, I'm using OSX 10.4.6...in case it matters...
-Mike

On May 1, 2006, at 1:34 PM, Joe Auty wrote:

> Is this a brand new install, or an upgrade from an older version of  
> MySQL?
>
>
>
> On May 1, 2006, at 2:11 PM, Michael Thon wrote:
>
>> I installed mysql5 and I'm trying to start the server.  First I  
>> tried to run :
>>
>> sudo /opt/local/share/mysql5/mysql/mysql.server start
>> Starting MySQL................................... ERROR!
>>
>> Then, after looking at the portfile, I tried:
>>
>> sudo -u mysql  mysql_install_db5
>>
>> It also produced error messages, among them:
>> Installation of system tables failed!
>>
>> Examine the logs in /opt/local/var/db/mysql5 for more information.
>>
>> ...which does not exist on my system.  Any suggestions?
>> thanks
>> Mike
(Continue reading)

Trevor Smith | 1 May 20:48

Re: starting mysql5 server for the first time

On 1-May-06, at 3:11 PM, Michael Thon wrote:
> I installed mysql5 and I'm trying to start the server.  First I  
> tried to run :
>
> sudo /opt/local/share/mysql5/mysql/mysql.server start
> Starting MySQL................................... ERROR!

Some of my struggles with MySQL5 via Darwinports (and Apache2 and  
PHP5) are documented on this mailing list archive:

http://opendarwin.org/pipermail/darwinports/

View the April 2006 archives, sorted by author and look for my name.  
Some of the advice may prove helpful, in particular the details of  
starting/stoppying MySQL after an install, in this email:

http://opendarwin.org/pipermail/darwinports/2006-April/033781.html

--

-- 
Trevor Smith
trevor <at> haligonian.com
Michael Thon | 1 May 21:46
Picon

Re: starting mysql5 server for the first time


On May 1, 2006, at 1:48 PM, Trevor Smith wrote:

>
> http://opendarwin.org/pipermail/darwinports/2006-April/033781.html

Ah, variants!  I did not know about variants until I read your email!
Thanks for your help.
Mike
Picon

Segmentation fault upgrading darcs

I ran sync and selfupdate just prior to.

charles <at> aluminum ~ $ darcs -v
1.0.6 (release)

charles <at> aluminum ~ $ port outdated
The following installed ports are outdated:
darcs                          1.0.6_0 < 1.0.6_1

charles <at> aluminum ~ $ sudo port -v upgrade darcs
--->  Fetching darcs
--->  darcs-1.0.6.tar.gz doesn't seem to exist in /opt/local/var/db/ 
dports/distfiles/darcs
--->  Attempting to fetch darcs-1.0.6.tar.gz from http:// 
abridgegame.org/darcs/
   % Total    % Received % Xferd  Average Speed   Time    Time      
Time  Current
                                  Dload  Upload   Total   Spent     
Left  Speed
100  941k  100  941k    0     0   110k      0  0:00:08  0:00:08  
--:--:--  128k
--->  Verifying checksum(s) for darcs
--->  Checksumming darcs-1.0.6.tar.gz
--->  Extracting darcs
--->  Extracting darcs-1.0.6.tar.gz
--->  Applying patches to darcs
--->  Applying /opt/local/var/db/dports/sources/ 
rsync.rsync.darwinports.org_dpupdate_dports/devel/darcs/files/patch- 
GNUmakefile
patching file GNUmakefile
(Continue reading)


Gmane