How to manage project using tortoise svn? - tortoisesvn

My Goal
I want to modify wordpress project as per my needs. I also want to record the code difference i made in the project. That is my goal.
This is what i done so far
I installed recent version of tortoisesvn.
I'm using windows 7 and i have installed wampserver too
I created a folder called wordpress in C:/wamp/www
So C:/wamp/www/wordporess is now the absolute path of my
wordpress directory. I can able to access it via
http://localhost/wordpress
I right clicked on the wordpress directory and created checkout
using this repository url http://core.svn.wordpress.org/trunk/
Everything successful so far. I'm so confused about the next step
When i right click wordpress and open repository browser it actually list everything from http://core.svn.wordpress.org/trunk/ But i need an environment like trunk,tags,branches in my local directory. I tried by creating checkout on a empty directory(test) by applying url like http://localhost/test but i see some error like redirect cycle detected for url http://localhost/test
Can anyone help me? Thanks

In that case you need to do the checkout from the root and not from the trunk
like http://core.svn.wordpress.org
Advise you to read word press documentation for detail how they are maintaining there structure and other things.
Wordpress-Using_Subversion
Updating_WordPress_with_Subversion

I'm running into the same problem as well.
After some experiments I think it should be caused by following procedure:
( if test is a directory under your web root )
svn client remove the trailing slash for some reason. so for example if you type svn list http://localhost/test/ then the actual request url will be http://localhost/test ( no trailing slash! ).
The http server receive this request and found that test is not file but a directory. so it will send a redirect response to tell client to visit http://localhost/test/ ( has slash) .
the svn client go on step 1 so that finally causing infinite redirect loop....
You can try another non-exist directory like 'nonexist' or a file file to test as well which will returen "Unable to connect to a repository at URL 'http://localhost/nonexist' ..."

This can be fixed on the server side in Apache by setting DocumentRoot to something other than the path containing the SVN repositories (preferably an empty directory).

Related

LARAVEL 5 - host web server with API

I am trying to set me local project which works perfectly well on a host server (always data).
I made a project folder on the root (/project) of server where I uploaded all my files
I copied public folder into /www
Exactly how explained on this tutorial :https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e
First pages load perfectly, but when I am trying to connect with my api, the redirect URL returns a 403 Forbidden error
My redirect url is htp://.......com/public/play
It works when it is localhost but not on my web server...
Should I put www/play as redirect URL?
Why can I access my view on first page but not after redirection from api?
Thank you very much for the help !
You are not may be copying the content of public folder in the www directory Like it said
Next step is to copy all contents inside the /project/public directory
to www/ directory. The easy example is that, with the fresh Laravel 5
installation application, the project/public/index.php should be
copied to the www/index.php , have you got the point?
and you did
I copied public folder into /www

moodle data root location not secure error

I read moodles documentation where it says that if the data root directory has to be in the site's public html folder ( Please see that i can not create it outside it since i dont have sufficient privileges as i am using a free account ). then you have to chmod it to 770 and also use htaccess to protect it.
Now i am creating the moodle inside my domain at folder /moodle/
and moodle uploads folder is /moodle-uploads/uploads/
and i have an .htaccess setup in /moodle-uploads/.htaccess
where its contents are
order deny,allow
deny from all
as specified on
http://docs.moodle.org/20/en/Creating_Moodle_site_data_directory
But still when i run the auto installer script it says the data root directory is not secure
This is not the best way of doing it but coding hack to just get rid of this error if you like try it..,
in moodle root go the install.php and if you are using 2.6 in line 341 or others versions search for is_dataroot_insecure() function and change it to false in the else if condition and try to install again,and that it..,
By default its going to give you warning for having it in the public html folder as according to the docs in the link you also provided.
Remember that by default moodle will issue a warning about moodle data
directories created inside the web directory, but otherwise this
directory can be located where you wish. You can later move or change
the location of this directory, but if you do, be sure to edit the
setting in the config.php file that sets this; e.g. if moodledata is
under a directory called data, then it would look like this:
As long as you have configured the dataroot location with the moodle data directory and placed your .htaccess file in that folder it should be fine.
i'm using moodle 2.4.1 and had a some problem. the solution open install.php file and search for statment
} else if (is_dataroot_insecure()) {
and disabled.
it's work for me

How do I build multi sites in magento using wamp server

I am new to magento, I have worked on VirtueMart for joomla for a year now and I noticed it has no multistore ability until a friend introduced me to magento. I have succesfully installed magento(1.7.0.2) into WAMP 2.2 (PHP v5.3.13) on my Windows7.
I succesfully created root categories just as directed here: http://www.templatemonster.com/help/magento-how-to-set-up-and-manage-multiple-stores.html but in my own case, I am using sub-directories (ie //domain/magento as main store and //domain/magento/crunchies as store2).
A root category was created at the backend for crunchies. I copied both index.php and htaccess from magento folder (c:/wamp/www/magento) to crunchies folder (c:/wamp/www/magento/crunchise).on the crunchies' copy of index.php, $mageFilenam =‘app/Mage.php’; I change it to $mageFilename=‘../app/Mage.php’;
And saved changes, I also open up the copied htaccess file and added the following to the end of it:
SetEnvIf Host.*MainWebsite.*MAGE_RUN_CODE= base";
SetEnvIfHost .*www.crunchies.com.*MAGE_RUN_TYPE="cruncies_code";
Where website names created at System>manage store of backend are: Main Website(for main store) and www.crunchies.com (for store2).
When I point to domain/magento on my browser, it shows home page but when I point to domain/magento/crunchies, I get :\"mydirectery"../app/Mage.php was not found.
Please how do I solve this issue? Is there any other setting I'm missing out in my wamp config?

magento bae url not working after dulicate site

I have a site http://www.gingerlily.fr
i copy those file and create sub directory on root called test and uploaded the file to it
duplicated db and apply update for all base url db and other configurations. (http://www.gingerlily.fr/test)
but the problem is when i access http://www.gingerlily.fr/test
site i always show root urls and other js and images loads from root magento installation. i try a day for thi but no luck.
can anyone help me for this something wrong with httacess file or any other wrong with this ?
thank you
I have seen your http://www.gingerlily.fr/. Correct me if i am wrong your trying to duplicate your site to test directory. But in magento your can't copy and duplicate site like PHP /Html here your files of magento site need to be first install and you can replace your module and theme files.

yii, Development and URL issues

We have our server which runs the site at 173......54/
For development we want to have a copy of the code that can be tested at 173.....54/~me/site
When I install a copy of Yii and the code at ~me/ folder and access 173.....54/~me/site I am able
to see the newly installed index html. However, if I try to move to 173.....54/~me/site/book or a user register page or any other page the other (main) Yii application reads the code as a link not found instead of the development Yii application.
Am I supposed to update a the htaccess file to ignore requests within /~me ? If so how should it look? Or am I missing something?
Thanks again!
No need to make ignore in other .htaccess, the dev site .htaccess will take care of it.
In your index.php at the root of your dev site you need to point $yii at your Yii framework/yii.php
and then in the .htaccess in the root of your dev site you need to point RewriteBase to your dev site root.
Also make sure you point to the correct configuration file corresponding with your application in index.php

Resources