Development Environment configuration of Netbeans + PHP in Ubuntu

Source: Internet
Author: User
Recently, it was found that Netbeans was really powerful and useful. The assignment requires a website, but it does not mention IDE selection. It seems that we are going to use notepad ++. Based on the principle that all projects are implemented in Linux, I installed NetbeanLinux. In the future, we will find a solution from the Internet and summarize it into this log. Install the latest version of NetBeans full graphic http://www.linuxidc under Ubuntu10.04

Recently, it was found that Netbeans was really powerful and useful. The assignment requires a website, but it does not mention IDE selection. It seems that we are going to use notepad ++.

Based on the principle that all projects are implemented in Linux, I installed Netbean for Linux. In the future, we will find a solution from the Internet and summarize it into this log.

Install the latest version of NetBeans full graphic http://www.linuxidc.com/Linux/2010-06/26861.htm Ubuntu 10.04

Run the following command to open terminal and install a series of software in the PHP environment.
  1. Sudo apt-get install apache2 // install apache web server
  2. Sudo apt-get install mysql-server // install mysql server
  3. Sudo apt-get install php5 // install php5
  4. Sudo apt-get install php5-mysql // install mysql extension for php5
  5. Sudo apt-get install php5-xdebug // install xDebug extension for php5

After installation, enter http: // localhost in the address bar of the browser.

Press enter to display

To access a local webpage file from localhost, you must enable the userdir module of Apache server and enter a2enmod userdir in the terminal.

Create a public_html folder to store the webpage file: mkdir public_html

Restart Apache web server and enter/etc/init. d/apache2 restart under root permission.

Enter http: // localhost/~ in the address bar of the browser /~ Programmer/(the programmer here is the ubuntu user name and needs to be changed manually) will appear

Create a file named index. php In the public_html folder. The content is

  1. Phpinfo ();
  2. ?>
Refresh the browser and you will see


To enable the debug function, you must use the root permission to modify the file:/etc/php5/conf. d/xdebug. ini.

Add a line in the file: xdebug. remote_enable = on

Restart apache web server again: sudo/etc/init. d/apache2 restart

After the php environment is set up, you need to set up netbeans.

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.