How can I configure the Apache + PHP + MySQL + Netbeans development environment on MacOSXYosemite10.10.3? The MAMP solution does not work either.

Source: Internet
Author: User
Tags php development environment netbeans
How can I configure the Apache + PHP + MySQL + Netbeans development environment on MacOSXYosemite10.10.3? I cannot use MAMP solution. I am a student and only have a MacBook. I want to learn PHP recently and want to configure the PHP development environment on my OS X Yosemite 10.10.3, because the teacher used Apache + MySQL + Netbeans in Windows, he also wanted to configure the same environment on Mac. However, he had little tutorial on configuring PHP on Baidu, there is no matching Netbeans method. Therefore, I would like to ask:
First, the Apache and PHP files that come with the system are running. PHP files under/Library/WebServer/Documents/can be executed, but the PHP files cannot connect to the server, I write localhost on one of my servers, but it won't work after several days.
Baidu fruitless after Netbeans officially found the use of integrated environment MAMP solution, https://netbeans.org/kb/docs/php/configure-php-environment-mac-os_zh_CN.html, according to its tutorial to do but prompt can not open the php file, groping for a few days or no clue, I am a newbie and do not know much about PHP configuration. I hope that experienced experts can give me some advice. I am very grateful!


Reply to discussion (solution)

I am also mamp + netbeans, which is not as complicated as you think.

I am also mamp + netbeans, which is not as complicated as you think.

What is between MAMP and Netbeans?

How did you configure it? can you tell me that the new user really doesn't understand it?

In fact, it is easier to configure php on mac ..

In fact, it is easier to configure php on mac ..



Yes, but I can enable the built-in Apache and PHP, that is, I cannot use Netbeans to create PHP files to run them.
It can be executed only in/Library/WebServer/Documents/. it must be that my configuration is not in place, but the tutorials are rare and cannot be understood at the moment.
Please be patient







Maybe you can learn from me. please advise.

You want to preview it directly under netbeans. I use a browser directly.

You want to preview it directly under netbeans. I use a browser directly.



No, I want to run it in a browser. you can use it.


You want to preview it directly under netbeans. I use a browser directly.



No, I want to run it in a browser. you can use it.

Then you can configure a local domain name to access it.



You want to preview it directly under netbeans. I use a browser directly.



No, I want to run it in a browser. you can use it.

Then you can configure a local domain name to access it.



Haha, I am groping to turn off Apache on the local machine, change the MAMP Port back to 80, and then delete the configuration in Netbeans and The 8888 behind localhost.
But now there is a problem connecting to MySql... can you give me some advice? it's just the same as the tutorial.







You want to preview it directly under netbeans. I use a browser directly.



No, I want to run it in a browser. you can use it.

Then you can configure a local domain name to access it.



Haha, I am groping to turn off Apache on the local machine, change the MAMP Port back to 80, and then delete the configuration in Netbeans and The 8888 behind localhost.
But now there is a problem connecting to MySql... can you give me some advice? it's just the same as the tutorial.




You can use phpmyadmin to check whether you can access

Xampp is a package solution that is easy to use and starts at a constant speed.





You want to preview it directly under netbeans. I use a browser directly.



No, I want to run it in a browser. you can use it.

Then you can configure a local domain name to access it.



Haha, I am groping to turn off Apache on the local machine, change the MAMP Port back to 80, and then delete the configuration in Netbeans and The 8888 behind localhost.
But now there is a problem connecting to MySql... can you give me some advice? it's just the same as the tutorial.




You can use phpmyadmin to check whether you can access


Yes... how can I continue?

Xampp is a package solution that is easy to use and starts at a constant speed.



This is recommended on the official website, so I am stuck. At present, Netbeans can be used in MAMP to compile files.
Because I am a beginner, I just want to get started quickly. I just want to get started with IDE.
Can the moderator check my reply? I am connecting to the data now.
Please continue

Https://discussions.apple.com/docs/DOC-3083
You can read this article.

Https://discussions.apple.com/docs/DOC-3083
You can read this article.



After reading this, I didn't say how to configure mysql under mamp.

Anti-sinking patch v1.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.