Aptana - Different PHP projects same deploy directory - php

I have a PHP project in Aptana which files I want to share with others projects. I can do this by properties project -> resources -> linked resources. But I want to deploy on the server this project in all the projects that share this.
For example: Project 1) CMS library (/cms), Project 1 Web Site (w/eb1), Project 2 another web site (/web2).
On the server I need: web/cms and web2/cms without need to copy manually cms folder into web1 and web2.
It's that possible?

Yes. If you using linux then just make links to your needed folders.
If you using windows try making shortcuts to that folder. I think that should work.
EDIT:
This will help you: Windows XP vs Vista: NTFS Junction points

Related

Running PHP and Rails apps under the same (Apache) web directory structure

My company have several apps running alongside on an Apache2 web server which resides on an Ubuntu server.
Our setup includes:
A portal website is set at Apache's document root "/",
Another customer service app (written in PHP) resides under a sub directory ("/php_app").
With that setup, everything seems to be working perfectly and smoothly.
However, afterward, there comes another requirement to have another ruby on rails app to be implemented under the same root directory's structure.
and that ruby on rails app should belong under another directory (under the same root) called "/rails_app".
I doubt if this setup achievable?
By the way, from my quick research, this should be possible by deploying ruby on rails app using Passenger Apache (Please follow the reference article here: https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/)
The reason we need to put them all under the same directory structure because my company will later need to share authentication system between all apps (SSO or a mechanism of such kind), and what I heard of from googling is it's best that all apps should be put under the same domain.
I need to hear anyone's working experiences on this kind of setup requirements to be shared with or anyone could suggest if my idea is possible or not?
Thank you very much in advance.

Cakephp 3.0 or > on Azure?

Is it possible to run Cake 3.0 or higher on Azure Web Apps? I have an app running locally on a 3+ version but when I installed CakePHP on my Azure web app it's running 2.5.1.
I feel like it's just a matter of uploading all of the newer files and the db created for the 3.0 version but scared there is some kind of write access the new cake will need thus preventing it from running and burning a ton of my time.
I started learning PHP 3 weeks ago so calling me a newb is probably an insult to newbs.
This article tells answered most of my original questions regarding this issue.
Yes, it is possible to deploy CakePHP > 3.0 applications to Azure Web Apps. But we need to some preactions to make the application to run. Generally, you can try to following steps:
Create an empty Azure Web Apps, and enable Composer extension, and also you can enable Visual Studio Online for easy script modifications and command running. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension for more.
Create a file named web.config with the content at http://book.cakephp.org/3.0/en/installation.html#iis7-windows-hosts in the root directory of your application.
Add the inlt extension in PHP runtime on Azure. Add a folder named ext in your root directory, create a file ext.ini in this folder with the content:
extension=php_intl.dll. Add an App Setting to your Web App with the key PHP_INI_SCAN_DIR and value d:\home\site\wwwroot\ext. You also can do this step leverage Visual Studio Online extension after deployment. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-configure/ for details.
Set up the development environment of your Azure Web Apps, deploy your CakePHP application to Azure via Git. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment for details.

Reuse PHP project in Eclipse / Aptana Studio 3

I have a CMS project that I reuse in several sites.
Is it possible to add this project as Library for other PHP projects?
For development, I have the files of my CMS included in one site and not in the others. Then, from that only copy I upload the files through every site. I want to improve this.
I read Configuring a Project's PHP Build Path and Configuring a Project's PHP Include Path. However, I don't see how the project' files will be included in the site if I test it locally.
I use WampServer to test my sites, but all the files need to be in the site folder in order to run. So, how can I develop the CMS in one Project and avoid having the CMS files duplicate through all my sites?
I don't know if I was clear. Lets asume I have WordPress as a project and I'm developing multiple WordPress sites. How can I include the WordPress project in the sites and test them locally?

Running Eclipse php project from a shared folder

I have been using Eclipse Kepler along with PDT tools on local system to manage PHP projects and its turned out to be a better choice for me then the other editors around. Only problem I've found in this environment is that content assist is only available when you open a file residing in the workspace.
Now my problem, I am assigned to work on a PHP Project which is on another system on the local LAN network. Is there any way I can add that project folder to eclipse? so that I can directly edit and save the files on the remote system?
Things I can't look into for various reasons
Using a version control system
Copy source files to local system work
on them and then upload it (kinda have to add the remote files to the
local eclipse project).
Do any modifications on the target system for my convinence eg. Adding an FTP server.
Thanks
I managed to get what I want by creating what you call a Symbolic Link in c:\wamp\www (using WAMP) folder which is also my eclipse workspace, for the network shared project I wanted to import into Eclipse. To do this open an elevated command prompt and run this command
mklink /d projectname \\network_shared_folder
/d option creates a directory symbolic link. Now, the network project will be available as a local project on the web root which can be easily imported into Eclipse (or any other IDE)
Hope this comes in handy for someone who stumbles upon this problem. Now I can get content assist for any file in the project.
Thanks.
In the project explorer if not exist create a new project then:
1) right-click the project and select New > Folder
2) Specify a name for the folder
3) click on Advanced
4) Check Link to alternate location (Linked Folder)
5) Enter a file system path, or click Browse to select a folder in the file system.
6) Click Finish
Check here for more Creating Linked Resources on Eclipse
After hours of searching, I share the solution finally found: symbolic links are not usable if the project is managed via git.
Another solution is to use the fileSync plug-in (http://marketplace.eclipse.org/content/filesync) to automatically copy folders from the source project to user projects.

Storage projects with eclipse

Regularly develop projects in PHP using Dreamweaver but I would start using Eclipse.
I have my machine in a directory where they are armaezandos projects, but also a place where projects are published in apache.
In Dreamweaver in the project settings I map the local directory, setting to perform the sending of files to the apache automatically after you save them.
I wonder what the correct way to develop with Eclipse.
If I map the project directly in the apache directory (thus having only one copy of the project) or if the Eclipse has some configuration to achieve the same functionality I have in Dreamweaver.
Another problem is that when mapping the project directly in Eclipse are created folders and files .settings, .buildpath and .project.
Note: Keep copies of two projects (one local and one in apache) for the purpose of tests not send files, uploads, etc. in memoento that you publish the project, and sending only the project folder location.
I use Eclipse Helios.
I use Apatana based off of Eclipse, pretty much the same way when storing projects. However I map my virtual hosts files to my project folders. I also keep revision control through Subversion so if any hiccups occur they can immediately be fixed. Just map your Apache Virtual Hosts files to your project folders.

Categories