Download mysql for mac os x 10.67/21/2023 ![]() Generally, the installation file automatically installs MySQL to a folder with the same name under/usr/local. First click Install mysql-5.1.46-osx10.6-x86_64.pkg, This is the MySQL main installation package. Run DMG and you will find four files in it. Select the appropriate version, for example, the mysql-5.1.46-osx10.6-x86_64.dmg here. MySQL provides installation instructions for Mac OS X.ĭownload MySQL 5.1. Currently, the most stable mysql version is 5.1. php, for example, the version number is 5.3.1.īecause MySQL is not pre-installed in Mac OS X, you need to manually install it. In this way, you can see information about PhP in http: // localhost/info. Run"vi /Library/WebServer/Document/info.phpIn this way, you can edit the info. En file in the apacheroot directory and rename it info. Run"cp /Library/WebServer/Documents/ /Library/WebServer/Documents/info.phpCopy the index.html. Run"sudo apachectl restart", Restart Apache, so that PHP can be used. For example, the maximum value of data imported in phpMyAdmin is upload_max_filesize = 2mpost_max_size = 8 m for example, display_errors is used to control whether to display the error display_errors = off of the PHP program. The following two items are used to adjust the maximum value of the submitted PHP file. Run"sudo cp /etc/ /etc/php.ini", You can use PHP. ![]() )įind"#LoadModule php5_module libexec/apache2/libphp5.so", Remove the # sign and save it (enter it in the command line):w) And exit VI (enter in the command line:q). Remember to restart the finder so that you can find the corresponding file and edit it as you like, note that you need to enable the root account to modify some files, but it is safer to use sudo on the terminal to temporarily obtain the root permission. (If you are not familiar with operating terminal and VI, you can set to display all system hidden files in the finder. Run"sudo vi /etc/apache2/nfOpen the Apache configuration file. You can set "firewall" in "security" of "system preference settings) to prohibit such access. NOTE: If Apache is enabled, "Web Sharing" is enabled, and connected users access "/Library (resource library)" through "http: // /~ to access the "/users//sites/" directory. In this way, enter "http: // localhost" in the browser, and you can see that the content is "It works !" Is located under "/Library (resource library)/webserver/documents/", which is the default root directory of Apache. Run"sudo apachectl -v", You will see the apache version number in Mac OS X 10.6.3: Run"sudo apachectl start", And then enter the account password to run Apache. Open "terminal" and (Note: The password required by sudo is the root account password of the system) ![]() The main content includes:Ĭonfigure the mcrypt extension library of PHPĬhoose System Preferences> sharing> Web Sharing )" This article takes Mac OS X 10.6.3 as an example. Mac OS X has built-in Apache and PHP, which is very convenient to use. It introduces the related knowledge, skills, experience, and some PHP source code.Ĭlass = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 344026 'rolling = 'no'> Introduction: This is a detailed page for configuring Apache + PHP + MySql in Mac OS X.
0 Comments
Leave a Reply. |