Omid Kamangar
Omid Kamangar

Reputation: 5778

Working on a remote PHP project (Ubuntu Server) via Eclipse, Netbeans or any other IDE

I am wokring on a PHP project, which is located on an Ubuntu server to which I have SSH access.

Sometimes I code in Ubuntu and sometimes in Windows (mostly Ubuntu).
Do you have any idea how to connect to the project on the server and edit the files. I searched the net, got some ideas like using SSHFS, but I want something which works both on Linux and Windows.

I also found Eclipse Remote System Explorer, but I think it is not that stable and might cause problems (correct me if I am wrong).

Basically I (like) code in Eclipse, but I can move to Netbeans or any other good (but Free) IDEs, if I have to.

Thanks.

Upvotes: 1

Views: 3158

Answers (4)

2ndkauboy
2ndkauboy

Reputation: 9377

I use eclipse with Aptana. There you can easily use the build in FTP support to connect to the server.

Another solution would be mouting the server directory to your PC. On Windows systems you can use something like WebDrive.

Upvotes: 1

Phill Pafford
Phill Pafford

Reputation: 85318

Aptana Studio 3 has everything you need

  • ssh w/ built in terminal
  • sftp (connect FTP through SSH)
  • Eclipse Based
  • GIT/SVN support
  • PHP Support
  • etc...

Related to your comment:

Upvotes: 2

Paul DelRe
Paul DelRe

Reputation: 4039

At my company each developer has a windows PC to work from with a linux dev VM that mirrors production's setup. The linux servers have a samba share setup to the /var/www directory. There are two common workflows we follow.

  1. The developer checks out the code repo to their local PC. They use Netbeans (previously Eclipse) to edit the files and an IDE feature copies the edited file to the webserver via samba.
    • Pro: fast
    • Con: webserver can get out of sync, only one way syncing: windows -> VM
  2. The developer checks out the code repo to the samba folder. They open the code from the IDE and edit from there.
    • Pro: two way syncing, can edit from server if need be, can use any editor/IDE
    • Con: slow

We ran for a while under setup 2, but quickly found that it was far too slow for us so most use setup 1. The only exceptions are remote teams that find it easier to connect directly to the VMs.

Upvotes: 2

user405725
user405725

Reputation:

I use Emacs with Tramp plug-in.

Upvotes: 1

Related Questions