How to bring down cpanel hosted site to local for development? - laravel

Site is hosted in cPanel, i want to bring down to local for development work, and i am not getting proper picture how to do this, please advise and the site is build using laravel.

You can download files through FTP account of your hosted website..
You can also zip files from file manager in cPanel and download it. After that, unzip it locally. Here are the steps for you:
Login into cPanel account.
Go to the File Manager.
Navigate to the folder where the files you want to compress are While holding down your Ctrl key, click on each file that you would like included in the compressed file.
Click the "Compress" button at the top right of the page
On the "Compress" page, choose which compression you would like to use (such as zip or tar), enter a name for the file, and then click "Compress File(s)". When the files have been compressed successfully, you'll see a success page that lists the compressed files

Compress the whole Laravel folder into .zip or .tar.gz and download it. Unzip the folder on your local development environment and make necessary changes on the configurations file (app.php, data.php, mail.php) to match your local configuration.

Related

How to download large files from SageMaker Studio Lab?

In Colab one can move large files to Google Drive and then download them easy to local computer but how does one do it in SageMaker Studio Lab? The Download option doesn't work for large files. Do one need to use a script or special application?
If you want to download a file in your SageMaker Studio Lab project to your local system, you can right click on the file in the file browser UI in the left panel and select "Download".
you can upload your file to AWS S3 storage and then download it by clicking the "download" button. I had uploaded a 1.3GB file and download the file successfully.

Google Drive: Download of shared folders for signed out users

I want to share Google Drive folders by sharing their folder link to people. An example folder is https://drive.google.com/drive/folders/17Jh-Va8M1XQSJyrugV-iAtOTIwYePbvV
The folder contains original files as well as the new Google drive "shortcuts" (btw: I'm the owner of the original files where those shortcuts link to).
I want that also people which aren't signed in to a Google account are able to download the whole folder. I noticed 2 new problems which occured since Google introduced the new shortcut system this year:
signed out users aren't able to download all files of a folder with one click. There's no "Download All" button any more. It's just possible to download single files.
Signed out useres aren't able to download Shortcut-files. Just original files by clicking onto "Download"
Do you have an idea how to fix problems 1) and 2) for signed out users?
As a workaround for 1):
Create a folder inside of the main shared folder and mive all files to the nested folder.
When the user opens the main folder he can download with one click the nested folder and all contained files:
As for 2)
The shortcuts are no files but just links to files - if the original files are not shared with the permission Anyone on the internet with this link can view - then users who are not signed in cannot access those files.
You need to share the original files accordingly, in this case the user will be able to open the shortcut and then go on File->Download.
Arguably it makes more sense to directly move the original file into the shared folder instead of using shortcuts.

PhpStorm ftp without downloading all files

I just switched to the php editor PhpStorm. With other editors I have used, editing files through ftp went like this:
Browse the file in the explorer
Open the file in the editor
Make changes
Press save
This would automatically first download that single file and show it in the editor, and then upload that file to the server with the changes.
Now I'm trying to add an ftp connection in PhpStorm, but it immediately downloads all files to my pc. Is there a way to have the workflow I just described on PhpStorm, without downloading the whole server.
There is uncompleted answer for that,
File > New Project from Existing file ... > web server ... via FTP/SFTP/FTPS.
Than fill the forms to the end, The local project on the left will be empty.
chose Tools > Deployment > Browse Remote Host.
This will show the Host files and folders on the right.
Double click to open the file and Alt+Shift+Q to upload it.
Why uncompleted answer?
Because when you open multi files and edit some, you will not know which are edited and not uploaded from the unedited files.
-Phpstorm 2016.3.2
Add a File > New Project from Existing file ... > web server ... via FTP/SFTP/FTPS..
In the last screen, where you set the project root, select the correct folder as project root and also select it as exclude from download
Save your project and you're good to go. No download happens.
Please refer my tutorial which explains how to access remote files using ftp . We can edit the files and automatically upload the files to the server on save.
http://www.pearlbells.co.uk/edit-remote-files-phpstorm/
Main steps :
Select File->New project from Existing files
Select the checkbox as shown in fig (refer blog for images) and click next.
Enter projectname
From the dropdown select ‘On explicit save atcion’
Add new remote server
Enter Ftp details
Select the remote path.
Refer the tutorial for demo images and explanation.

Why is Visual Studio no longer letting me open a simple flat website folder?

I've always used VS2010 to open a bunch of flat websites which live on my local disk (File -> Open -> Web site).
e.g Foobar website at:
c:\Projects\Foobar
This traditionally worked fine (whether or not VS2010 is the right tool for editing simple HTML files)
However, I've moved to a new PC and this simple idea of opening a flat website inside VS2010 is all screwed up.
It'll open any folder once but if I try and reopen the website it has thereafter decided that I want my website content in a subfolder. It spawns a subfolder at
c:\Projects\Foobar\Foobar
and is determined to use that for content (of course it's empty, and no, I don't want to adopt that folder structure).
Is there any way to force VS to use my plain old root folder website as it used to on my old machine?
Edit
I can, sort of, get to what I wanted by deleting both the foobar.sln file and the foobar/foobar folder and then reopening. But as soon as I then exit and try to reload the website VS complains:
Unable to open the Web site 'C:\Projects\foobar\foobar
The foobar.sln file is just a simple XML file with a path to every relevant project. Open the site in VS once, then close it and edit the .sln file manually (in Notepad or something similar). Look for the folder path C:\Projects\foobar\foobar and change it just C:\Projects\foobar.

On publishing a click once installer through install from web, the installer does not appear on the webpage

I am creating a clickonce installer using the deployment strategy of Install from the Web or network share, on one of my project. I am learning how to use click once installers. When i publish my project it gets succeeded. i gave the URL of my website that i had created through google so that anyone can install from that URL. After publish gets succeeded the URL should be launched automatically but it is not. Moreover. When i check my website and in it that page whose URL i had given, there is nothing there. No installer. Please help.
Right Click on Publishing Project
Click Properties
Click "Publish"
In "Publishing Folder Location" is anything set there?
Click the button with ellipsis (...) to the right of the combobox
Click "FTP Site" (not Remote site, as this needs FrontPage extensions)
Enter the Server information, Directory (that you have access to), keep it as passive mode, uncheck the Anonymous option and put in the valid FTP instructions.
Click Open, and Republish. All should work 100% with this.
If not, have a look in your wwwroot/ folder and find the application information (if it's there) and you will have to manually upload the files.
EDIT for comment:
The website that you are uploading to, does it have FTP access? Meaning a place that you would upload file to for display on the website, even like your html content? (index.html etc.)
If not, you will need to get these details from your website hosting provider and fill in the appropriate fields for the FTP upload.
It's a while since I did this, but I'm fairly sure that you have to upload the files manually.
The installer needs the location so it can build the web page etc. All the files should be in an output folder in your project.
EDIT: I've just checked and the output folder is the one you specify on the first step of the Publish Wizard. If you specify a local folder the files will be put there for you to FTP to your website later. You can also specify a remote address as and FTP or HTTP location (which I'd forgotten when I posted my original answer). You'll have to enter the user name and password for connecting to the remote location later in the process.
Are you using Visual Studio 2008? The default behaviour of deploying a "publish.htm" page has changed.
Bring up your project's properties and switch to the "Publish" tab. Click the "Options" button and switch to the "Deployment" section of the dialog. You'll see by default that the "Deployment web page" TextBox is empty. You'll need to give that a value and also check the "Automatically generate deployment web page after every publish" CheckBox.
I've taken to filling that in with "default.htm" so that whichever folder you deploy your app into will have the ClickOnce publish page as its default page.

Resources