This is my first time deploying xampp server to cloud. I followed this tutorial and everything is straight forward. But when it comes which folder to transfer I found it unclear. I transferred my xampp folder(to the htdocs folder in the remote cloud) containing the whole server files but when I try to access it through the internet the .php files do not exist.
The local project you have on your machine should be serving from htdocs directory on your machine. You have to sync that with the directory online. Follow the steps:
Login in the server using FTP and go to /opt/bitnami/apache2/htdocs/
Copy contents of this remote folder into your machine as a backup
Now open your local XAMPP folder. On windows its c:xampp/htdocs on linux /home/user/www
Copy all the files in htdocs directory from your local machine to server
This should do it.
Related
I have a localhost port forwarded SSH tunnel between an Azure Linux VM and Localhost PC using PUTTY. So when I localhost:8080 on my windows PC, I see my static website hosted on the AzureVM.
I need to upload some remote files to this website. At the moment when I click the file upload on the localhost website, it searches for files on my local windows pc.
Is there any way I could make it look for files on another server(Or the same azure VM) or maybe Azure Blob storage?
Thanks!
Ok to upload through putty is a tedious process as you need code running on the linux machine to do it .
We generally use putty to control the AWS machine and run commands directly on it and use another FTP program like File Zilla , WinSPC or somthing similar for uploading
To upload a program directly with putty you have to write the protocol yourself or use a putty add-ons but its a pain to work with .
here some choices
https://helpdeskgeek.com/free-tools-review/the-best-ftp-tools-to-transfer-files-to-your-website-domain/
If you really want to go through the headaches of using putty to transfer files use this link as a start
https://www.hostknox.com/tutorials/ssh/putty/file-transfer
I have build a php-mysql website on localhost wampserver having many other folders (alias, apps, bin, lang, logs, etc. etc.) along with my website folder. While moving them to live server, what all folders should be moved to 'httpdoc' folder of godaddy. Also, what files need to be changed among them (like config file) ?
Thanks.
I have remote access to another computer, and I can access that computer using its ip address and xamp server is also installed on that remote machine.
Now what I want is to access the file placed in that wamp server such as .php file from my own computer, such as using http://something/file.php
How can I do this?
Try the ip of the remote machine plus the folder of the project which is located under htdocs folders on xampp.
For example,
192.168.1.1/folderName
I'm not sure that is going to help you but why no try!
Hello I am running tests on my XAMPP server.
Let's say we have the following scenario :-
My Laptop is running the server in a small Local Network.
And I am accessing my Server with my personal PC.
Is it possible to upload files to htdocs from my Personal PC to the Server Laptop?
If we assume that all security settings are turned off. Basically I need to remotely upload files to HTDOCS so I can use them from the server!
As far as I remember doesnt XAMPP come with a FileZilla server as part of the install?
So configure the fileZilla server on the laptop, create a userid and set that userid up to be able to see the htdocs folder.
Then install FileZilla client on the desktop PC. You can then use FTP ( FileZilla ) in just the same way you would if the site was running on a real hosted server.
FileZilla Server setup instuctions
No.
Web servers do not, by default, run any services that write file uploads to a directory on the server.
You'll need to run some kind of suitable service such as SFTP, Windows File & Print Sharing, or a web based file uploader script.
I am maintaining two local servers on local network (within the office premises).
One is the server where my php files are being located and another server is a File Server where I want to store all the uploaded files.
As the second one is a file server so there should no need to install php on that server.
How I can upload the files to another server. I have the full rights to access the file server. I tried to use ftp_connect() method. But that is not working in Intranet however, it is perfectly working with any live server ftp credentials.
If I use CURL then I have to install PHP on my file server, but that is not a good practice. So how I can upload the files using php ftp related methods?
How I can upload the files to file server. Thanks in advance.
Since in your case both client and server are Unix systems, the easiest is to mount a directory of the file server on the web server by NFS. This way you can upload files by copying or moving them locally, no need to muck around with FTP or SSH modules in PHP.