What is the best way to deploy an Eclipse project for PHP (PDT) for Apache? (on Ubuntu)

What is the best way to deploy an Eclipse PHP PDT project on Apache 2.2 on Ubuntu?

I already tried to find the Apache Eclipse server adapter, but no luck. Do you know anyone?

If not, what is the best way to deploy a PHP project for Apache? Shell script? Ant script? Another solution?

I can put the project folder in the Apache www folder, but I would prefer to have the project files in the cloned git repository outside of Apache.

I am using Eclipse Helios SR1, PDT 2.2.1 and Apache 2.2.16.

Thanks in advance.

+6
eclipse php ubuntu apache deployment
source share
6 answers

I ran into this page looking for a solution for Windows, and found this little solution that might prove useful to someone:

  • Choose Run> External Tools> Customize External Tools
  • Add a new configuration, name it Deploy or something
  • Set the location field to C: \ Windows \ System32 \ xcopy.exe
  • Set the argument field to $ {workspace_loc} $ {project_path} \ *. php c: \ inetpub \ wwwroot \ $ {project_name} / s / y
  • Create the c: \ inetpub \ wwwroot \ $ {project_name} directory manually so that xcopy does not get confused

This will copy all your PHP files to your web server directory in a subfolder with the same name as your project. The best part is that you can launch this deployment shortcut using the Run Tool button, next to the Debug and Run buttons.

+4
source share

symbolic links!

ln -s /home/pedrosanta/Workspace/myapplication /var/www/myapplication/htdocs

configure apache virtual hosts accordingly.

Or you can simply set the root of your virtual host to a remote location.

DocumentRoot /home/pedrosanta/Workspace/myapplication

+3
source share

I found this question here on SO with a lot of useful answers: Does anyone have a development / deployment / deployment process with php / mysql?

Hope this helps!

+2
source share

Save to local, SVN (or other version control via Eclipse) to fork, go to trunk, trunk to test, test to live. I canโ€™t say enough about how important it is to control and test the version in any dimensional environment ... even if it is a huge pain.

+1
source share
0
source share

I am using Apache with eclipe, setting the Apache path to the workspace folder,

in httpd.conf (d: / workspace / php / is my project location)

Alias โ€‹โ€‹/ php / d: / workspace / php /

Index parameters FollowSymLinks AllowOverride All Allow order, deny Allow from all

restart apache and

 http://localhost/php/somefolder/somefile.php 

Greetings

0
source share

All Articles