![]() ![]() ![]() Note: Potential pitfall here - if Apple releases an OS X update which affects the stock PHP stuff, then it will only patch the files under the default path (/System/Library/PHP) whereas you'll actually be using old copies of those files in the /usr/lib/php directory. That's the stuff we really need in order to do anything with php and mysql. Now your php scripts will have access to the DB (DataBase) functions, among other things. It should look like PHP$ cd php$ lsĪrchive Crypt HTML Log.php Numbers System.phpĬache DB.php HTTP.php Mail.php PEAR.php buildĬache.php Date Image Math Payment extensions When you're finished, go to the php directory and do an ls (list). Sudo cp -R /System/Library/PHP/* /usr/lib/php You will need to be an Administrator (or root) to do this. I chose the latter for simplicity's sake. So, options are: reinstall php from scratch using some distro that works, figure out how to modify the includes path in all your scripts, or move/copy the php libraries from their weird location (/System/Library/PHP) to the expected location (/usr/lib/php). Furthermore, I can't find where that path is specified on the stock OS X installation it appears that maybe /usr/lib/php/build/acinclude.m4 is the file to edit, but I don't know enough about how everything works to feel comfortable messing with that. However, there are a multitude of common libraries with functions you will need, which are present but are not yet accessible because they're not in php's "includes" path. The basic functionality of php is now enabled on your system. If you don't, then something's wrong - check the syntax in nf, restart Apache again, run Software Update and reboot if necessary, and try again.Ģ. You should see a big page of configuration information about php, with tables and colors and the php logo. Now restart the webserver, by going to Preferences->Sharing and unchecking, then rechecking the Personal Web Sharing box.Īnd save that file as something.php. to the section marked "", so that it looks like this: phpsĭirectoryIndex index.php index.shtml index.html LoadModule php4_module libexec/httpd/libphp4.soĪddType application/x-httpd-php-source. Find and uncomment (remove # mark) these lines: 10.2 ("Jaguar") come with php installed, but it is not enabled by default. Setting up php and mysql (and phpbb) on Mac OS X 10.2 Setting up php and mysql (and phpbb) on Mac OS X 10.2 by Marion Bates ġ. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |