FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Ubuntu 9.04,NetBeans 6.7 and AMP Stack Returns Web Page 404 Error

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
sweeny



Joined: 31 Jan 2009
Posts: 6

PostPosted: Fri Jul 03, 2009 10:26 am    Post subject: Ubuntu 9.04,NetBeans 6.7 and AMP Stack Returns Web Page 404 Error Reply with quote

After installing NetBeans followed by the AMP stack using tutorials
http://www.netbeans.org/kb/docs/php/configure-php-environment-ubuntu.html

And the Ubuntu Community
https://help.ubuntu.com/community/ApacheMySQLPHP

NetBeans was booted up,a new PHP project created without source files,setting its source directory to /home/<user>/public_html

The runtime directory path was automatically set to
Code:
http://localhost/~user/public_html/project1/php1/index.php

When the index.php file was executed it returned Error 404.

Solution - edit the runtime directory path to
Code:
http://localhost/project1/php1/index.php
Back to top
View user's profile Send private message
Jeff Rubinoff
Posted via mailing list.





PostPosted: Fri Jul 03, 2009 3:57 pm    Post subject: Ubuntu 9.04,NetBeans 6.7 and AMP Stack Returns Web Page 404 Error Reply with quote

Sweeny,
Thanks for the feedback. I'll note this in the tutorial accordingly.
Could you please create an issue at
http://www.netbeans.org/community/issues.html and ask the PHP guys to
change the automatically generated runtime directory path?

Jeff

sweeny wrote:
Quote:
After installing NetBeans followed by the AMP stack using tutorials

http://www.netbeans.org/kb/docs/php/configure-php-environment-ubuntu.html



And the Ubuntu Community

https://help.ubuntu.com/community/ApacheMySQLPHP



NetBeans was booted up,a new PHP project created without source files,setting its source directory to /home/<user>/public_html



The runtime directory path was automatically set to


Code:
http://localhost/~user/public_html/project1/php1/index.php



When the index.php file was executed it returned Error 404.



Solution - edit the runtime directory path to


Code:
http://localhost/project1/php1/index.php












Back to top
Jeff Rubinoff
Posted via mailing list.





PostPosted: Fri Jul 03, 2009 4:51 pm    Post subject: Ubuntu 9.04,NetBeans 6.7 and AMP Stack Returns Web Page 404 Error Reply with quote

Let me just double check something here.

The tutorial currently says that to create a new virtual host, you

Quote:
Change the Directory directive, replace <Directory /var/www/>

with <Directory /home/user/public_html/>

should the Directory directive instead say <Directory /home/>?

Jeff

Jeff Rubinoff wrote:
Quote:
Sweeny,
Thanks for the feedback. I'll note this in the tutorial accordingly.
Could you please create an issue at http://www.netbeans.org/community/issues.html and ask the PHP guys to change the automatically generated runtime directory path?

Jeff

sweeny wrote:
Quote:
After installing NetBeans followed by the AMP stack using tutorials

http://www.netbeans.org/kb/docs/php/configure-php-environment-ubuntu.html



And the Ubuntu Community

https://help.ubuntu.com/community/ApacheMySQLPHP



NetBeans was booted up,a new PHP project created without source files,setting its source directory to /home/<user>/public_html



The runtime directory path was automatically set to

Code:
http://localhost/~user/public_html/project1/php1/index.php



When the index.php file was executed it returned Error 404.



Solution - edit the runtime directory path to

Code:
http://localhost/project1/php1/index.php








([email]address-removed[/email])
([email]address-removed[/email])




([email]address-removed[/email])
([email]address-removed[/email])

Back to top
sweeny



Joined: 31 Jan 2009
Posts: 6

PostPosted: Fri Jul 03, 2009 10:37 pm    Post subject: Reply with quote

Thanks for the replies Jeff

The NetBeans runtime directory does include "/home" in its directory path, NB abbreviates the directory path using "~" and this is why it is not seen.

Virtual host directory
Code:
/home/user/public_html


NB initialises the PHP project runtime directory path to
Code:
http://localhost/~user/public_html/project1/php1/index.php


The PHP project executes when runtime directory is edited to
Code:
http://localhost/project1/php1/index.php


Quote:
Should the Directory directive instead say <Directory /home/>?


Yes if you wish the virtual host to commence from "/home".

I am seeking a subdirectory designated for development projects, this is why the virtual host points to "/home/user/public_html/" and not "/home".

The virtual host logical path "/home/user/public_html/myproject/index.php" is then resolved by the Web Browser to "http://localhost/myproject/index.php".

I am not sure if I've answered your question?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB