PHP project using Netbeans 6.8, XAMPP, Synfony framework

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP project using Netbeans 6.8, XAMPP, Synfony framework

Postby dafne123 » 18. August 2009 19:05

Hello everybody!!

I am trying to build a PHP project with Netbeans 6.8 (milestone) using the Symfony framework on my local machine.

The OS is WINDOWS XP PRO.


1) The first thing I did was installing the web development environment by using XAMPP LITE 1.7.2

That seems to be working fine: when I enter http:\\localhost in the browser, the XAMPP welcome page is shown.

Also when I click on Status, everything is active, but IPv6.
So that should be fine.

2) I went on to install the Symfony 1.2.8 framework, by following the steps of "getting started guide" ( http://www.symfony-project.org/getting- ... /en/04-Sym fony-Installation)

After extracting the symfony-1.2.8.zip file, I checked that symfony was correctly installed by using the symfony command line:

c:\> php lib\vendor\symfony\data\bin\symfony -V

The PHP command was NOT recognized by the prompt.

So I thought of installing PHP 5.3 on its own.

After doing that, the PHP command WAS recognized and the sinfony version was shown.
I also tried:

c:\> php lib\vendor\symfony\data\bin\check-configuration.php

to make sure everything was fine.

3) I went on to install Netbeans 6.8 (milestone) and under Tools-->Options-->PHP I set the php.exe file of my XAMPP as the intepreter to be used.
I also entered the path to the Symfony script under Tools-->Options-->PHP.


4) When I run the test project, this is what I get in the browser:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
08/18/09 18:12:37
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0



It looks like the Apache server cannot find the path to
http://localhost/PhpProject2/

Any suggestion or advice?

Please any help is really more than welcome...

Thanks a lot!!
dafne123
 
Posts: 2
Joined: 18. August 2009 19:01

Re: PHP project using Netbeans 6.8, XAMPP, Synfony framework

Postby Wiedmann » 18. August 2009 20:16

The PHP command was NOT recognized by the prompt.

That's the reason for the "XAMPP Shell".

So I thought of installing PHP 5.3 on its own. After doing that, the PHP command WAS recognized

Because XAMPP does not change your system environment. But I guess you can add the path to PHP yourself to the $PATH variable...

It looks like the Apache server cannot find the path to
http://localhost/PhpProject2/

Maybe. "PhpProject2" is a subdirectory of "\xampp\htdocs"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: PHP project using Netbeans 6.8, XAMPP, Synfony framework

Postby dafne123 » 19. August 2009 11:49

Wiedmann wrote:
The PHP command was NOT recognized by the prompt.

That's the reason for the "XAMPP Shell".

So I thought of installing PHP 5.3 on its own. After doing that, the PHP command WAS recognized

Because XAMPP does not change your system environment. But I guess you can add the path to PHP yourself to the $PATH variable...

It looks like the Apache server cannot find the path to
http://localhost/PhpProject2/

Maybe. "PhpProject2" is a subdirectory of "\xampp\htdocs"?



Hi Wiedmann,

thanks a lot for your quick and detailed answer!!

It was very helpful because:

1) I figure out that I should use the shell of XAMPP

2) I understood that XAMPP does not change the local system.
I don't know how to "add the path to PHP to the $PATH variable" and what that implies for the system.

3) In any case, I learned that projects should be placed in a subdirectory of "\xampp\htdocs", which is the root of the Apache server. Is that right?

Now the Apache server can find the project and it seems to be working.

I think I will disinstall the standalone instance of PHP 5.3 (the one I installed because the PHP command could not be recognized by the system shell).
I think there's no point in keeping it now. What do you think?


Thanks again!
dafne123
 
Posts: 2
Joined: 18. August 2009 19:01

Re: PHP project using Netbeans 6.8, XAMPP, Synfony framework

Postby Wiedmann » 19. August 2009 12:17

2) I understood that XAMPP does not change the local system.
I don't know how to "add the path to PHP to the $PATH variable" and what that implies for the system.

http://de.php.net/manual/en/faq.installation.php#faq.installation.addtopath
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests