Install SVN on server on line without SSH access - php

I have a question about my project and SVN!I'm using OVH "Hosting Personal"(hébérgement mutualisé perso),so I do not have access SSH,and I can't install SVN directly on my OVH server...
I wish to install SVN on remote OVH server without SSH access.I tried to find a solution to install SVN on my local server(OS: Ubuntu,apache2) and put My Project inside and then I download all installation of SVN with configuration files to my server OVH on line,is that it is possible?
I hope to put my project on line and make modification and checkout when I wan't,but all tutorials talks just to do it with SSH.

The answer is: you probably can't.
Even if you had an SSH access, I guess that on shared hosting, OVH doesn't give you access to svn tools, and doesn't let you install svn.
Edit: this guide on OVH (in french) indicates it is possible to use svn, and that the only condition to use it is to have SSH access
PS: you don't have a server: you have some disk space on a server: big difference !

If it was technically possible, it would anyway most likely be a breach to OVH service terms of use.
Here is a link the the French "Conditions d'utilisation", in case you need to know what's inside :)
Only the use of PHP/CGI scripts is allowed, and with load restrictions.

Related

My laravel project start page is not opening

I have install Laravel in my pc using composer.
I used gitbash and started xampp control server
First I've changed my directory.
Then I've ran a command composer create-project laravel/laravel project_1. After the command had run, it installed laravel and all necessary file and key was successfully set.
Then I again changed my directory to project_1
Then I ran another command php artisan serve. After running this command Laravel development server started and 127.0.0.1:8000 this ip has genrated.
I copied the id and paste it in my browser url bar.(I copied and pasted it without using keyboard. I only used mouse)
but when I provided the ip the project_1 starting page did not open.
The page was loading and it is still loading.
what can I do? Please help
logs folder
Here is my contribution, I cannot say what is the cause but I have a solution for it; because I have such as a challenge.
run
php -S 127.0.0.1:8000 -t public
Note that the 8000 is your port, and this could be any 4-digit number.
I hope this helps
Every thing you did seems right to me in terms of Laravel requirements, so lets check some other possible issues:
make sure that your internet connection isn't configured to use
proxy, if so make sure you excluded your local address.
if you are using Internet security suite software, make sure it doesn't block your requests, this vary from software to another but you might test this by deactivating the software for a while until you try.
now that's what I have in mind, I hope it help.
First, stop the php artisan serve
After changing directory go to inside your project folder, you can run php artisan serve. Then a localhost URL will be generated for you where you can see your project in the browser
If you have PHP installed locally and you would like to use PHP's built-in development server will start a development server at http://localhost:8000
Please try to install Laragon and forget about Xampp for now. This is really cool tool and you'll start much quicker. I did try to resolve few issues with Xampp myself and always wasted a lot of time. You can google tutorials later for it as well. Plenty of info out there.
As well it comes with in house installer for Laravel ;) and more :).
Make sure that you are not coping the url from Git Bash through command, it will stop running the project
Make sure that you are not using antivirus specially avast antivirus.

Install Symfony on a server with no internet connection

Is it possible to install symfony and all it's components on a server without internet connection?
I hope that I can download the required files and copy and install on the server.
I intend to create an application to run on the intranet of the company. I'm already using XAMPP and the PHP version is 5.3.8.
Thanks
Of course you can install symfony on a server with no internet connection. What you would need to do is have your project up and running with all the vendors already installed and then you would copy the project into your network share.
In other words:
Go to a computer with an internet connection
Run composer install so it will download all necessary dependencies
Copy the project to the machine with no internet access.
Make sure to clean your cache folder on the server (i.e rm -rf app/cache/{prod,dev,test})
And everything should be working just fine. I've done this in multiple cases when composer was not available on a shared hosting, which is pretty much the same as "not having internet". :)

What is the URL of this tortoise svn repository?

Using TortoiseSVN, I created a "repository" folder in htdocs directory (Apache web server and PHP). Opened repo-browser Included some files into it. The local URL is:
http://127.0.0.1:8080/repository/project
Now I wanna checkout files into a working folder. When I try to provide URL http://127.0.0.1:8080/repository/project, it doesn't work ?
This is the first time I am using URL (http://).
Previously i have been using file:// successfully. Also have used VisualSVN (for http://) but doing it with Tortoise directly, seems a better idea for me.
Creating repository inside web-space does not convert this repository automagically to be http-served by Apache
Single Apache instance can be ordinary web-server and backend for SVN|WebDAV at the same time
You must to read SVN Book and configure your Apache in order to have http-repositories
Try this link dude Work with Visual SVN Server & Tortoise SVN. This is step by step procedure how to install Visual SVN Server + Tortoise SVN Client Application and how to configure them.
For the Tortoise Url in my case I'm using https://fullcomputername/svn/NameofYourRepository or could find it in your Visual SVN Server Manager. The link that I provide to you will guide you how to find it. :)
It's Highly Recommended to use TortoiseSVN with VisualSVN because they work well together see VisualSVN Testimonials here.

Using Git with shared hosting plan

So I started using Git together with this workflow to make a personal website (mostly for testing and to learn Git) and I am developing it locally on my laptop using Xampp.
But now I would like to make this website public and upload it to my webserver. Problem is, I use a shared hosting plan which means I only have FTP access to my website directory. Can't use SSH or install Git or anything..
I would like to deploy the website and any updates to that webserver, but I was wondering if that was possible with Git with only FTP access? And if not, what would be an advisable way to update my website? Manually drag an dropping files through Filezilla can get a bit tedious.
If you have no SSH access to the remote server and the hosting provider doesn't offer a git deploy feature, you won't be able to deploy directly using git.
However, it's always a good idea to track your source code regardless the remote options.
In your case, a good alternative to automate the release process would be to create a simple deploy script in your favorite programming language (Ruby, Python, Bash...) that loads the list of changed files from your git repository and performs an upload via FTP of these files.
A simple search for git-ftp reveals that there are already two projects that seems to do what I suggested:
ezyang/git-ftp
git-ftp/git-ftp
If you are in a shared hosting plan, its not a good idea to host your own git server as you'll have both space and bandwidth limitations. You can look out for other options such as github or if you want to have a private hosting, there is bitbucket
Maybe think about a different hosting set up?
On a VPS you have more freedom but you need to set up everything yourself.
On a cloud PaaS you will get great technology but pay a little more.
As mentioned above: A private repo hoster with ftp deployment option might also work.
For me, best productivity is most important. Compare costs of web hosting with costs for web development.
If git is installed on the server (e.g <?php $last_line = system('git --version', $retval); ?>), but you don't have SSH access, perhaps try php-git-bundle.
This question may be old but there is a shared web hosting which offers git deployment option and SSH access to git pull/push etc: githoster.com
Or there are some scripts you can search in google which will link your github account to your host with git hooks.

Unable to clone repository using Egit and Eclipse

I have windows server 2003 as my Operating Systme.
I am using WAMP for my php development.
I am using Eclipse Helios for PHP Developers for my development.
I have installed msysgit and tortoiseGit which comes for windows to manage repositories.
I have installed egit plugin in eclipse to manage project with team members.
I have referred following tutorial for EGIT that I found using google
http://www.vogella.de/articles/EGit/article.html.
Now I have following problem.
I have create one php project with name 'gittest'
I created repository by right clicking on project -> team -> share -> git
Now when I tried to create its clone using git protocol, with following settings
URI: git://Myserver/websites/gittest/.git
Host: Myserver
Repository Path: /websites/gittest/.git
it gives following error
Cannot list available branches
Reason:
git://Myserver/websites/gittest/.git: Connection refused: connect
same problem occurs with other protocols like http,ssh,ftp etc.
Can anyone help me about how to set this protocols so that I can share project with other team members on local network
Thanks.
The git protocol requires a git server running on Myserver. The other protocols require server programs running too. You do not have that.
You can have an area on the local network which you set up as a git repository which everybody use with the file protocol, but this will then be available to all using that shared drive as this method does not use any protection mechanism.
You may need system administration knowledge to do this properly. I would suggest you bring this up with your local system administrator for best results.
Hello I was able to create server using method given on following link
https://github.com/LogosBible/GitOnCygwin/wiki
I used gitolite to create server as it is an advanced way to create git server and enhanced in many ways.
Following are some more links which might help anyone comming here in search of how to setup git server on your local pc or lan
http://therightstuff.de/CommentView,guid,b969ea4d-8d2c-42af-9806-de3631f4df68.aspx
http://jerabi.com/sdionne/blog/2010/09/06/git-repository-server-gitosis-on-win7-working/
http://java2cs2.blogspot.com/2010/03/setup-git-server-on-windows-machine.html
http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/
http://www.shannoncornish.com/blog/2009/04/git-server-windows-2008/
http://markembling.info/2009/08/git-server-gitosis-and-cygwin-on-windows
http://help.beanstalkapp.com/kb/git/setting-up-egit-in-eclipse-to-work-with-your-beanstalk-account
Hope this will help some one.
Thanks

Categories