Results 1 to 3 of 3
As I am a newbie in the field of PHP and use NetBeans 7.0 on Ubuntu 10.04LTS with Apache2 and MySQL 5.1.41 as database. I started a project in Netbeans ...
- 07-03-2011 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 89
Php code doesnot run
As I am a newbie in the field of PHP and use NetBeans 7.0 on Ubuntu 10.04LTS with Apache2 and MySQL 5.1.41 as database. I started a project in Netbeans 7.0 named Practical and on the initial file named index.php I wrote the simplest PHP code of "hello, world" and phpinfo(). Both of them gave the same result as 404 Not Found. but when I put the same files in folder /var/www they run fine. so how do I make my code run in the folder ~/NetBeansProjects/Practical folder.
- 07-07-2011 #2Just Joined!
- Join Date
- Mar 2009
- Posts
- 89
Modified the /etc/httpd/conf/httpd.conf filePROBLEM SOLVED
changed "DocumentRoot" from /var/www/html to /<site name>
and also a few lines later
<Directory "/<site name>"> from <Directory "/var/www/html">
and then /etc/init.d/httpd reload to reload the runing apache webserver
- 07-07-2011 #3Just Joined!
- Join Date
- Jul 2011
- Posts
- 2
After reading your problem i think you are encountered with the coding problem. The corrective step which you need to take is placed the write code. Same problem has encountered with me. I was working on developing the Joomla Templates for my Website Templates sites. But when upload this file it would not working because on the back end i did not give the write code for the web development.


Reply With Quote