PHP/MySQL incommunicado since upgrading OS X Server 10.4.2 - 10.4.3

Back when 10.4 first came out and I foolishly upgraded my server right away, I spent hours trying to reconfigure PHP because Apple had monkeyed with with the configuration (since 10.3) and shipped it such that PHP/MySQL wouldn't speak out of the box. I think the trouble had something to do with the location that PHP looks for MySQL, but low level config of these services isn't really my area of expertise. Eventually I got it fixed, but it was a nightmare trying to figure out what was wrong.
Sooo....performed the update to 10.4.3 this morning....and now if I try to bring up a php page in a web browser:
Warning: mysql_pconnect(): Can't connect to MySQL server on '10.0.1.250' (61)...
And that's as far as it gets. Anyone have any ideas? I would speculate that Apple may have finally addressed the issue that was preventing PHP/MySQL from working out-of-box in 10.4, but, in doing so, my workaround for that problem has now become a problem itself.
Any advice or help would be of greatly appreciated!

Make sure mySQL server process is started running.
I think on some upgrades the setting for automatic start of mySQL
servcies gets set to NO in /etc/hostconfig file

Similar Messages

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

  • Windows clients unable to access File Sharing since upgrading to Mavericks Server

    This summer, I have been tasked to upgrade all the Macs on campus to Mavericks.  Including upgrading to Server 3.1.2.  Previously, we had an Xserve that ran 10.6.8 Server and two Mac mini servers that ran 10.8 Servers.  We have a new Mac mini to replace the Xserve and, initially, everything was pretty smooth.  I built the server from scratch, with the intention of using the 10.6.8 server as reference, only adapting to Profile Manager, instead of using Workgroup Manager. 
    The only problem I had when I started was that I couldn't get Active Directory to create home folders on my Mac Server "NetUsers" volume when adding a Home Folder path.  After playing around with it, I completely hosed the Server and decided to start over.  Now, after a clean install, I can't get any Windows users to connect to the share on the Mac Server.  It declares: "\\MacServer is not accessible.  You might not have permission to use this network resource.  Contact the administrator of this server to find out if you have access permissions.  Account restrictions are preventing this user from signing in.  For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced."  What's more (that I may not have noticed two weeks ago or it just started, I don't know), the 10.8 server that I upgraded to 10.9 also is not accessible and gives the same error.  However, I can access all these file shares from Macs using either smb or afp.
    I'm suspicious that this issue is related to SMB1 vs. SMB2 that was implemented differently in Mavericks.
    Please, any help on this would be a life-saver.  School starts too soon and I need this running on day one!!!

    Had the same issue and spent 4 solid days tracking it down (looking in all the wrong places.)
    For us, it turned out to be a problem in DHCP services configuration.
    For the subnet under the WINS tab, the NetBIOS Scope had a '1' inserted into the field. Apple's tag when hovering the mouse over the field indicated a domain be insterted.
    This prevented the Windows XP machines from successfully registering with SAMBA. Once the field was blanked out and saved, the (one machine) needing to be joined found the PDC and successfully bound to the directory.
    Blank out the NetBIOS Scope field in DHCP (assuming a simple LAN environment) and you may be in good shape.

  • PHP/MySQL Test/Production Server best practices

    Hello,
         I am currently learning PHP/MySql and have setup a test server to develop on and a production server to go live with. I wanted to know what are the best practices for synchronizing the test server with the production. Should I export the database from the test server and import it to the production server each time I make a change or is there better way to incrementally sync the databases. I am using Dreamweaver to design the web site.
    Thanks,
    Nick

    Thanks, but does this mean that after I go live I should make changes on the production database only and not use the development database, if say I need to add a new table or record(s)?
    Procedure
    1. Take production web site down
    2. Export/Save current database
    3. Make changes to production database
    4. Export/Save new database
    5. Bring production web site up
    Is this correct?

  • Can't Open Reports after upgrading to Windows Server 2008R2

    Since upgrading to Windows Server 2008R2, I am unable to use File > Open to browse my network for existing Crystal Reports.  I am able to access reports from my recent reports list.  If I use Windows Explorer to try to find/open an existing report file, I'm prompted for the installation disk.  Is this a known issue?  Thanks for your help.

    SP2 fully supports Windows 2008 Server, here's a link to the [platforms PDF|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/00225757-ab5c-2c10-c1a8-fb9f9f0f4ac2&overridelayout=true] file:
    As for permissions this is something you need to setup with Windows and file sharing.
    Thank you
    Don

  • Unable to push user profiles to AD groups with Profile Manager since upgrade to Server v3

    Since upgrading our OS X Mac server from 10.8.5 to 10.9.1, and OS X Server app to v3 (now 3.0.2) I have been unable to push or modify user profiles to AD groups (or AD users) using Profile Manager. This was working fine on OS X 10.8.5. Pushing device profiles is still working OK after the upgrade.
    From what I can see from the logs on the client side and server side, it seems related to a problem with the mdm authtoken.
    In the client console I can see this entry:
    27/01/14 14:30:15.844 mdmclient[38557]: *** ERROR *** [Agent:636102071] Unable to proceed with connection to: https://ourserver.ourdomain/devicemanagement/api/device/mdm_connect (com.apple.mdmconfig.mdm) because don't have valid MDM AuthToken
    On the server, in the php.log I can see the corresponding attempt to authenticate:
    1::Jan 27 14:29:50.930 [158] <192.168.28.171> {require_once (mdm_checkin.php:11)} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv - PUT mdm_checkin
    0::Jan 27 14:29:50.931 [158] <192.168.28.171> checkin: 'UserAuthenticate'
    1::Jan 27 14:29:50.936 [158] <192.168.28.171> {Target_for_incoming_request (target.php:209)} Found target NETWORK LS: <User[156]@ourclientmachine>
    0::Jan 27 14:29:50.937 [158] <192.168.28.171> {LabSession_validate_auth_token (mdm_checkin.php:22)} Failed auth for target NETWORK LS: <User[156]@Device[1697]>, incoming_request={
    0::Jan 27 14:29:50.937 [158] <192.168.28.171>   'MessageType'=>'UserAuthenticate',
    0::Jan 27 14:29:50.937 [158] <192.168.28.171>   'UDID'=>'17aff5c5a40f51acbbd78023d0028c80',
    0::Jan 27 14:29:50.937 [158] <192.168.28.171>   'UserID'=>'A5EA25B7-7CCD-4EF4-B240-F23DED275EEC'
    0::Jan 27 14:29:50.937 [158] <192.168.28.171> }
    1::Jan 27 14:29:50.965 [158] <192.168.28.171> {SendFinalOutput (mdm_checkin.php:145)} Sent Final Output (407 bytes)
    1::Jan 27 14:29:50.965 [158] <192.168.28.171> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - /devicemanagement/mdm/mdm_checkin
    0::Jan 27 14:29:50.965 [158] <192.168.28.171> {SendFinalOutput (mdm_checkin.php:145)} Completed in 34ms | 200 OK [https://ourserver.ourdomain/devicemanagement/api/device/mdm_checkin]
    So I can see there is a failure to authenticate, but don't really know how to troubleshoot this further. Or maybe this is just a bug in the new server app?
    I have tried to remove and re-enroll clients in Profile Manager but no joy there.
    In the client's Keychain I can see an MDM user AuthToken linked to the correct user account.
    Thanks in advance for any help or suggestions

    I just wanted to update my post, as this issue for me is resolved.
    I uninstalled and reinstalled the Server.app on our Mac server, since then I've been able to push profiles to AD Users and Groups. I guess that in my case the Server app got into a bit of a mess when it was upgraded to v3.
    Now the next headache I have is that my AD Groups which are displayed in Profile Manager are not syncing any recent changes. I think I'm probably seeing the same issue as described in this post
    https://discussions.apple.com/message/25420919#25420919

  • Where to go next with Dreamweaver and server-side (php/mysql) applications?

    This question is mainly directed at David Powers but  I appreciate any input from anyone with the same concern or question.
    I've been using DW since the change from Macromedia and have developed a number of applications using built in server behaviors and sb extensions from ADDT, WebAssist, etc. I've learned to customize these behaviors to fit my needs always keeping within the "canned" code. In this way I've "learned" php.
    I own most of David's books and in fact, it was because of these that I have any idea about what I'm doing and went in this direction in my "developer" career (building php/mysql applications using Dreamweaver.)
    With the decision to remove server behaviors (and the other "developer" panels) from DW and with the deprecation of the mysql extension from the php landscape, I'm wondering where to go next? I fully understand this has to happen.
    I'm aware of some alternatives:
    Zend or some other framework - to me, this seems extremely complex
    Keep several versions of DW installed
    Stick to Joomla/WordPress/Drupal - let others who know what they're doing build the architecture
    Actually LEARN php - wish I had time; too much work to do (I know how illogical that sounds but it's a very real situation)
    I know I'm going to have to switch out all that deprecated code or better yet, rebuild the many applications which used the DW (and other) server behaviors. I'm just not sure which way to turn.

    rjjacob wrote:
    Since I wrote this post I concluded that there is no substitute for understanding and have started my re-education by delving further into the issue with updated PHP/MySQL books and tutorials so I can prepare for a Dreamweaver without this functionality.
    Yes, I too have concluded that is the way to go as well. There really is no substitute for learning as much as you can. Whilst the DW Server Behaviours were very convenient they have not kept pace, Adobe prefering to spent their time on less important updates in my opinion. The Server Behaviours are what makes Dreamweaver the tool of choice  for database integration for those who lack the knowledge. I feel the Adobe team will regret not coming up with an alternative. Anything that detracts from making the program what it is is a step in the wrong direction and for sure this is a big step in the wrong direction.
    rjjacob wrote:
    I have mainly used DW server behaviors in my development projects that's why I am curious about what others are doing to make the change. I'm surprised there haven't been more posts; perhaps I'm the last one to be taking action about this, or maybe no one is too worried about it yet.
    I think a lot have changed their working practice but many more are burying their heads in the sand. sql_ support is a way off from being completely dropped yet.
    rjjacob wrote:
    Anyway, your assessment of how terrible the server behaviors are is correct. I'm finding that true after barely breaking the binding on a few books about the greater subject and looking into mysqli and PDO.
    Yes, because I relied heavily on them I did not know how bad they were until I forced myself to look further afield. What you can do in a couple of lines of code the DW Server Behaviors produced quadruple or more to achieve the same.
    rjjacob wrote:
    But they sure were convenient!
    Yes, I agree. Maybe some extention developer will come up with a set of new improved behaviours. I tell you if they do they will make a shed load of money.

  • Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server.

    Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server. I have to click the link several time before it will load and sometimes when they do load it does not show the page right. It is like the HTML is messed up or something. I have tried everything I can think of. I started in safe mode, still did it., I removed add-ons, still did it., I reset Firefox and still did it., I completely uninstalled Firefox and re-installed Firefox and it still does it. I have tried Malware Bytes Anti-Malware scans and Avast boot-time scans and found no malware or viruses. I have found that those websites open the first time with no problems on my IE9 and they used to do so in Firefox 26.0. I'm at my wit's end. The website links are in my bookmarks and are used all the time so they are trusted and my avast is set to allow them. They range from news websites to gun websites and everything I have read says that Mozilla does not filter those unless something has changed recently.

    Try this as a first step;<BR><BR>
    Clear the Cache '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''<BR><BR>
    and<BR><BR>
    Remove Cookies '''''Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"'''''<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    While you are in safe mode;
    '''''Firefox Options > Advanced > General'''''. Look for and turn off '''Use Hardware Acceleration'''.

  • Since upgrading to Mavericks, my Canon MP980 printer no longer works. I've tried deleting the printer and adding it again. the process ends with my mac saying the software is not currently available from the software update server.

    Since upgrading to Mavericks, my Canon MP980 printer no longer works. I've tried deleting the printer and adding it again. I've downloaded the driver software from Canon. My Mac dropbox tells me "the selected printer software is available from Apple", but when I click to download it, the process ends with my mac saying the software is not currently available from the software update server.

    Open Finder and click on Go > Go to Folder. Then type
    /Library/Printers/Canon
    and press Enter. This will show the BJPrinter and iJScanner folders. You could try moving or trashing this folder and then installing the driver that you downloaded from Canon again.

  • Calendar clients  4.03 cannot work offline since we have upgraded to Calendar Server 4.0

    Macintosh Calendar 4.03 cannot work offline since I have upgraded to Calendar Server
    version 4.0. When users attempt to either go offline or login offline,
    they receive module errors:
    <P>
    Module:>CApplicationCorporateTime.cp>,
    Label:20, Service error#(0x1320a)
    <P>
    It looks like versions 4.03 and lower clients (primarily on the Macintosh) are unable to
    properly handle data from the 4.0 Server as it was able to in the 3.5 server.
    <P>
    There have been changes made with the new 4.0 server version as to how a
    password is sent over the network to the client. In order for a customer to
    use an old client version (pre 4.5) with the offline agenda, the following
    parameter needs to be set in the server's /users/unison/misc/unison.ini file:
    <P>
    [ENG]
    pwdreturnonitemget = TRUE
    <P>
    Once all users have been upgraded to client version 4.5x or higher, it is
    highly recommended to remove this parameter or to set it to the
    default value FALSE.
    This parameter becomes active as new client sessions are established. It is
    not necessary to stop and start the server.
    <P>
    The best solution for this issue is to only use Calendar client versions 4.5
    or higher.

    Macintosh Calendar 4.03 cannot work offline since I have upgraded to Calendar Server
    version 4.0. When users attempt to either go offline or login offline,
    they receive module errors:
    <P>
    Module:>CApplicationCorporateTime.cp>,
    Label:20, Service error#(0x1320a)
    <P>
    It looks like versions 4.03 and lower clients (primarily on the Macintosh) are unable to
    properly handle data from the 4.0 Server as it was able to in the 3.5 server.
    <P>
    There have been changes made with the new 4.0 server version as to how a
    password is sent over the network to the client. In order for a customer to
    use an old client version (pre 4.5) with the offline agenda, the following
    parameter needs to be set in the server's /users/unison/misc/unison.ini file:
    <P>
    [ENG]
    pwdreturnonitemget = TRUE
    <P>
    Once all users have been upgraded to client version 4.5x or higher, it is
    highly recommended to remove this parameter or to set it to the
    default value FALSE.
    This parameter becomes active as new client sessions are established. It is
    not necessary to stop and start the server.
    <P>
    The best solution for this issue is to only use Calendar client versions 4.5
    or higher.

  • Can't save to OS X Server from Microsoft Word since upgrading to Yosemite

    When I am working on a Word Document and I click "save" the box pops up and every folder on my local computer is available as a location save my file, but my server is not.  it simply does not show up.  I can save to my local drive and then drag it over to my server through finder, but I cannot actually save the file directly from word to the server.  This has only happened since upgrading to Yosemite and server 4.0

    Word isn't able to save on a SMB volume, the problem is not limited to Yosemite, also on Mavericks. There is an easy solution (on Mavericks, which I tested, and hope that will do so under Yosemite, tomorrow I will test). Unmount the volumes that You want to work with, from the finder select Connect (Shift-CMD-K) and give the address of the volume with the prefix afp instead of SMB (afp://192.168.1.1 or similar). That will do it!
    HTH Guido

  • Since upgrading to FF5, i get the following xml error on local development server (IIS 7 Windows 7): XML Parsing Error: no element found, Line Number 1, Column 1. The pages display fine when uploaded to hosting server. How do i resolve it

    All aspx pages running locally via IIS or Visual studio inbuilt server can not be displayed in FF5. This problem has only occured since upgrading to FF5. The same sites/code worked fine with the previous version of FF.
    When uploaded onto a hosting server the pages display fine. Pages all display ok on local IIS on IE, chrome, opera etc.
    I do go through a proxy server, but so do the other browsers.
    All this means i can't develop locally on FF. Help please!

    Maybe your application doesn't support "Send NTLMv2 response only. Refuse LM & NTLM".
    https://support.software.dell.com/zh-cn/foglight/kb/133971

  • When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does nog display my name or e mail address. This only since upgrading my iPhone5 to iOS7

    When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does not display my name or e mail address. This only since upgrading my iPhone5 to iOS7. I've checked all settings etc. anyone have a solution please?

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • Php mysql html on your server application

    hello
    I can work with example websites
    php mysql html on your server application
    ouy have to install, php mysql apache and phpmyadmin on my bakbookpro
    if your server does not do what I Querro please tell me
    and I instalho manually
    if it does I'll use it qurro
    however pressisamos people who can use that build here
    I do not have a whole life to stay behind the computer
    and if your server can not work rebuild from scratch
    do the work with php and html
    because my client wants the **** form in php

    you mean its got <TEXT LEADING FORMATS blah blah >
    yea, turn html on on the text box that ur sending to php.
    or off, well whatever it is now, do the oposite, lol.

  • Since upgrade to Mac OS 10.7.2L , recurring error message: "There was a problem connecting to the server "servername". The server may not exist...etc."

    Since upgrade to Mac OS 10.7.2 Lion, on MacBookPro, recurring (every minute or so) error message: "There was a problem connecting to the server "servername". The server may not exist or it is unavailable at this time. Check the server name or IP address, check your network conneection, and then try again." (The server specified is no longer connected or used). The error message must be clicked twice to continue to work on the computer. Time Machine is switched off. No external disks are connected. Keychain entries for "servername" have been removed since the problem arose. Is there any way to prevent this error message?

    I am having the same problem; have tried deleting some of the plist files as others suggested but to no avail.  Tried turning off time machine - that didn't fix it either.  Very dispappointing.

Maybe you are looking for

  • HT1349 how do I change the email contacts I want to sink from a different email than the one listed on itunes?

    I am trying to sync my iphone and itunes is preset to an email account with no contact. I want to switch to a different email account to sync to but can't find a way to change the email already listed. Any ideas? Thanks

  • Is there a data plan better than $80/10gig?

    I recently relocated to rural AR to take care of my mother following surgery. She is using Verizon wireless as her ISP and has the $80/10gig plan. Based on our now combined internet usage that cap is far, far too low. Is there a higher tier or unlimi

  • URGENT: J2ME CDC on Linux/ARM7 platform..

    Hi, Is there a J2ME CDC available for Linux/ARM7 platform. Its urgent. thanks in advance, Raj

  • [SOLVED]Calibre crashed when it starts

    Hi, After a fresh installation and configuration of calibre, I start it. Then it crashes. $ calibre QWidget::repaint: Recursive repaint detected Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/library/delegates.py", line 121, i

  • Asynchronous processsing in eCatt

    Hi, In the scenario that we are trying to automate, the processed that is triggered in the test system spawns an asynchronous process using QRFC. We do not want to proceed with the subsequent scripts (nodes in eCatt) unless these asynchronous process