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.
Ok I'll give you everything I usually do From the moment I download a new version of Ubuntu.
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
.
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.
Navigate to http://localhost
or http://127.0.0.1
you should see the following screen.
(source: techblissonline.com)
Select your favorite language then voila your installation is complete.
create a new Netbeans project and call it test
for example inside /opt/lampp/htdocs/
.
Create an index.php
file inside /opt/lampp/htdocs/test/
and put echo phpinfo()
inside it.
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 ?