phpubuntu-11.10lamppnetbeans-7.1

Netbeans PHP configuration on Ubuntu


I have this problem getting my newly created php project on Netbeans work on Ubuntu. I've tried to place the source folder of the project in the /lampp/htdocs folder or selected the copy location option on the 3rd step of creating the project, yet none of them worked.

Here the version of the softwares I'm using:

I would be thankful if steps can be provided.


Solution

  • Ok I'll give you everything I usually do From the moment I download a new version of Ubuntu.

    1. After installing Ubuntu I download XAMPP for Linux and follow their installation guide. Pay extra care to the permission when extracting XAMPP. Be sure you extracted it in the correct folder /opt.

    2. You must start XAMPP manually by using the command /opt/lampp/lampp start. You will need root access for that. If everthing was started normally you will get the following message in the terminal:

      Starting XAMPP 1.7.7... LAMPP: Starting Apache... LAMPP: Starting MySQL... LAMPP started.

    3. Navigate to http://localhost or http://127.0.0.1 you should see the following screen. XAMPP startup screen
      (source: techblissonline.com)

    4. Select your favorite language then voila your installation is complete.

    5. create a new Netbeans project and call it test for example inside /opt/lampp/htdocs/.

    6. Create an index.php file inside /opt/lampp/htdocs/test/ and put echo phpinfo() inside it.

    7. Navigate to http://localhost/test/index.php and you should get the page you just wrote.

    Notes: