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.
- Sudo apt-get install apache2 // install apache web server
- Sudo apt-get install mysql-server // install mysql server
- Sudo apt-get install php5 // install php5
- Sudo apt-get install php5-mysql // install mysql extension for php5
- 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
-
- Phpinfo ();
- ?>
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.