Running PHP project with Remote Web configuration

Posted by Tomas Mysik on Aug 29 2008, 05:21:26 PM CEST

Today, we added support for running PHP project with Remote web configuration - how does it work? First, you have to decide whether you want to upload sources automatically before running a project or not. This can be easily done in Run Configuration in Project properties.

Then, if you try to Run project (it works fine for Run file, Debug project and Debug file as well),

the already known Upload window is displayed. If it's the first time you run a project, then all the files are selected.


Then, of course, you edit some files and want to run your project again - what will happen?


Category: Features | Permalink | Comments [10]

Trackback URL: http://blogs.sun.com/netbeansphp/entry/running_php_project_with_remote
Comments:

Yeah, It's good..
and if there can filter some files or folders that i don't want to upload to ftp server. such as the .svn folder for svn server. It's some bother to cancel selected one by one...

Posted by fortruth on August 30, 2008 at 03:56 AM CEST #

Hi! I am having problems with the FTP run config on NB6.5B WinVista with a php project. If I try to upload a new project 'test', the project folder is created but no php files are uploaded as there is popup error: "Cannot logout from server ABC.com". In the created folder there is a file named ".pureftpd-upload.48b95463.15.7970.ffa89136" and this is the FTPlog:

220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 4 of 50 allowed.
220-Local time is now 15:08. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
USER my-user
331 User my-user OK. Password required
PASS ******
230-User my-user has group access to: my-user
230 OK. Current restricted directory is /
TYPE I
200 TYPE is now 8-bit binary
CWD /public_html/test
250 OK. Current directory is /public_html/test
CWD /public_html/test
250 OK. Current directory is /public_html/test
PORT 192,168,1,102,206,25
200 PORT command successful
STOR index.php
QUIT

Posted by s1m0n on August 30, 2008 at 04:11 PM CEST #

.... sorry, I just needed to set the ftp conn to annonymous. Thanks anyway. PS: great job

Posted by s1m0n on August 30, 2008 at 04:27 PM CEST #

To fortruth:

SVN metadata folders should not be uploaded to a FTP server - if they are, please file an issue:
http://www.netbeans.org/issues/enter_bug.cgi?component=php

Thanks,
Tomas

Posted by Tomas Mysik on August 31, 2008 at 02:48 PM CEST #

I cannot find the option for "Upload Files: On Run." Am I missing something?

Posted by wiggsfly on September 03, 2008 at 02:12 PM CEST #

Hi,

I have the same error with my server.
"cannot logout from server ABC.com
Reason: Connection reset"

I have a remote server that I want to FTP to, but I keep getting this error.

Is there something I'm missing?

Posted by Steph on February 04, 2009 at 07:23 PM CET #

Same problem, server connects successfully, list command is working, traverses all files, but no one is being downloaded; upload works but with same error message at the end (connection reset)

220 xx.xx.xx.xxx FTP server ready
USER xxxxxxxxxxx
331 Password required for xxxxxxxxxxx.
PASS ******
230 User xxxxxxxxxxx logged in.
TYPE I
200 Type set to I
CWD /core/htdocs/callcenter
250 CWD command successful
CWD /core/htdocs/callcenter
250 CWD command successful
SYST
215 UNIX Type: L8
PASV
227 Entering Passive Mode (xx,xx,xx,xxx,xxx,xxx).
LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
CWD /core/htdocs/callcenter/xxxxxxxxx
250 CWD command successful
PASV
227 Entering Passive Mode (xx,xx,xx,xxx,xxx,xxx).
LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
CWD /core/htdocs/callcenter/xxxxxxxxx
250 CWD command successful
.....
PASV
227 Entering Passive Mode (xx,xx,xx,xxx,xxx,xxx).
LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
QUIT

Final message from FTP: Connection reset

Greets

Posted by Christian on March 13, 2009 at 12:42 PM CET #

In my case this problem was caused by firewall.
Try disabling it.

Posted by Leandro on July 01, 2009 at 01:50 PM CEST #

I confirm it.

Windows firewall five problems like:

"cannot logout from server connection reset"

Disabling it avoid the problem.

On the other side there is a Debian Etch running PureFTDd.

Posted by Gabriel on July 02, 2009 at 10:39 AM CEST #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by links of london on October 31, 2009 at 03:19 AM CET #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed