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

Similar Messages

  • My MACBOOK Pro turned out to be Snow Leopard, and later upgraded to LION. And update the EFI, I would like to replace the Snow Leopard, EFI can not boot, how do? How to use the Snow Leopard install disk to reduce EFI?

    My MACBOOK Pro turned out to be Snow Leopard, and later upgraded toLION. And update the EFI, I would like to replace the Snow Leopard, EFIcan not boot, how do? How to use the Snow Leopard install disk to reduce EFI?

    Do you mean some of your software does not work in Lion? Do you want to return to using Snow Leopard? If so, then do this:
    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • MacBook Pro 15" 2007 won't turn on after leaving Snow Leopard update in the drive

    Hi Everyone,
    After installing Snow Leopard 10.6.3, I left the cd in the drive when I turned the computer off. When I tried to turn the computer back on again, the screen told me that I needed to restart the computer by holding down on the power button. So I did, but the message came up again. I did it again. The third time, the computer wouldn't turn on at all.
    I removed the cd by opening up my computer--something I had done in the past because of problems with the keyboard. (The keyboard was never fixed, and the trackpad didn't work either, so I used USB connections.The powerbutton never was affected though)
    Two questions:
    First, what would you say is the culprit in the first problem with the messages to restart the computer? How might I address this?
    Second, knowing the secondary information about the keyboard connections, how might this affect fixing the problem? Could the powerbutton now be affected, especially since I lifted the keyboard off?
    Lastly, I've looked into restarting the SMC, and turning on the computer without the button. I have tried the first of these two options, and will soon attempt the second (If anyone can send me a link to better explain turning on the computer without a button for my model, I'd be grateful.)
    Any more advice (short of bringing it into the shop!) would be helpful.

    Try powering up and push in your install disc(use your original install disk if you have it, maybe try the retail SL disc white with the cat as a second choice) holding the C key (this should make it boot from the disc) select your language, click continue, in the next screen in the menu bar click Utilities/Disk utilities, select (highlight your volume from the left column, default name is Macintosh HD, unless you renamed it) click the first aid tab, then click verify disk, if it comes up with errors (they will be in red font) if you get errors, run repair disk, run it repeatedly if necessary till it comes up with this disk seems ok (in green font)
    Then run permissions repair.
    Log out and reboot see what you get.
    You may have to reinstall the 10.6.3 OSX again, do this by powering up and pushing in the disk holding the C key and follow the prompts. if you have a successful install, eject the disc, and reboot. The next thing you need to do is run software update, there will be many and you want to do them one at a time. (use an ethernet connection as opposed to wireless, as there is much chance of corruptions. The first one to run is the 10.6.8 combined v 1.1, the keep running software update one at a time till there are none offered.
    Hope this helps

  • Cannot turn on AirPort after Snow Leopard upgrade with Parallels 3

    Since I have upgraded to Snow leopard, my wifi does not turn on, I have seen some comments about parallels causing the problem, does anyone know if this is true and if so how to turn of the ports they are using.
    I cannot open the parallels environments as I need to upgrade to get them open.
    I now have lots of applications which have stopped working since the upgrade, this is the one thing Microsoft does well making sure the backward compatibility, used to be a advocate of Apple OS's but this one has tarnished my view on them.
    Any help very much appreciated.
    Rgds, Tony

    I find the idea of perpetual compatibility of programs with new operating systems to be unrealistic. The programs that you bought still work with the OS that they were designed for (Tiger and Leopard). In the case of parallels, version 4 has been available for Mac since November of 2008. Version 3 came out in June of 2007. So it looks like they are trying very hard to keep up with the changes that the new Apple cats bring every couple of years.
    Since you don't wish to purchase programs that are certified for the operating system you have upgraded to, then you will either need to find freeware replacements or install an operating system that is compatible with the versions of programs that you currently do own. A lot of third party developers are going to insist on getting paid for their continuing efforts. You can also use Apple's BootCamp to run Windows on your Mac. It's free with the OS, but I don't care for it and I'm willing to pay for a program that provides services that are not available in the OS.
    Parallels upgraded their software to version 4 for a reason, probably many reasons actually. I expect that part of the reason they decided to rewrite their code was to enhance compatibility with the virtual machine and Leopard.
    I was having some issues using version 3 that I bought during the Tiger era (I think - actually started with v2) and they went away with version 4. Version 4 does work with Snow Leopard, and Parallels did come out with a free incremental update for v4 - 2 days before the Snow Leopard release. I suppose that this latest update was also supposed to provide better compatibility with Snow Leopard. Parallels was probably one of the vendors that took advantage of developer's access to the Snow Leopard beta's and they seem to be trying to keep up with the new OS's changes in design.
    Now I'm waiting for Parallels to build a 64bit version of their program (which I expect to pay an upgrade fee for). I'm guessing we'll see some pretty good speed improvements if the code is re-written again (probably v5) to take advantage of the new architecture.
    If you don't wish to upgrade to programs that can take advantage of what Snow Leopard was designed to do, then Leopard or even Tiger will probably work fine for you. Apple is still going to maintain security updates and bug fixes for them for the foreseeable future.
    in what is billed as a simple no impact upgrade
    What Apple actually said is that there would be very few changes to the GUI. They stressed that this update is mainly to enable a better 64 bit platform for future programs, the ability to use an absurd amount of ram, and compatibility with other systems like MS Exchange.
    I have now eight different applications which are developed for the Mac OS
    I guess you mean a Mac OS. This is far from the hundreds of applications that were rendered useless by the Leopard upgrade which dropped support for all OS9 programs. Many people had to find new games that were developed in this century or new word processing programs, or even convert their old graphics files to gifs and jpgs.
    That was really painful for some as there are no replacements for some of those programs at all.
    no WiFi
    Certainly some sort of corruption, or even an actual bug. That's the nature of a bug. It might have just gotten fixed with the 10.6.1 update, or it will be with one of the next updates to come out, or you have a problem in your user account preferences, or some other issue. Anybody who works for a living in the IT industry knows better than to upgrade a computer to a .0 version of any program or OS, and they have backups in case there are serious problems. Let others break in a new OS before you break down. Hopefully, the machine you upgraded wasn't used for income, without having a bootable backup?
    My first computer training was on a Burroughs 3500 Mainframe in the early '70s - Many computer hardware's have come my way away since then. They all cost a bundle at the time, and I used each for the best performance I could afford. You'll have to decide the value of any upgrades or updates and that does require research.
    Google is my friend.

  • 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

  • Macbook display turns off when booting Snow Leopard DVD

    I have mid-2009 Macbook Pro and I hate Mountain Lion. I want to do a clean install of Leopard using the DVD (grey) that came with my computer. I loaned it to a friend recently and he had no issues. But everytime i try to boot from the SL DVD (hold C at startup) it behaves normally, until about the time it would go into the DVD startup screen. At that point the display turns off (not the whole computer, just the display) as if it has gone to sleep. And I can't get it to turn on again. I've also tried booting and holding Option and choosing the DVD as the boot drive. No dice.
    Awhile back I created a Lion install DVD. I can boot to it just fine. But i don't want Lion either. Any ideas why this is happening?  Thanks!

    Press control shift eject, then any key to toggle the display from sleep/wake.

  • Hacker problems so I reloaded Snow Leopard. Afterwards, Mac had to delete 798 items. Now looping on 4 items to delete for the past 2 weeks. Can't reboot, reload, or restart. I have to let the battery run down for it to turn off. How to fix this, please?

    I had hacker problems so I reloaded Snow Leopard. Afterwards, Mac had to delete 798 items. Now it is looping on 4 items to delete for the past 2 weeks. I can't reboot, reload, or restart. I have to let the battery run down for it to turn off. I think a big part of the problem is that someon one the internet (the hacker) was mirroring my hard drive. It seems to have locked up my system. I could be wrong about this guess, though. All I do know is that it is now looping on the last 4 iems, and I can't do anything.
    Well, I can get it to turn on, but all it does is continously try to delete the last 4 items. When I try to reload Snow Leopard, it tells me my hard drive is full and that I need to delete items.
    Can anyone help? I am so lost without my Mac. I am back on the PC, and though it works, I'm sure many of you will understand when I say it's just not a Mac.
    Thanks.

    I installed Snow Leopard using my Apple external Superdrive. I followed directions I found on the Apple site. Here is the article info:  Mac OS X v10.6 Snow Leopard: How to Erase and Install  
                     Article HT3910
                     located at: http://support.apple.com/kb/HT3910
    Everything was going smoothly until I got to the reinstall part. I had to choose to reinstall on a hard drive or network drive. I've never used a network drive; just the hard drive. It seems that's where the troubles began. I selected the hard drive. It seemed to go well, and then I got the message that I needed to delete some files because I was out of space. I chose to get rid of my music files, but, there were only 636. I don't know what the rest of the files were. I was using the Secure Empty Trash command.
    That was my first time doing an erase and install. I tried to do it again, but I now get a continuous error telling me that my hard drive is full and I must delete files. Only I can't delete files because 4 files are still being deleted and my computer won't let me stop the process.
    I found out about the hackers mostly by the fact that whenever I used to watch something like Hulu or Netflix, I never had problems with internet connection or speed. Lately, I had internet connection problems. I went in to check my settings for my internet provider and found out the settings had been changed to public and all these extra computers were connected to my network.

  • 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.

  • I updated to snow leopard recently and when i turned on my macbook every file from pictures and music was on my desktop.. are these copies? is there an easy way to put them where they belong like music with itunes, pictures in iphoto and so on

    Hi, I updated to snow leopard recently and when I turned my macbook back on icons from every file of pictures and music i have were all over my desktop
    how can i get them to all go to their programs like music to itunes, pictures to iphoto,  do I have to do it individually? thanks for any help

    If the icons have a black arrow bottom left corner, then the icons are just aliases, not the Application itself. You can move those icons to the Trash.

  • I did a factory reset on my late 2008 MacBook from a Snow Leopard disc. It installed fine, but as soon as I began to use the computer (safari) it froze. Couldn't even force quit. So I held down the power button to turn it off, and now it won't start up.

    I did a factory reset on my late 2008 MacBook from a Snow Leopard disc. It installed fine, but as soon as I began to use the computer (safari) it froze. Couldn't even force quit. So I held down the power button to turn it off, and now it won't start up. It goes to the grey Apple screen and just sits there loud as can be. Help! Please keep in mind I've not done anything like this before and am going to need a little hand-holding. Thanks in advance.

    Hi. Don't worry it's nothing serious. Insert the Instal Disc (Snow Leopard) and press the C button while turning on the computer. Once you see the desktop, go to Utility and choose Disk Utility. Select the Macintosh Partition on the left window pane and then click on Repair Disk and Repair Disk Permissions on the bottom right corner. Wait for both processes to finish. Click on the Apple icon (top left corner) and choose quit. Your computer should restart. See if it reboots normally. If not you can always reinstall the OS following the same steps. Good luck!

  • I have a MacBook Pro 15" and my warranty just ran out! I partitioned my harddrive into two partitions, one with Snow Leopard and the other with microsoft.This morning I turned on my Macbook Pro and it will not boot into Snow Leopard.

    Good Morning,
    I have a MacBook Pro 15" and my warranty just ran out! I partitioned my harddrive into two partitions, one with Snow Leopard and the other with microsoft.This morning I turned on my Macbook Pro and it will not boot into Snow Leopard. I shut it off took out the battery, reinstalled the battery. Then I put in the Snow Leopard CD and booted up to disk utility and The Snow Leopard partion would not show up?? I do see the microsoft partion.
    I also rebooted holding down the shift key and still no Snow Leopard
    Could you please tell me what I can do, what keys do I press on restart any advice to get Snow leopard back.
    thank you.

    Have you restarted holding down the Opt key?  That procedure should give you a gray screen with all of the partitions that exist.  Then select the SL partition for boot.  Also go to System Preferences and Startup Disk, unlock the lock and select the SL partition as the default boot partition, then relock.

  • Just upgraded macbook to Snow Leopard, and now itunes won't recognize my iphone.  I tried turning all off, and on.  I have the newest version of itunes.  Will I have to reset my iphone (and also ipod touch?), and if so, does it mean I lose anything?

    I just upgraded macbook to SnowLeopard 10.6.3 and now itunes won't recognize my iphone.  I tried turning everything off and restarting.  I have the latest version of itunes.  If I have to reset the phone (and ipod touch), what does that mean?  Will I lose anything? How long will it take?  thanks

    Start iTunes.  Make sure you really are running the version you think you are.  Sometimes people end up with two copies, different versions.
    Mac OS X v10.6: iOS device not recognized in iTunes after restart - http://support.apple.com/kb/TS3540
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X - http://support.apple.com/kb/TS1591
    Troubleshooting iTunes installation on Mac OS X - http://support.apple.com/kb/HT2311  - read section on Opening iTunes for information about running multiple copies of iTunes.
    You say you are running Snow Leopard 10.6.3.  That version will not run the latest iTunes which requires 10.6.8  If you need iTunes 10.7 you have to be running 10.6.8
    Mac OS X 10.6.8 Update Combo v.1.1 - http://support.apple.com/kb/DL1399
    Message was edited by: Limnos

  • I used utilities to source my 10.6 snow leopard install disc to my main hardrive, and now when I turn on my computer the apple with the spinning wheel stays on the screen and stuck like that. How do I fix it Help please. I already tried all the commands

    I used utilities to source my 10.6 snow leopard install disc to my main hardrive, and now when I turn on my computer the apple with the spinning wheel stays on the screen and stuck like that. How do I fix it Help please. I already tried all the commands such as Command R, Holding down the Option key, C and holding down shift at the start up but nothing happens.
    initialy All I was trying to do was downgrade 10.7 to 10.6 .

    You have to consider the possibility the hard drive may be dying.    If your data isn't backed up, try one of the tools below:
    https://discussions.apple.com/docs/DOC-1689
    Once you are sure your data is backed up, we can examine other possibilities.  In the meantime call AppleCare for your original installation DVDs.  You may need them.

  • After I installed 10.6.8, my HP Officejet lost the ability to print 2-sided.  I installed the latest HP drivers for Snow Leopard, but the 2-sided option is turned off and greyed out.

    After I installed 10.6.8, my HP Officejet 7310 lost the ability to print 2-sided.  I installed the latest HP drivers for Snow Leopard, the 2-sided option shows up in the print window but is turned off and greyed out.  Also the scan function won't let me scan at any density greater than 150 dpi.  I have talked to Applecare and to HP tech support and been told "too bad."  Any help would be appreciated.

    THANK YOU!  And who are you?  I spent a couple of hours on the phone with Applecare and with HP Tech Support and they couldn't fix what you did in a few words.  Many thanks!  John

  • 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

Maybe you are looking for

  • Userexit for billing documents vs Excise invoice --

    Hi i am canceling the billing document (VF11) with reference to excise invoice in this case i am using the sap standard program RV60BFZA but for some invoice , its triggering , but some invoice , its not triggering so i cant use that program any othe

  • Splitting Clips within an Event

    I have searched everywhere for how to do this but come up short. I have old camera clips in .avi format that I have imported. I want to split portions of a single clip into new and separate events but the split clip and split clip before commands are

  • Problems after updating to iOS 8.1.3

    Not so long ago I have update my iPad air 2 to iOS 8.1.3, before that I haven't this kind of problems with the rotation of the screen, sometimes my iPad just stop working and I have to restart it. I don't know why it happend. How can I fix it ?

  • Slideshow from Iphoto? Can I burn a slideshow from Iphoto to dvd? When I export to Idvd it changes all my settings and transitions.

    Trying to burn a slideshow to dvd.I can get it just the way I want in Iphoto,but when I send it to Idvd,it changes akk the transition settings.Help?

  • Process Chain Statistics

    hi, I am workign on BI7.0/SP09. There are many process chains running in my system daily, but not able to capture the process chain statistics (Cube is 0TCT_C22). When ran datasource 0TCT_DS21 in t-code RSA3, it shows no records extracted. Now unlike