Domanda

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:

  • Netbeans 7.1
  • LAMPP (newly download)
  • Ubuntu 11.10 (up-to-date)

I would be thankful if steps can be provided.

È stato utile?

Soluzione

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:

  • Make sure all php extensions that you need are already installed by checking the phpinfo() page in XAMPP.

  • You would probably want to start XAMPP each time you start your PC instead of doing it manually every time. There are several ways to do that if you google it.

    Have you tried all these steps and still can't get your project running ?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top