Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    95

    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.

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    95
    PROBLEM SOLVED
    Modified the /etc/httpd/conf/httpd.conf file
    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

  3. #3
    Just 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.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •