Using on Snow Leopard Server

View: New views
3 Messages — Rating Filter:   Alert me  

Using on Snow Leopard Server

by Alexander Cua :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the server up and running but I need PHP mcrypt and imap  
modules in order to use SugarCRM and phpMyAdmin.
I have macports running on the server tried the ports install  
php_mcrypt.
I think it must have recompiled everything on another location since  
my phpinfo() says mcrypt is still not installed?

Can someone help me out? I'm a new user on the Mac OS server so don't  
know my way around everything yet.

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Re: Using on Snow Leopard Server

by Bradley Giesbrecht :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 5, 2009, at 7:51 AM, Alexander Cua wrote:

> I have the server up and running but I need PHP mcrypt and imap  
> modules in order to use SugarCRM and phpMyAdmin.
> I have macports running on the server tried the ports install  
> php_mcrypt.
> I think it must have recompiled everything on another location since  
> my phpinfo() says mcrypt is still not installed?
>
> Can someone help me out? I'm a new user on the Mac OS server so  
> don't know my way around everything yet.

Are you running the Apple supplied Apache2?

If so try stopping Apple apache and starting macports apache. Macports  
apache will be at /opt/local/apache unless you changed the macports  
prefix.


// Brad
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Parent Message unknown Re: Using on Snow Leopard Server

by Bradley Giesbrecht :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexander, please use "Reply All" so your replies also go to the macports list.

On Nov 5, 2009, at 8:26 AM, Alexander Cua wrote:

Is there a cheat sheet on how to do this without breaking anything?

An option is to use the macports php5 with apples apache by installing php5-mcrypt and changing your mod_php in your Apache GUI to point to the macports php5.

It has not happened to me yet but it's possible an apple update would change this back so you would have to point it back to macports php5 if this happens.

// Brad

On Nov 5, 2009, at 11:23 AM, Bradley Giesbrecht wrote:


On Nov 5, 2009, at 8:11 AM, Alexander Cua wrote:

Brad,

Thanks for the quick response.
Yes. I'm still running the Apple Apache.

This are the last messages from the port:
To enable PHP in Apache, run
 cd /opt/local/apache2/modules
 /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
--->  Cleaning php5
--->  Fetching php5-mcrypt
--->  Verifying checksum(s) for php5-mcrypt
--->  Extracting php5-mcrypt
--->  Configuring php5-mcrypt
--->  Building php5-mcrypt
--->  Staging php5-mcrypt into destroot
--->  Installing php5-mcrypt @5.3.0_1
--->  Activating php5-mcrypt @5.3.0_1
--->  Cleaning php5-mcrypt

I have not run - /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so. I'm concerned it might break things and this is a running server.

How do I proceed with the Macports Apache. If I do this, does it break the Apache GUI in the Server Admin?

Yes. 

If you want to use Apples Apache your best to not use MacPorts and just compile your apache and php modules from source.


// Brad



_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users