SAPRFC / PHP 5.3.0 / MacOSX Snow Leopard

<pre>(seems message parsing is not working..) Hello gurus !
I've read with a great interrest almost all posts on this forum, and I must say it helped me a lot sorting
out a nearly functional solution for installing SAPRFC PHP extension on a MacOSX Snow Leopard system.
It seems i'm just having a problem with the RFCSDK from SAP not being of the appropriate architecture.
Let me describe my installation process (maybe it can help other people willing to install SAPRFC on
Macintosh plateform equally !)
1. Installation of Macintosh developpement tools (Xcode)
First step was to install XCode Package, from http://developer.apple.com/tools/xcode/ it's a 650Mb
disk-image, that once installed is 2.5Gb on harddrive. This provided me with all php headers that I
needed for the next steps.
I made sure my Apache/PHP was functionnal on the Macintosh, this page helped me :
http://www.mac4ever.com/articles/creation/1153/php_mysql_sous_snow_leopard_et_xdebug_eclipse/ (it's in french)
2. Download of RFCSDK from SAP
I was not totally sure which version to install on my system since no "MacOsX version", so I picked
the "Linux on x86_64 64bit" package.
3. Extracting files from the SAR archive
As the binary of SAPCAR was not willing to execute properly, I downloaded a Windows version and
extracted my files on a Windows system.
4. Installing RFCSDK files on the system
I created a folder "sap" in folder "/usr" :
$> sudo mkdir /usr/sap
I created a folder "rfcsdk" in folder "/usr/sap"
$> sudo mkdir /usr/sap/rfcsdk
I copied all files i extracted from the SAR archive into the "/usr/sap/rfcsdk folder" :
$> sudo cp -R ~/Desktop/Linux\ on\ x86_64\ 64bit/ /usr/sap/rfcsdk/*
After this in "/usr/sap/rfcsdk" i have now : 4 folders : bin, include, lib and text
I changed access rights for all the files in sap directory:
$> sudo chmod -R 755 /usr/sap
5. Compiling SAPRFC extension for PHP
I downloaded SAPRFC 1.4.1 from http://saprfc.sourceforge.net/
I created a folder module under "/usr/sap" :
$> sudo mkdir "/usr/sap/module"
I unpacked the files from the saprfc-1.4.1.tar.gz archive into "/usr/sap/module/"
I ran phpize while in folder "/usr/sap/module/"
$> cd /usr/sap/module
$> sudo phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
(I made sure the phpize which was called was the one corresponding to the php version i was
running with apache, "locate phpize" helped me to sort out if there was serveral phpize that could
potentially be executed)
I ran then the configuration script
$> sudo ./configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
Then i ran the compilation :
$> sudo make
/bin/sh /usr/sap/module/libtool --mode=compile cc  -I. -I/usr/sap/module -DPHP_ATOM_INC
-I/usr/sap/module/include -I/usr/sap/module/main -I/usr/sap/module -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
-I/usr/include/php/ext/date/lib -I/usr/sap/rfcsdk/include  -DHAVE_CONFIG_H  -g -O2  
-c /usr/sap/module/saprfc.c -o saprfc.lo
mkdir .libs
cc -I. -I/usr/sap/module -DPHP_ATOM_INC -I/usr/sap/module/include -I/usr/sap/module/main
-I/usr/sap/module -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/sap/rfcsdk/include -DHAVE_CONFIG_H -g -O2 -
c /usr/sap/module/saprfc.c  -fno-common -DPIC -o .libs/saprfc.o
/usr/sap/module/saprfc.c: In function '__callback_dispatch':
/usr/sap/module/saprfc.c:263: warning: format not a string literal and no format arguments
/bin/sh /usr/sap/module/libtool --mode=compile cc  -I. -I/usr/sap/module -DPHP_ATOM_INC
-I/usr/sap/module/include -I/usr/sap/module/main -I/usr/sap/module -I/usr/include/php
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
-I/usr/include/php/ext/date/lib -I/usr/sap/rfcsdk/include  -DHAVE_CONFIG_H  -g -O2  
-c /usr/sap/module/rfccal.c -o rfccal.lo
cc -I. -I/usr/sap/module -DPHP_ATOM_INC -I/usr/sap/module/include -I/usr/sap/module/main
-I/usr/sap/module -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM
-I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/sap/rfcsdk/include
-DHAVE_CONFIG_H -g -O2 -c /usr/sap/module/rfccal.c  -fno-common -DPIC -o .libs/rfccal.o
/usr/sap/module/rfccal.c: In function 'cal_allocate':
/usr/sap/module/rfccal.c:36: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'
/usr/sap/module/rfccal.c:50: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'
/bin/sh /usr/sap/module/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/sap/module/include -I/usr/sap/module/main -
I/usr/sap/module -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/sap/rfcsdk/include  -DHAVE_CONFIG_H  -g -O2  
-o saprfc.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/sap/module/modules 
saprfc.lo rfccal.lo -Wl,-rpath,/usr/sap/rfcsdk/lib -L/usr/sap/rfcsdk/lib -lrfccm
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/saprfc.so -bundle 
.libs/saprfc.o .libs/rfccal.o  -L/usr/sap/rfcsdk/lib -lrfccm -Wl,-rpath -Wl,/usr/sap/rfcsdk/lib
+ld: warning: in /usr/sap/rfcsdk/lib/librfccm.so, file is not of required architecture+
creating saprfc.la
(cd .libs && rm -f saprfc.la && ln -s ../saprfc.la saprfc.la)
/bin/sh /usr/sap/module/libtool --mode=install cp ./saprfc.la /usr/sap/module/modules
cp ./.libs/saprfc.so /usr/sap/module/modules/saprfc.so
cp ./.libs/saprfc.lai /usr/sap/module/modules/saprfc.la
Libraries have been installed in:
   /usr/sap/module/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
     during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
Build complete.
Don't forget to run 'make test'.
And here seems the problem to be :
ld: warning: in /usr/sap/rfcsdk/lib/librfccm.so, file is not of required architecture
I continued anyway :
$> sudo make install
Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20090626/
6. Installing the PHP extension in the PHP.ini
I went to /etc and stated editing php.ini :
$> sudo vi /etc/php.ini
I went to the extensions part and added the line :
extension     = "/usr/lib/php/extensions/no-debug-non-zts-20090626/saprfc.so"
+(for some reason, when setting extension = saprfc.so, i had some errors, while the
extension folder was defined to extensions/no-debug-non-zts-20090626 ... no clue
why, nevermind, works better with full path...)+
;   extension=/path/to/extension/msql.so
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
extension     = "/usr/lib/php/extensions/no-debug-non-zts-20090626/saprfc.so"
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;extension=php_bz2.dll
;extension=php_curl.dll
I saved my php.ini file forcing write of the read only file (Esc, ":wq!", enter)
7. Testing the installation
I restarted my apache server, and checked /var/log/apache2/error_log; at this time no
error shows here yet.
I put the saprfc_test.php file in my Sites/ folder to test it with http://localhost// and the page
just load fine, and the php script seems to not fail on the test : if (! extension_loaded ("saprfc")),
so.. normally the extension is loaded by php.
After viewing the saprfc_test.php page, some errors appears in the /var/log/apache2/error_log :
dyld: lazy symbol binding failed: Symbol not found: _RfcGetAllLibVersions
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20090626/saprfc.so
  Expected in: flat namespace
dyld: Symbol not found: _RfcGetAllLibVersions
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20090626/saprfc.so
  Expected in: flat namespace
8. Trying to find out the issue
I wanted to run LDD tool on saprfc.so to find out if the linking was correctly done with the library
"/usr/sap/rfcsdk/lib/librfccm.so" but it appears that ldd is not available on MacOSX and Apple
recommand using "otool -L" instead.
Here we go :
*$> cd /usr/lib/php/extensions/no-debug-non-zts-20090626
*$> otool -L saprfc.so"
saprfc.so:
     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)
Not very "verbose".. i tried the otool -l (minus L) to view any better info :
*$> otool -l saprfc.so"
saprfc.so:
Load command 0
      cmd LC_SEGMENT_64
  cmdsize 552
  segname __TEXT
   vmaddr 0x0000000000000000
   vmsize 0x0000000000011000
  fileoff 0
filesize 69632
   vmaddr 0x0000000000013000
   vmsize 0x0000000000006000
  fileoff 73728
filesize 22088
  maxprot 0x00000007
initprot 0x00000001
   nsects 0
    flags 0x0
Load command 3
     cmd LC_UUID
cmdsize 24
   uuid 0x21 0xea 0x9e 0x15 0xca 0x1c 0xd8 0xe8
        0x35 0x3e 0x54 0x86 0x3e 0x58 0xa1 0x8a
Load command 4
            cmd LC_DYLD_INFO_ONLY
        cmdsize 48
     rebase_off 73728
    rebase_size 16
       bind_off 73744
      bind_size 1272
  weak_bind_off 0
weak_bind_size 0
  lazy_bind_off 75016
lazy_bind_size 2992
     export_off 78008
    export_size 1560
Load command 5
     cmd LC_SYMTAB
cmdsize 24
  symoff 79568
   nsyms 575
  stroff 89760
strsize 6056
Load command 6
            cmd LC_DYSYMTAB
        cmdsize 80
      ilocalsym 0
      nlocalsym 405
     iextdefsym 405
     nextdefsym 75
      iundefsym 480
      nundefsym 95
         tocoff 0
           ntoc 0
      modtaboff 0
        nmodtab 0
   extrefsymoff 0
    nextrefsyms 0
indirectsymoff 88768
  nindirectsyms 247
      extreloff 0
        nextrel 0
      locreloff 0
        nlocrel 0
Load command 7
          cmd LC_LOAD_DYLIB
      cmdsize 56
         name /usr/lib/libSystem.B.dylib (offset 24)
   time stamp 2 Thu Jan  1 01:00:02 1970
      current version 125.0.0
compatibility version 1.0.0
Load command 8
          cmd LC_RPATH
      cmdsize 32
         path /usr/sap/rfcsdk/lib (offset 12)
OK this time, seems there is at least 1 mention of my RFCSDK in the last line, but .. just a path to the
lib folder, no mention to the library file it self.. i'm just a bit confused now !
Thank you for reading all this, now, maybe you if already managed to have a MacOSX SAPRFC
working or have any clue where I can find a RFCSDK library (or compilable sources) that would
just work on a Mac OSX system.. Thanks for your kind advices
Edited by: Lemmus on Dec 22, 2009 1:59 PM
Edited by: Julius Bussche on Dec 22, 2009 4:05 PM
Fixed formating a bit </pre>

Hey that is one crazy message Lemmus. If you want people to respond a little human parsing and indenting maybe required.
I have one thought.
What version on SAP are you connecting to? If it is ECC6 or a netweaver system I would get hold of the sapnwrfc library. (Google is your friend)
It is designed to work with the new netweaver rfc interface.
Cheers,
Nigel

Similar Messages

  • Can i upgrade from a MacOSX Snow Leopard 10.6.8 to 10.7.  need a 10.7 in order to access my Family Tree maker

    I have a MacOSX Snow Leopard 10.6.8 snow Leopard and need to upgrade to a 10.7 + in order to access
    myMacFamily Tree Maker for genealogy I just recently upgraded to the 10.6.8 but need higher for tree maker

    I have purchased RAM several times from Other World Computing and have always been very satisfied with the product and service. They have on-line instructions on how to replace the RAM. OWC has also tested RAM above what Apple states is the maximum. I now have 6GB installed on a machine supposedly limited to 4 GB.
    Crucial
    Other World Computing

  • Have macbook pro 10.6 -macosx snow leopard what ??  windows have if any have alot of .exe files unable to open

    i have a macbook pro 10.6 (2010) i think this is OSX with snow leopard, i am confused how do i figure this out iguess i dont have any windows? all of .exe files i cant open and some downloads say i am in DOS mode. Where do i start to know what i have and what i  need and what i am running on? new to this world. Thanks Do i do anything with the bootcamp app at this time?

    how do i check before downloading?
    By reading the system requirements prior to any downloading or installation.
    Rule of thumb: You should never let your hard drive get to where you have only 10-15% of space left.
    Slimming your hard drive

  • Unable to boot from bootcamp to macosx snow leopard in bootcamp ctrl panel

    update to bootcamp 3.2 for win 32
    winxp home sp2 bootcamp,
    open bootcamp ctrl pnl> select macosx to reboot> press enter> dialogue to restart now?> yes
    desktop freezes, i press ctrl alt del, .. nothing get the busy/working cursor
    this happened on the last update also.
    so i do a hard shutdown,
    is there a patch to fix this / changing registry key / editing bootloader ?
    tl;dr
    trying to reboot from xp to macosx in BOOTCAMP CTRL PANEL (bootcamp 3.2)
    ty,
    -r

    trying to reboot...in BOOTCAMP CTRL PANEL (bootcamp 3.2)
    I've been noticing that Boot Camp 3 is a bit more finicky when rebooting back to OSX. I'm suspecting that the desired partition is not set correctly in the PRAM/NVRAM, so the Mac is looking for a non-existent partition to boot from. Nothing that happens consistently for me; happens maybe one out of every 40-50 reboots.
    The workaround is instead of using the control panel in Windows to reboot to OSX, just shut down Windows as normal, then start the Mac holding down the Option key. OSX's Startup Disk System Preference seems to set the startup disk correctly, but Boot Camp's seems to have issues. Once I stopped using the control panel in Windows to reboot, I haven't had the hanging reboot issue so far. YMMV, but something to try that's different than what you're doing now.
    ...i'm getting stuck at bootcamp ctrl panel > choose which os to restart to, > i select macosx in the ctrl panel, after i click yes to restart it freezes after 20 secs and it stays that way for more than 10 mins, so i hard shutdown(holding down power button)
    If my suspicion is correct and the contents of the PRAM/NVRAM are corrupt (i.e.: Boot Camp Control Panel not setting startup disk correctly,) you should to [reset the PRAM|http://support.apple.com/kb/ht1379].

  • Where is the Guitar Tuner? Logic 9, MacOSX Snow Leopard

    This is absolutely silly, but, I have a Track, with guitar settings, and through the Insert panel I cannot find the Tuner in *any* area of the menus, no matter how deep I dive. However, if I select an Apple premade guitar setting, viola - Tuner. I've searched these forums and previous answers to the question do not apply - I don't know if it's a version thing or not.
    Two solutions I found said that there was a tuning fork in the transport bar (false), and that you could select it from the Insert panel (false).

    Awesome! Thanks much. There are some other "where is the guitar tuner?" questions on this forum where I saw the answer "the tuning fork is in the transport panel" - but it was actually for GarageBand (didn't properly read the breadcrumbs).
    I think this is awfully weird that Apple would put the tuner on an individual instrument track - creating multiple instances of the Tuner object in memory on every track, when it could really just be a global thing. I'm sure there is some reason for this - I'd love to know!
    I guess studio professionals consider a guitar tuner a "meter" - from a guitar player perspective, I would picture it to be at the very least a pedal on the pedalboard, or a global widget.

  • Benefits of Snow Leopard?

    I'm confused.  I bought MacOSX Snow Leopard because I thought it was the newest/best upgrade and would allow me to use ICloud.  Now I see it doesn't work with ICloud, according to these discussions. So what are the benefits of Snow Leopard?  Looks like I wasted $30. 

    It allows you to access the App Store, to purchase and download Lion which will give you iCloud. So you haven't wasted $30.00 unless you already have Lion in which case I don't know why you bought Snow Leopard nor why you think you can't use iCloud.

  • Snow Leopard, PHP, MySQL, Apache and Wordpress!

    Hi there,
    It's taken me most of the day to work this out, so I thought I should post about it somewhere and here, on the Apple forum, is the ideal location.
    I'm a web developer and love the fact that my MacBook works out of the box with a Unix webserver and with little effort, I was able to set up PHP and MySQL on it. I was delighted to hear that the new Snow Leopard was shipping with the latest and greatest of both. It wasn't quite that easy when it came down to running my test sites, one of which I'm working on is a Wordpress site. Far from being daunting, the solutions to the problems I had were quite simple. The issues arose from the OS not having much exposure yet and not many people having posted their experiences on the web. It was just time consuming.
    I should mention at this point that this does require some tinkering with Terminal, but not so much as to cause damage if you do something wrong.
    First off Apache. Thankfully this is as stable as it always has been. All this requires to activate it is to visit System Preferences > Sharing and switch on Web sharing. Bish-bosh, job done.
    Next off PHP. If you open a Safari window and run your phpinfo.php file (where ever you have it saved. If you don't, they're out there, it's a tiny piece of code which you can use to find out your current php setup). You'll find that everything is superb! PHP 5.3! Excellent! Hang on, scroll down to the date and time section. Whoa! What's this big fat warning here.
    That warning my friend, has been the bane of my misery all day. Wordpress hates it. HATES IT! It causes no end of grief. So what's the multi step, multi program solution?
    Open your php.ini file and add the line:
    date.timezone=Country/City
    (do a Google search for PHP Timezones and you will get the exact settings. It's not so good that it understands every city in the world. My setting was Europe/Dublin).
    That's all. This will solve your issue of the timezone error everywhere. Stop and start Apache (System Preferences > Sharing, tick off and tick back on Web Sharing) and hey presto, error is gone.
    Wait a minute, where the **** is my php.ini file. Unfortunately this is where you have to get your hands dirty. Your php.ini file is a system file which resides in the /etc/ folder. Open a terminal window and type exactly the following:
    cd /etc/
    cp php.ini.default php.ini
    This makes the php.ini file from the default. This protects the original so if you ever need to create a new copy or if you make a mistake in the next steps, you can start again.
    Next I'm going to tell you how to edit this file. This uses a program called vi (there are GUI editors out there that will save you this heartache, so if anyone knows any, please post in response. I think TextWrangler is one).
    First you need to set the php.ini file so you can edit it. Type in exactly as follows:
    sudo chmod 777 php.ini
    Sudo is the superuser commmand. It may not be needed, but stick it in anyway. If you are asked for a password, put in your normal password (that you would be asked for say if you were installing something you downloaded).
    At the next prompt, type in:
    vi php.ini
    This will open the php.ini file. Using the up and down keys, find a blank line in the file. You will notice that alot of the lines start with ';'. These are commented lines. Once you find a blank line, press 'i' to insert text. Your screen will now say '-- INSERT --' at the bottom in red. Type the following in exactly (you will NOT be able to cut and paste):
    ; Set PHP Default Timezone
    date.timezone=Europe/Dublin
    Substitute "Europ/Dublin" with your own timezone. When you are done, press escape. Now type in the following:
    :wq!
    The colon is important (not a typo on my part) as this tells vi you are going to run a command. You should now be back at your prompt. Now you need to reset the permissions on the file. Type the following:
    sudo chmod 444 php.ini
    And that's it. That's your PHP setup and finished. If you run your phpinfo.php file now, you should see your timezone under the date and time where you were getting the error before.
    Now the MySQL. This is a bit of fun because, even though MySQL ships with the system, it's not exactly set up correctly! So once again into terminal.
    This time go to the local directory:
    cd /usr/local/
    If you type in:
    ls -al
    You'll get a directory listing. This has the MySQL folder listed as mysql-5.0.77-osx10.5-x86 (or something! I did that from memory!). This IS the MySQL folder but if you, like me, had previously set the MySQL Preference Pane in your System Preferences, then it won't be able to access this. Type the following command:
    sudo cp -R /usr/local/mysql* /usr/local/mysql
    This should copy everything into a folder called mysql. It takes a couple of seconds (first time on my machine it was a good 20 seconds) to run so be patient. Now you need to do the following:
    sudo chown mysql:mysql /usr/local/mysql
    This sets the owner and group of the mysql files to 'mysql'. If you go back to your MySQL preference pane in System Preferences, you should now be able to start it (something weird about it makes it require to close and reopen the System Preferences window before it can open the MySQL pref pane. This is normal, just click ok).
    The bit that got me here, is that I thought that my activation of the MySQL was actually a new install. I tried everything to change the root user and password for MySQL but in fact, if you had it installed on Leopard, prior to upgrading to Snow Leopard, all your users and passwords are the same. If you HAVEN'T installed it before, I recommend you read the Post Installation Customisation (section 2.3) on the manual for MySQL 5.1 on http://www.mysql.com
    So that's about it. All that remains is to test Wordpress. I have phpmyadmin installed (I've heard CocoaMySQL is very good, like iTunes for db's so I'm gonna check that out later) and was able to create the new wordpress database. I changed the settings in the wp-configure.php file to match my setup but nothing worked. I changed the host from '127.0.0.1' back to 'localhost' (a common complaint of the wordpress setup) but no joy. Then I changed the host back to '127.0.0.1' and added the port :3306 (so the full host is '127.0.0.1:3306') and bingo, the install worked, my database setup and my test site worked.
    So that's it! Many of you out there will say, why didn't you just use MAMP. I did use MAMP, but I also got the Timezone issues and it took far more tinkering and hacking to make it work. I decided that, as my lovely MacBook now running lovely Snow Leopard had the lovely newest versions of PHP and MySQL installed, I'd rather get them working than use a runaround with MAMP. I'm a happier camper for it.
    I hope this helps some of you out there. I don't personally have a blog yet, but when I do, I'll post this up there for all to access. I may even add screen shots!!! But seriously, I hope this helps you all out with your installs. It's so handy to have all this stuff straightaway with Snow Leopard, it's just a matter of getting it to work.
    All the best now,
    T

    Hmmmm... I did a clean drive install of Snow Leopard because I used to do it once a year with Windows and hadn't done it in 3 with my MBP.
    First, my httpd.conf file had the line enabling PHP commented out, so when I went to see my simple file with phpinfo(), I saw the source. Saw your post, thought it was the timezone, fixed that (which will probably make wordpress happy when I get it running), and it still didn't work. Looked at the httpd.conf file, found that PHP was disabled by default, fixed that line, restarted the server, and my phpinfo() worked like a charm.
    Also if you want to edit config files, I use TextWrangler's "open hidden files" option.
    But... I have no /usr/local directory at all. Doesn't exist on my machine. Checked the options in the base install and MySQL isn't offered as an option. Checked the optional installs and MySQL isn't there. Even letting spotlight search for hidden files, the only files with MySQL in their name were from php scripts in my web folders.
    There's some stuff about installing/compiling from source.
    http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/
    Dunno if I want to go down that road quite yet.

  • Trying to restore Snow Leopard PHP to original OS X 10.6.6 configuration

    Several Version of OS X ago, I used Entropy PHP Package because the Apple supplied version did not offer some graphics handlers I needed.
    Now, I'm up to OS X v. 10.6.6, and my entropy PHP no longer works. So I installed what appeared to be the latest release. Apparently it wasn't and Entropy doesn't have a package for 10.6.6. But it did mess up the stock PHP configuration on my machine.
    Now,I understand from some research, that the OS X 10.6.6 version of PHP includes the graphics capabilities I want. The problem is restoring my system to the stock software since Entrophy has apparently messed it up.
    Can I reinstall Snow Leopard 10.6.3 from my original discs and then do the software upgrades to get back to 10.6.6 so I'll have a stock version of PHP ?
    Preferably without losing existing data files.
    Thanks,
    Robert

    After you click Download, it should prompt you for your Apple ID and password - remember you must use the same one used to purchase it - and the download should commence. If that is not happening I have no explanation.
    Perhaps it is already downloaded and waiting for you to install it?

  • PHP/MySQL error since upgrading to Snow Leopard

    When I upgraded to Snow Leopard from Leopard I am getting errors on my webserver:
    *Warning: mysql_connect() http://function.mysql-connect: OK packet 6 bytes shorter than expected in /Library/WebServer/mysql_connect.php on line 8*
    *Warning: mysql_connect() http://function.mysql-connect: mysqlnd cannot connect to MySQL 4.1+ using old authentication in /Library/WebServer/mysql_connect.php on line 8*
    The MySQL server is hosted remotely, and the php files are running locally.
    Any ideas?
    Thanks in advance.

    Got mine working:
    I fixed the bug per http://bugs.php.net/bug.php?id=49267
    and
    I complied php-5.3.1RC1 with
    ./configure '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--sysconfdir=/private/etc' '--with-apxs2=/usr/sbin/apxs' '--enable-cli' '--with-config-file-path=/etc' '--with-libxml-dir=/usr' '--with-openssl=/usr' '--with-kerberos=/usr' '--with-zlib=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--with-curl=/usr' '--enable-exif' '--enable-ftp' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/var/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-iodbc=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-xsl=/usr'

  • Anybody know a guide to revert Snow Leopard Server from php 5.3.1 to 5.2.x

    I need to build a membership database for where I work. I had it working fine on my personal mac, but wanted to host it on a dedicated computer, so last week I went out and bought a Snow Leopard server.
    The biggest issue I've come across is that Snow Leopard ships with php 5.3.1 installed and the Drupal / Civicrm system I'm using will only accept php 5.3.0. and apparently php 5.2.x is a much more stable / less buggy build. So I've been trying to figure out how to remove the installed php and downgrade to a previous build.
    I should also point out that while I can do fairly limited things in Terminal, I am by no means a pro. I
    am looking for something like the entropy build, rather than trying to figure out how to configure the whole thing myself -- if that makes sense.
    Message was edited by: Flakesobran

    You really have two options here.
    Your SonicWall Firewall has a built-in VPN server, so you could configure that, point your remote client to the SonicWall's address and you're set - the remote machine will be given an address in your internal (192.168.2.x) LAN and will be able to communicate with all the other machines on the LAN.
    The other option is to configure the VPN server on your Mini, in which case you'll need to configure port forwarding on the SonicWall so that the VPN traffic (the UDP ports listed above) are passed through to the server.
    The advantage of running on the Mac is that it's automatically tied into the directory system on your Mac, so any user in your Mac's directory will be able to establish a VPN connection. The downside is that it's a little more complex to setup due to the port forwarding requirements.
    In either case, once the VPN connection is established your remote Mac will be able to communicate with any machine on the LAN (the Mini, other clients, printers, etc.). The only thing that won't work will be auto-discovery (e.g. Bonjour), so VPN-based servers won't appear in your Finder's sidebar, for example. To overcome this you'll need to make sure your LAN DNS is working properly or know the IP address of each machine on your LAN.

  • ATTN: Snow Leopard php, MySQL, phpMyAdmin

    Heya,
    I got Snow Leopard installed and first thing I did was setup a testing server. It's a little bit different process from Leopard 10.5 so I wrote up a little info on how to set it all up. Check out http://DwFAQ.info/home.php?id=18 for info on how to setup php, MySQL, phpMyAdmin on Snow Leopard.

    Hmmmm... I did a clean drive install of Snow Leopard because I used to do it once a year with Windows and hadn't done it in 3 with my MBP.
    First, my httpd.conf file had the line enabling PHP commented out, so when I went to see my simple file with phpinfo(), I saw the source. Saw your post, thought it was the timezone, fixed that (which will probably make wordpress happy when I get it running), and it still didn't work. Looked at the httpd.conf file, found that PHP was disabled by default, fixed that line, restarted the server, and my phpinfo() worked like a charm.
    Also if you want to edit config files, I use TextWrangler's "open hidden files" option.
    But... I have no /usr/local directory at all. Doesn't exist on my machine. Checked the options in the base install and MySQL isn't offered as an option. Checked the optional installs and MySQL isn't there. Even letting spotlight search for hidden files, the only files with MySQL in their name were from php scripts in my web folders.
    There's some stuff about installing/compiling from source.
    http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/
    Dunno if I want to go down that road quite yet.

  • 12/13/2014 I suddenly no longer stream videos because of a blocked plug in on my Mac Safari 5.1.10  MacOSX 10.6.8 updated to snow leopard&mountain lion I use adobe flash

    12/13/2014 I suddenly no longer stream videos because of a blocked plug in on my Mac Safari 5.1.10  MacOSX 10.6.8
    updated to snow leopard& mountain lion I use adobe flash. My preferences allow all plug ins.

    If my experience with a similarly aged computer is any indicator, you'll notice an immediately speed hit once you've upgraded to Mavericks. Each OS X update tends to be more memory hungry than the previous and my 2007 iMac wasn't happy with Lion until I upgraded the RAM and at that point Lion performance roughly matched Snow Leopard. Mountain Lion and then Mavericks shaved some speed off again. Mavericks on the 2007 iMac was okay for the most part but switching between applications was slow as was the fileselector.
    My 2009 MBP saw similar slowdowns with Lion but I was above to upgrade it to 8GB which made a big difference. (My iMac was limited to 6GB) but I still saw a significant speed hit with Mt Lion when I tried to run multiple memory intensive applications. Seeing how my wife's MacBook Air dealt with Mt Lion with only 4GB I decided to install an SSD in the MBP and wow what a difference. Tried it with the iMac using a FireWire800 enclosure and saw similar improvement.
    So to boil it down to one sentence, you are going to see a significant speed hit with only 4GB but if you can afford to upgrade your drive to an SSD you'll be amazed at how well that computer can run.

  • Testing PHP In Snow Leopard

    Hello,
    I am trying to enable Web Sharing on my Imac. All seems to be working , Your computers website output is "It Works", your personal website outputs the default page. But, when I try to run /Library/WebServer/Documents/test.php, and in the test.php file is <?php phpinfo(); ?>, it just shows the output <?php phpinfo(); ?>, not the php output. To initiate the file, I am using http://localhost/test.php.
    Thak you for any help,
    JR

    Hello
    im not sure but , do you have enable php on your mac ??
    how to find here
    http://stackoverflow.com/questions/1293484/easiest-way-to-activate-php-and-mysql -on-mac-os-10-6-snow-leopard-or-10-7-lion
    HTH
    Pierre

  • Turn on php in snow leopard?

    How do I turn on PHP and Apache in Snow Leopard?

    Peruse the hits from a google search for launch php site:apple.com and launch apache site:apple.com

  • Can i update version 10.5.8 to snow leopard or mountain lion, can i updatee MacOSX version 10.5.8 to snow leopard or mountain lion

    can i update version 10.5.8 to snow leopard or mountain lion,

    Not if you have a PPC machine. In that case your are at the limit. But if you have an Intel model:
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard — Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service — this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion — System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) — Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) —
                 Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) — Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) — Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) — Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) — Model Identifier 3,1 or later
             7. Xserve (Early 2009) — Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table — RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

Maybe you are looking for