Home arrow Web Authoring arrow Page 2 - Deploying your Site with phpEclipse
WEB AUTHORING

Deploying your Site with phpEclipse


Eclipse simplifies the process of deploying your site to a web server. You can even use Ant, traditionally thought of as a Java tool, to help you in the deployment. This article, the first of two parts, explains how. It is excerpted from PHPEclipse: A User Guide, written by Shu-Wai Chow (Packt Publishing, 2006; ISBN: 1904811442).

Author Info:
By: PACKT Publishing
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
March 09, 2006
TABLE OF CONTENTS:
  1. · Deploying your Site with phpEclipse
  2. · FTP, SFTP, and WebDAV Export
  3. · Using Ant for Deployment
  4. · Setting up Ant for FTP

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Deploying your Site with phpEclipse - FTP, SFTP, and WebDAV Export
(Page 2 of 4 )

FTP, SFTP, and WebDAV exports are very similar. They follow the same flow and use almost the same screens. To trigger an export, select the project in the Navigator view and click on the File | Export… menu option. This will give you a list of export options to select from.


The Klomp plug-in gives us the ability to export via SFTP. Unfortunately, as of this writing, it does not work with the latest version of Eclipse, version 3.1. If you absolutely need a secure way to transfer files and Klomp does not work with your version of Eclipse, you might consider using WebDAV over the https:// protocol, or Ant using SFTP.

Most of the options in this list are installed by the JDT and are Java related. Some allow you to export settings to be shared between team members. A handful, like FTP, Sftp, and WebDAV, are actually related to moving source files to another area. Select FTP and click on the Next button to continue.


If you get an error message saying 'unable to load class' you will have to download drops containing FTP and WebDAV target management support plug-ins from the Eclipse site. Go to the Eclipse download site http://download.eclipse.org/eclipse/ downloads/ and click on your version you will find the drops for FTP and WebDAV Support on that page. Download and copy all the contents of the features and plugins directories into the features and plugins directories of your Eclipse installation.

The next screen will ask if you wish to export a project that you previously exported via FTP:

                                           



When you are first presented with this screen and if you have not done this before, the text area will be empty. Click on the Choose a new project to be exported radio button and you will be presented with a list of all the projects in your workspace. Select the ShelterSite project and click the Next button to continue. Eclipse will create a deployment mapping for this project. When you export again in the future, Eclipse reads this mapping to the server settings associated with a project, saving you a few of the following steps to choose a server.

Similar to the last screen, this screen will ask if you want to export the project to a location to which you previously exported, or if you want to export to a new location. Again, if you have never exported via FTP before, the list area will be blank. Choose Create a new site and click on Next, this will launch the Create a connection to an FTP site dialog box.


All of your FTP, SFTP, and WebDAV locations on this screen can be edited and deleted from the Site Explorer view. Access this view by going to the window | Show Vew… | Other... | Target Management | Site Explorer menu option.

Enter your server connection settings here. Click the Next button to continue. If you are using WebDAV or SFTP, this screen will be different. However, all three will essentially ask you for the same details, like server name and authentication.

On the final screen in the export wizard, you will have a chance to decide which files you want to upload. You can select individual files, or upload the entire project into the remote directory by checking the correlating checkbox next to the item. If the site has been previously uploaded, you can also do a line-by-line code comparison of the project.

After you are done analyzing the code, click on the Finish button. The upload process will begin at this point. After this step, your site will be uploaded to the remote server, and you will be taken back to the development perspective.


blog comments powered by Disqus
WEB AUTHORING ARTICLES

- Top WordPress Plugins for Social Media
- How to Install WordPress on WAMPP
- More of the Best Wordpress Plugins for Comme...
- Top Wordpress Plugins to Fight Spam
- More of the top Drupal modules for SEO
- Top Drupal Modules for SEO
- More Top Wordpress Plugins for SEO
- Website Optimization Tips
- Backup and Restore a Drupal Website and Data...
- 5 Best Web Font Services
- Web Font Embedding Services
- Joomla Site Administration
- Create PHP Pages that Use WordPress Templates
- Top Joomla Extensions for Social Networking
- Drupal Modules for Site Navigation

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials