![]() Let me know if I've missed a step, or if something works differently in later versions of OS X. Now I can develop with PHP and Caché locally on my Mac. Lastly, I restarted Apache: $ sudo apachectl restart Sometimes newer versions of apps may not work with. If you haven't already, uncomment this line: LoadModule php5_module libexec/apache2/libphp5.so Its not uncommon for the latest version of an app to cause problems when installed on older devices. Connect a 8GB or larger USB key to your computer then launch the Mac App Store from your dock. I had previously enabled the PHP module for Apache by editing nf in /etc/apache2. These are instructions on how to make a bootable OS X El Capitan USB key. In the /etc directory, I renamed to php.ini, then added the following lines: extension=pdo_odbc.so With the extensions installed, I enabled them in php.ini. I built pdo_odbc.so similarly: $ cd ext/pdo_odbc At this point, I copied modules/odbc.so to /usr/lib/php/extensions/no-debug-non-zts-20100525. The environment variables work around what appear to be broken sections of the configure script. I built odbc.so with the following commands in the PHP source directory: $ cd ext/odbc Although you can download that version from a PHP mirror, I downloaded 5.6.26 to fix crashes in pdo_odbc. I downloaded autconf 2.69 from a GNU mirror, then built and installed it to /usr/local using configure and make as follows: $. The phpize utility used for building a PHP extension depends on GNU autoconf. I don't actually remember how I installed them, but I think I downloaded the source from, then copied the following header files to /usr/local/include: OS X ships with the iODBC libraries in /usr/lib, but not the headers. Alternatively, you can install Xcode from the Mac App Store. This opened a prompt that installed them to /Library/Developer. Install WordPress with only one click and after completion of your page, publish it directly from MAMP PRO on your live server. With MAMP PRO you can create a separate host for each of your web projects. To get a C compiler, I installed the command line developer tools with a command like the following: $ xcode-select -install MAMP PRO is the commercial, professional frontend for the classic local server environment: MAMP. ![]() If you're comfortable coloring a little outside the lines (i.e., using sudo and the command line), you can build the odbc.so or pdo_odbc.so extension (depending on which API you prefer), and use it with Apple's version of Apache and PHP. Some people use Homebrew, MacPorts, or Fink to get their tools back. However, this support was removed in OS X 10.9: $ php -r 'phpinfo() ' |grep 'ODBC Support' You can also view PHP demos which can be of use for those developers who are just starting out.In OS X 10.8 and earlier, PHP was built with ODBC support, making it easy to connect to a Caché database: $ php -r 'phpinfo() ' |grep 'ODBC Support' ![]() Configure software: Once installation is complete, youll need to configure software. Install software: Once youve downloaded installer, double-click it to launch installation wizard. It can also install an administration site as the home page of the server from which you can undertake all manner of administrative tasks, such as checking the server status and security, launch tools like phpMyAdmin and Webalizer analytics. Be sure to select installer for your operating system (Windows, Mac, or Linux). In the XAMPP for Mac control panel you can configure the above services with ease. In addition to Apache, MySQL, and PHP, XAMPP includes other really useful tools such as the phpMyAdmin database administration tool, FileZilla FTP server, Mercury mail server, Perl programming language, and JSP server Tomcat. ![]() There are numerous other WAMP packages available, but XAMPP for Mac is one of the most complete on offer. XAMPP for Mac has been designed to be the easiest way to install and run a development server. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin. XAMPP for Mac is an easy to install Apache distribution for Mac OS X, Windows, Linux and Solaris. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |