[Updated Tutorial]

Let’s see how to install a Full Webserver with Apache, PHP, MySQL and phpMyAdmin on macOS!

— Steps:
– sudo apachectl start
– sudo nano /etc/apache2/httpd.conf
– remove # before #LoadModule php5…
– sudo apachectl restart
– sudo nano /etc/apache2/httpd.conf
– Add index.php in DirectoryIndex line
– sudo apachectl restart
– sudo nano /Library/WebServer/Documents/index.php
– add the code seen on the screen
– download Mysql:
– SAVE YOUR PASSWORD!
– sudo mkdir /var/mysql
– sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
– Start mysql Server
– cd /usr/local/mysql/bin
– sudo ./mysql -u root -p
– Alter user ’root’@‘localhost’ identified by ‘newpassword’;
– Download phpmyadmin:
– Copy paste it into Documents folder and rename to phpMyAdmin
– cd /Library/Webserver/Documents/
– cd phpMyAdmin
– sudo mkdir config
– sudo chmod o+x config
– open localhost/phpmyadmin
– Under Authentication, enter mysql password
– Download Config
– Copy/Paste config into config folder
– Enjoy

— More Tutorials At —

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-php/

22 Comments

Jerrel Seolall

April 27, 2020

anyone know how to fix this error

A PHP Error was encountered
Severity: Warning
Message: mysqli_real_escape_string() expects parameter 1 to be mysqli, boolean given
Filename: mysqli/mysqli_driver.php
Line Number: 316

Reply

prateek dabral

April 27, 2020

Finally a Russian tutorial

Reply

Tamya Hussain

April 27, 2020

as soon as i hit ctrl O, it doesn't let me hit ctrl x. The bottom options change to get help, cancel etc…help?

Reply

Ritik Mani Yadav

April 27, 2020

Even after doing all this it is denying the permission to phpmyadmin setup

Reply

Alejandra Paola Rozo Chiquiza

April 27, 2020

Thank you so much!

Reply

Gerson De La Cruz

April 27, 2020

I can not delate # from #LoadModule php7_module libexec/apache2/libphp7.so?? please help

Reply

Pelajar Website

April 27, 2020

How do i exit the terminal i cant do ctr+x

Reply

قناة مضلعات

April 27, 2020

Kindly, how to get password in first step?

Reply

shamnad ps

April 27, 2020

Thank you 🙂

Reply

Ibar Mario

April 27, 2020

Thanks a lot It helped me a lot!… thanks soooo much!!!!

Reply

Gabriel Garcia

April 27, 2020

great job, thks

Reply

Alyssa Aisyah Auslan

April 27, 2020

hi when i typed in cd phpmyadmin int terminal it said no such file or directory, what do i do?

Reply

Ravi k

April 27, 2020

I have seen many videos about installation and setup of all these 3 components and I say that this is best video of all as it is crystal clear and easy to understand.
Kudos to you 🙂

Reply

soemin htut

April 27, 2020

It's work perfectly.Thank you Sir 👏👏👏

Reply

L

April 27, 2020

I followed up eveything but localhost refused my connection… any ideas?

Reply

Alexandra Vykhor

April 27, 2020

THANK YOU SO MUCH!!

Reply

Rakesh Bhatia

April 27, 2020

I don't have an "OS X" folder under Go->Computer…

Reply

Ekata Tandukar

April 27, 2020

how do i activate php7?

Reply

asoy

April 27, 2020

oh my god, thats miracle, thank u sir, i love it

Reply

allenasky

April 27, 2020

thx, but my mac shows {mysqli::real_connect(): (HY000/2002): No such file or directory} when i tried to login, can you teach how to solve the problem?

Reply

Grant Waldeck

April 27, 2020

Okay so every time I am in the terminal and I try command O it just opens a finder prompting me to open a folder. Does anyone else have this problem. and how do I save without out command o

Reply

Alex Tsabii

April 27, 2020

Thank you a lot!

Reply

Leave a Reply