how to run more than two cake php project run on one server - cakephp-2.0

I have to work on following step
local server
i have created new folder in webroot
put all cake php another project in side that folder
configure .htaccess in root folder ,app folder and webroot
then it is working fine
live server
i have to follow all the above step but it is not working on live server

Related

move data from “www” folder to “www/site1” In wamp server

In the wamp server
I want to move data from “www” folder to “www/site1”
Currently, I have designed a site with wordpress at this folder “www”
When I cut/paste the files from folder “www” to folder “www/site1”, the WordPress counter does not run
And the whole site crashes
How can I solve this problem?

How do I install phpmyadmin in Aegir?

In which folder should I put phpmyadmin folder in aegir system?
In a old project I remember an expert developer used to put the phpmyadmin folder under the folder /var/aegir/hostmaster and it worked (through the url panel.example.com/phpmyadmin).
I am now trying same thing but it doesn’t work. Should I modify some file or some setting to “read” the folder hostmaster? (I have tried to change permission but it didn’t help).
In this new server I am using Nginx.
In the old one (when everything was working) there was Apache.
It can be a problem of configuration of Nginx?
Thank you

Cakephp installation on WAMP missing files

I am running WAMP and it runs correctly. I installed composer apparently successfully, and also installed Cake with no errors. It created a cquiz project. When I go to the URL in my browser I see all of the text for the default cake page, but none of the css or images. It is looking for files, for example, /cquiz/css/cake.css but when I open the cquiz directory I don't see any folder called css. What did I do wrong?
You need to set your documento root to cquiz/webroot.
If you are using Apache (I assume this because you said you are using WAMP) you have to edit the httpd.conf file and change the document root to your webroot directory.
Otherwise if you cannot or don't want to change the document root (let's say for example if you have another web app in the same server) you can move all the files inside webroot to your root directory and edit the index.php (which you moved from webroot to root directory) and change the require webroot to fit the new location.

angular seed and express-generator on github

I am working on express-angular app (my IDE is Webstorm), and used express-generator to create directory structure (Webstorm project1-server):
PROJECT1-server
\bin
\node-modules
\public
\routes
\views
app.js
package.json
I created github repository with the above. Now I Also used angular seed to create seperate directory structure (Webstorm project2-client), including \app folder.
PROJECT2-client
\app
\e2e-tests
bower.json
karma.conf.js
package.json
Now I don't know how to add that /app folder to github repository ? I want this to be one repository on github, but two projects in my Webstorm: server and client part, specially because client is using dev server locally.
I'm assuming your repository root directory is the server project directory.
Create a new folder named server and move the first project files there
Make sure .gitignore and .gitattributes stays in the root directory
Create a new folder name client and move the second project files there
Commit and push

How to change the file upload folder in apache tomcat?

Tomcat 6.29 creates a folder under temp folder in apache tomcat, and when I uploaded a file with the path req.getSession().getServletContext() + specified folder but when the application is redeployed another application folder is again created so the previously uploaded files stay at the older deployed application. I want to upload files under webapp folder/app_name but at that time I take the specified doesn't exist. I wonder if it is possible to upload and retrieve the files under the webapp/app_name.
Note: application is developed with spring+hibernate and deployed with maven.
Yes. Just use a relative path in your file handler code. Go up with ../../.. etc. Or you can make a direct server request against the old app from within your handler - servlet to servlet, for example.

Resources