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.

Similar Messages

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

  • Apache, PHP, MySQL, phpMyAdmin

    Hi, I'm upgrading to snow leopard and I want to setup my local webserver but I had some problem with phpmyadmin and mysql.
    I've activated the pre-installed apache server from the system preferences panel and I've uncommented the load module of the php5 from the httpd.conf.
    Which version of MySQL I have to use? And how can I configure the phpMyAdmin?
    I've done this on my macbook with leopard, but I'm not beb able to do it on my iMac with snow leopard.

    raskolnikov wrote:
    Log files are in /var/log/httpd/, you should check at least error_log
    LAMP works for me, so it may be a configuration issue.
    Umm.. well I know where the log files are for apache, but they're unlikely to help me fix mpd   I found the .error and .log files for mpd, they're in $HOME/.mpd/ , but they're both empty! This is really frustrating.. what the hell can it be? mpd was fine yesterday.. it connects on the default port, 6600, is it possible that one of the LAMP pieces of software is interfering with this? Yet if that were the case, surely me stopping all the LAMP-related daemons would allow me to start mpd...
    The only other thing I've change since yesterday is my /etc/hosts:
    127.0.0.1 localhost.localdomain localhost kaminoitte
    That's fine though, isn't it?
    Gaargh, this is doing my head in   :evil:
    EDIT:  Aah.. it might be a groups problem.. maybe. I've got it in my mpd.conf to run under user 'dave', but I accidentally used 'useradd' instead of 'usermod' yesterday when adding myself to the mysql group I made, so I may be missing from one of the necessary groups. I added myself back to optical and video yesterday.. would someone using mpd be good enough to post 'grep [mpd_username] /etc/groups' for me?
    EDIT2 (1 minute later): Hehe, I just noticed I didn't add myself back to 'audio'... what a muppet. Problem solved!  XD

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

  • Lighttpd + php + mysql + phpmyadmin

    Hello to everyone...
    Continue from this old topic: http://bbs.archlinux.org/viewtopic.php?id=57539
    So i have lighttpd + php that run perfectly...
    now i also need mysql + phpmyadmin..
    1)  i Edited /etc/php/php.ini uncommenting the following line:
    ;extension=mysql.so
    2) i followed this wiki http://wiki.archlinux.org/index.php/MySQL
    3) i followed this wiki http://wiki.archlinux.org/index.php/Phpmyadmin
    when i open phpmyadmin it says:
    Connection for controluser as defined in your configuration failed.
    why??
    thanks..

    Hi, thanks for response
    SSL certificate is generated ... ok so it wont be so hard to help here are my configs
    main.cf
    # Paths
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/lib/postfix
    mail_owner = postfix
    # Domain settings
    myhostname = <mydomain>
    myorigin = <mydomain>
    mydestination = $myhostname, localhost.$mydomain, localhost
    # SMTP settings
    smtpd_tls_cert_file=/etc/ssl/certs/mail.crt
    smtpd_tls_key_file=/etc/ssl/private/mail.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
    smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache
    smtpd_tls_loglevel = 1
    smtpd_sasl_auth_enable = yes
    smtp_sasl_auth_enable = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,
    permit_mynetworks,
    reject_unauth_destination,
    check_policy_service inet:127.0.0.1:10030
    smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
    smtpd_sasl_security_options = noanonymous
    # SASL
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = /var/run/dovecot/auth-client
    # Email and mailbox settings
    alias_maps = hash:/etc/postfix/aliases
    alias_database = $alias_maps
    home_mailbox = Maildir/
    virtual_alias_domains = <mydomain>
    virtual_alias_maps = hash:/etc/postfix/virtual
    mailbox_size_limit = 0
    dovecot.conf
    protocols = imap imaps
    disable_plaintext_auth = yes
    log_timestamp = "%b %d %H:%M:%S "
    ssl = yes
    ssl_cert_file = /etc/ssl/certs/mail.crt
    ssl_key_file = /etc/ssl/private/mail.key
    mail_access_groups = mail
    mechanisms = plain login
    socket listen {
    client {
    path = /var/run/dovecot/auth-client
    mode = 0660
    user = postfix
    group = postfix
    here are some of my config uncommented part, if its nececery i can zip and upload bouth configs to be 100% clear wheres the problem..
    Karlis
    Last edited by karlis (2010-01-13 18:02:23)

  • Leopard PHP MySQL socket problems

    I'm running a default Mac OS X 10.5 Apache2 installation locally, with PHP and MySQL tacked on. I'm running into some trouble running MySQL queries from PHP, namely:
    Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
    It appears that PHP was compiled with the configuration command '--with-mysql-sock=/var/mysql' but in Terminal the mysqladmin binary reports the UNIX socket as /tmp/mysql.sock. A check reveals that there is indeed a /tmp/mysql.sock, but no /var/mysql/mysql.sock. This appears to be one of those directory differences between Darwin and the standard MySQL distribution.
    Anyhow, I really don't know the best way to attempt to patch this up even after reading suggestions in the MySQL manual. Setting up an option file for mysql to point to /var/mysql didn't improve matters, nor did explicitly setting socket settings in my PHP config file.
    I'm more of a front-end developer not well versed in back end configuration jazz, so any input would be appreciated.

    the other way to fix this is to edit /etc/php.ini and set the following:
    mysql.default_port = /tmp/mysql.sock
    mysqli.default_port = /tmp/mysql.sock
    mysql.default_sock = /tmp/mysql.sock
    mysqli.default_sock = /tmp/mysql.sock

  • Issues Acrobat 9 Snow Leopard 10.6

    One week ago I switched from PC to Mac, I bought an I Mac 27" and one of my first concerns was to upgrade from Acrobat Standard 9 - which I used in the Windows ambience - to Acrobat 9 Pro. I was kindly assisted in the trade in of my version by the Acrobat Store, but such a kindness did not reach the point of informing me that the program I was buying - Acrobat 9 Pro for Mac - was not compatible with the OS I had - needless to say, I declared which was  myversion of Mac OS. The result is that I had many troubles with installing Acrobat 9 Pro and - as everybody knows - I have now a half-working program, which does not install a PDF printer and uses a secondary issue for allowing to create pdf files. The Adobe customer service, which I had to consult when trying to launch the program, showed quite an awareness of the problem, and it was from them that I got the suggestion which leads to have the documents saved as adobe pdf instead of using the virtual adobe printer.
    The question is: why they do not inform the buyer who has Snow Leopard that he's going to purchase a half-useless program? Gentlemen of the Adobe company, do you believe that your suggestion to use an escamotage instead of using a full working program is worth  220 euros of upgrade from Acrobat Standard to Acrobat Pro? In wait of a kind answer, I remain
    Yours Sincerely,
    ag

    I'm sorry you having Problems.
    First you need to go to Disk Utilities (in Utilities folder) and Repair Permissions.
    Next go to adobe.com > Support > downloads and look for the following Downlaods Adobe Pro (9.1 through 9.3.1) download them.
    Now remove all of Acrobat including preferences and any adobe folders in the User Directory > Libraray > Application support. and any Preferences  in: Username > Library > Preferences (for Adobe).
    Now run each up date oldest first. Don't open Acrobat.
    In between do run Disk Utility in-betwen
    Now if you've manged to up date.
    Acrobat 9.2 on OSX.6 (Snow Leopard) doesn't use the AdobePDF Printer.
    TO create a PDF:
    Go to Mac Print menu and chose PDF
    Click on button and a menu should drop down and there should be a choice called Adobe Quality PDF
    choose that to make your PDF:
    Read information at this link:
    http://indesignsecrets.com/acrobats-adobe-pdf-printer-replaced-in-snow-leopard.php
    Hope this Helps.

  • If DW 2014.1 cc does not support database, binding, server behavior, and PHP/MySQL require it, but using Adobe Extensions Mngr IS NOT recommended, then WHAT TOOLS do we use to develop a database with DW?

    I'm using windows DW 2014.1 cc. I'm following lynda.com tutorials to build a website database with PHP and MySQL. I learned I have to download Adobe Extension Mngr to active DATABASE, BINDING, SERVER BEHAVIOR panels, which I've done. BUT NOW I'VE BEEN ADVISED NOT TO USE THESE TOOLS for new development. If this is the truly the case, then WHAT TOOLS DO I USE to develop a website that has a database?

    then WHAT TOOLS DO I USE to develop a website that has a database?
    Besides the tools you would already need for a system using server behaviors (web server, PHP, MySQL, phpMyAdmin) the only extra tool you need is your own brain.
    A lot of people are disappointed by the lack of database tools in DW now, but really it's much better this way. You can never achieve better than a rinky-dink dynamic website using server behaviors. The code Dreamweaver dynamic behaviors create is really terrible. (I'm not insulting the fine folks who wrote the feature. It's just a consequence of automated code.) You can write better, simpler, more maintainable code yourself, and over time you will improve. With server behaviors you cannot improve. you get stuck in database kindergarten.

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

  • Upgrade mysql in Mac Os Server Snow Leopard 10.6.8

    Hi
    The built in mysql server on Mac Os Server Snow Leopard 10.6.8 that I have bought is 5.0, I need to upgrade it to 5.5, how do I do that?
    I followed these instructions
    http://support.apple.com/kb/HT4006
    Everything went smoothly except that the server is not upgraded still the same version.
    Thanks

    Chris is right. The only way, you can upgrade to 5.5 is by doing it manually. Apple will probably update to a later version with Lion. But MySQL version updates have been rare in the past.
    Installing a different version is pretty straightforward, but you can not use SA anymore and have to configure the php, apache in the correct way. There are plenty of links out there which can help you.
    So long.
    Lane

  • 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

  • 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

  • MySQL installation in Snow Leopard Server appears to be broken?

    I tried
    sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
    and it failed.
    The mkmf.log said (in part):
    "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DXOPENSOURCE -DDARWIN_CSOURCE -I/usr/include -fno-omit-frame-pointer -pipe -DP1003_1BVISIBLE -DSIGNALWITH_VIOCLOSE -DSIGNALSDONT_BREAKREAD -DIGNORESIGHUPSIGQUIT -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch x86_64 -pipe -L/usr/lib -lmysqlclient -lz -lm -lruby -pipe -L/usr/lib -lmysqlclient -lz -lm -lpthread -ldl "
    ld: library not found for -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */
    1: /top/
    2: int main() { return 0; }
    3: int t() { mysqlsslset(); return 0; }
    /* end */
    So, I checked mysql_config:
    Usage: /usr/bin/mysql_config [OPTIONS]
    Options:
    --cflags [-I/usr/include -fno-omit-frame-pointer -pipe -DP1003_1BVISIBLE -DSIGNALWITH_VIOCLOSE -DSIGNALSDONT_BREAKREAD -DIGNORESIGHUPSIGQUIT]
    --include [-I/usr/include]
    --libs [-pipe -L/usr/lib -lmysqlclient -lz -lm]
    --libs_r [-pipe -L/usr/lib -lmysqlclient_r -lz -lm]
    --socket [/var/mysql/mysql.sock]
    --port [0]
    --version [5.0.91]
    --libmysqld-libs [-pipe -L/usr/lib -lmysqld -lz -lm]
    Note that mysql_config appears to have been compiled with an assumption that /usr/lib
    would contain a -lmysqlclient shared library.
    Which assumption fails on my Snow Leopard Server installation:
    minisvr:~ root# ls -la /usr/lib/mysql
    ls: /usr/lib/mysql: No such file or directory
    Now, I'm reasonably certain that I have done nothing to cause this library to be missing;
    as I am also reasonably certain that the mysql_config found in /usr/bin is one shipped by
    Apple (as opposed to one I could have picked up somewhere else).
    Can anyone else out there verify: does Apple ship /usr/bin/mysql_config?
    If so, does it supply linker options like -L/usr/lib -lmysqlclient?
    If that also is true, does your /usr/lib actually contain an Apple-supplied libmysqlclient.*?
    Now, assuming that my installation is reasonably close to what Apple actually shipped,
    what should I do about it? Would I be better off to go find a source distribution,
    and build and install mysql, foregoing the Apple-supplied integration with
    management tools (e.g., using Server Manager to start/stop and monitor logfiles)?
    What do other users of mysql on Mac OS X Server do?
    Thanks,
    Tommy K

    I tried
    sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
    and it failed.
    The mkmf.log said (in part):
    "gcc -o conftest -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DXOPENSOURCE -DDARWIN_CSOURCE -I/usr/include -fno-omit-frame-pointer -pipe -DP1003_1BVISIBLE -DSIGNALWITH_VIOCLOSE -DSIGNALSDONT_BREAKREAD -DIGNORESIGHUPSIGQUIT -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch x86_64 -pipe -L/usr/lib -lmysqlclient -lz -lm -lruby -pipe -L/usr/lib -lmysqlclient -lz -lm -lpthread -ldl "
    ld: library not found for -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */
    1: /top/
    2: int main() { return 0; }
    3: int t() { mysqlsslset(); return 0; }
    /* end */
    So, I checked mysql_config:
    Usage: /usr/bin/mysql_config [OPTIONS]
    Options:
    --cflags [-I/usr/include -fno-omit-frame-pointer -pipe -DP1003_1BVISIBLE -DSIGNALWITH_VIOCLOSE -DSIGNALSDONT_BREAKREAD -DIGNORESIGHUPSIGQUIT]
    --include [-I/usr/include]
    --libs [-pipe -L/usr/lib -lmysqlclient -lz -lm]
    --libs_r [-pipe -L/usr/lib -lmysqlclient_r -lz -lm]
    --socket [/var/mysql/mysql.sock]
    --port [0]
    --version [5.0.91]
    --libmysqld-libs [-pipe -L/usr/lib -lmysqld -lz -lm]
    Note that mysql_config appears to have been compiled with an assumption that /usr/lib
    would contain a -lmysqlclient shared library.
    Which assumption fails on my Snow Leopard Server installation:
    minisvr:~ root# ls -la /usr/lib/mysql
    ls: /usr/lib/mysql: No such file or directory
    Now, I'm reasonably certain that I have done nothing to cause this library to be missing;
    as I am also reasonably certain that the mysql_config found in /usr/bin is one shipped by
    Apple (as opposed to one I could have picked up somewhere else).
    Can anyone else out there verify: does Apple ship /usr/bin/mysql_config?
    If so, does it supply linker options like -L/usr/lib -lmysqlclient?
    If that also is true, does your /usr/lib actually contain an Apple-supplied libmysqlclient.*?
    Now, assuming that my installation is reasonably close to what Apple actually shipped,
    what should I do about it? Would I be better off to go find a source distribution,
    and build and install mysql, foregoing the Apple-supplied integration with
    management tools (e.g., using Server Manager to start/stop and monitor logfiles)?
    What do other users of mysql on Mac OS X Server do?
    Thanks,
    Tommy K

  • Trying to stop MYSQL service without success in snow leopard server

    Hello
    I trying to enabled MySQL service on snow leopard server.
    My hard drive name is "Macintosh HD2".
    I receive this message :
    Can't change dir to '/Volumes/Macintosh HD2/ServiceData/MySQL/' (Errcode: 2)
    I try to stop without success MySQL service for rename my HD without blank
    How do that please ?

    That's set up via the [MySQL command line|http://labs.hoffmanlabs.com/node/376]. Or you can install the (free) Sequel Pro GUI package, given you're probably more comfortable in the GUI. The steps required for Mac OS X Server are the same as most any other platform, so [launch the MySQL client per the Wordpress Codex|http://codex.wordpress.org/Installing_WordPress], and follow the instructions.

  • MySql Database set up on Snow Leopard Server for Wordpress

    I am trying to set up a mySql database on the snow leopard server in order to install wordpress.
    I have played around with the MySql database settings (in the server admin window) but can't seem to figure out how to set the database name, username, and password within the Snow leopard server.
    Do I need to use third party software like Navicat to create the database and user names etc? If yes, any idea how to do that? If now, how do I create a MySql database, username and pw?
    I have put the Wordpress install folder on my Snow leopard server. When I navigate to my domain it says I need to configure wordpress by providing my database name, username and password.
    Thanks in advance.. I am struggling here.

    That's set up via the [MySQL command line|http://labs.hoffmanlabs.com/node/376]. Or you can install the (free) Sequel Pro GUI package, given you're probably more comfortable in the GUI. The steps required for Mac OS X Server are the same as most any other platform, so [launch the MySQL client per the Wordpress Codex|http://codex.wordpress.org/Installing_WordPress], and follow the instructions.

Maybe you are looking for

  • CLJ2600n not respondng to one of my HP micros

    TcUntil about a week ago, my Color LaserJet 2600n was working just fine, for all intents and purposes, with both our Pavilion dv9720 series laptop and our Pavilion a6330f series deskop unit. The 2600n is Ethernetted to a Belkin wireless router, which

  • FBL5N Address data is missing in Correspondence FB240

    Hi all, in FBL5N I create a Correspondence: Environment - Correspondence - Request display it, than back with F3. After it I receive the following warning msg: FB 240 Address data not created for user & How can avoid this? Cheers...

  • Considering Arch For My New Home Server

    My wife and I both use Arch full time on our desktop and two laptops, and we enjoy it a lot. Right now our current home server also runs Arch and works very reliably. In fact I don't think I ever had a problem with it. The server we use has some majo

  • GRC 10: Maintain Data Sources Config Problem

    Hi All, I was trying to configure the User Data Sources for: 1. Search 2. User Details During this, I went to SPRO->GRC->AC->Maintain Data Sources Configuration. Here, first I tried to configure User Search Data Sources. When I clicked on New Entries

  • Pop-up in event structure halts execution

    If I place a pop-up subVI in an event case of an event structure and this pop-up subVI contains a while loop and a stop button that would stop this while loop (thereby closing the subVI), will other events declared in the event structure be handled o