hasemstudios.blogg.se

Mac os x apache mysql php stack
Mac os x apache mysql php stack













mac os x apache mysql php stack
  1. #MAC OS X APACHE MYSQL PHP STACK HOW TO#
  2. #MAC OS X APACHE MYSQL PHP STACK INSTALL#
  3. #MAC OS X APACHE MYSQL PHP STACK UPDATE#
  4. #MAC OS X APACHE MYSQL PHP STACK PASSWORD#

– SET PASSWORD FOR = password(‘rootpass’) If you do “select host,user from er” you will find the proper name for your machine account. ‘MacBookAir.local’ is the local machine account. Here the ‘rootpass’ should be replaced by the password you choose for your MySQL root account.

#MAC OS X APACHE MYSQL PHP STACK HOW TO#

The following lines describe how to do that.

mac os x apache mysql php stack

It’s advised that you set a root password. – add “127.0.0.1 devdomainname” under the line which says “127.0.0.1 localhost”īy default, MySQL is setup without any password. The hosts file is located in /private/etc/hosts.

#MAC OS X APACHE MYSQL PHP STACK UPDATE#

If you want to a specific domain name for your development, you have to update hosts file. Typing mysql into the terminal window should work. from anywhere.Īlias mysqlstart=”sudo /Library/StartupItems/MySQLCOM/MySQLCOM start”Īlias mysqlstop=”sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop”Īlias mysqlstatus=”ps aux | grep mysql | grep -v grep” Do the following to set up the aliases and paths so that you can type mysql, mysqlstart, mysqlstop etc. I found this blog which explains things a little more clearly if you are confused by MySQL documentationĪfter everthing is installed you will find MySQL in /usr/local/mysql. – For this follow the instructions from MySQL documentation

#MAC OS X APACHE MYSQL PHP STACK INSTALL#

– Follow the instructions given here to install – Download the MySQL community server(GPL) version The following steps are for setting up MySql:

mac os x apache mysql php stack

If you need to enable SSL, you have to change the DocumentRoot (if you choose to) in nf under /etc/apache2/extra.Īfter the above changes are done, restart apache service. – Change also reference to /Library/WebServer/Documents under /var/www The following lines will set the DocumentRoot to /var/– Change the DocumentRoot from /Library/WebServer/Documents to /var/www – uncomment line that specifies ServerName – uncomment the line that says LoadModule php5_module/usr/local/opt/php53… The following lines will make Apache see and process PHP files Not having php.ini is resulting in Apache not logging any php errors. I found there is no php.ini in /etc where it’s expected to be. So when I refer to /etc, it’s the same as /private/etc. Note – In mine both /var and /etc are symlinked to /private/etc and /private/var. Copy this to index.html and you will notice that shows the typical ‘ItWorks!’ in the browser. However, there is no index.html file there. Note that the DocumentRoot is pointing to /Library/WebServer/Documents. Error logging goes to /var/log as pointed to by nf located in /etc/apache2. I found that Apache is installed in /etc/apache2. The first step is to get Apache and PHP setup properly. With that introduction, let us jump into what needs to be done to get LAMP setup properly. I have no idea if MAMP is a lot smoother route to get LAMP on Mac. However, a lot of the complications arose because of the differences between Ubuntu-Linux and Mac-Linux. That may have avoided one or two issues like the one where MySQL setup and PHP connection were looking in different directories. I could have installed MAMP instead of enabling what’s already there. It also came with Apache and PHP5.3 installed. Note my assumption was that Mac OS/X is linux underneath. If you are interested, it’s not difficult to turn all these steps into a shell script. The rest are commentary or explanation of the steps. (All these steps assume you are in the terminal window). In this blog all the lines marked by italics and red color represent the steps you need to take in order for LAMP to be setup. I created the steps that it would take to set up LAMP on Mac. It took me close to 3 days of intense Googling, debugging, fixing etc. I also thought I can easily get Mofinto dev environment setup on that since it’s Linux, correct?īoy, was this wishful thinking on my part. My existing Ubuntu shell scripts did not work.

mac os x apache mysql php stack

I was very excited because it’s my first MacBookAir.















Mac os x apache mysql php stack