Re: Netbeans 7.1.2(PHP) on Ubuntu 12.04
- From: Geoff Hoffman <
- Subject: Re: Netbeans 7.1.2(PHP) on Ubuntu 12.04
- Date: Fri, 29 Jun 2012 13:30:11 -0700
Where is PhpProject1
located? Is it inside your htdocs
1) Apache is running...
$> ps aux | grep httpd
2) and PHP is installed and enabled
# In your httpd.conf somewhere
LoadModule php5_module modules/libphp5.so
3) and PhpProject1 is located at /var/www/htdocs/PhpProject1/
4) and /var/www/htdocs is defined as your docroot in httpd.conf
5) And you restarted Apache
$> sudo /etc/init.d/apache2 restart
After 1 through 5 above, if you run the following URL:
it should work, because http://localhost/
is mapped to your docroot, which is defined in httpd.conf, and PhpProject1 is created inside there, with index.php inside there.
Any one of those things not being correct can cause any one of a variety of different errors.
Be specific with the error you get in the browser (is it a 404? 500?) and check the Apache error log as well, on Ubuntu it should be in /var/log/apache2/error.log
Hopefully that helps -
Connect with us on twitter, google+, facebook, or linkedin.
Catch our next training in Vancouver Jun 25 - 29, San Francisco Jul 16 - 20, Chicago Aug 13 - 17, Toronto Sep 10 - 14 or See All.
This email, including any attachments, is for the sole use of the intended recipient and may contain confidential information. If you are not the intended recipient, please immediately notify us by reply email or by telephone, delete this email and destroy any copies. Thank you.