I am using godaddy for hosting and have linux hosting with cPanel account. How I will upload my css,images,js folders? What is the use of cgi-bin folder as it is already set under public_html folder?
The better way is do not using c-panel for uploading event there is file manager. The best way is if you by using c-panel create ftp-account for your self. After that by ftp client you'll be able to upload or download what you like. Also by connecting via ftp your preferred php/html editor you'll be able to edit the files on fly.
cgi folder is dedicated for executive scripts or binaries. These scripts are executed outside of web server - execution is in core unix system.
Related
I'm trying to make my php filemanager to be able to manage files outside the web-root. I'm using a router with OpenWRT. I have PHP5 and uhttpd (default Luci webserver) installed. The files are stored on a USB drive that's not always plugged in. The index.php is located in /www and the files are stored (when mounted) in /mnt/sda1.
I've been playing around with the permissions and user/groups with nog success.
Is there a way to do this? I don't want the filemanager itself running from the USB drive.
It seemingly isn't possible without a second webserver (different port) so I'm going to use a samba server that directs to a symlink to the /mnt/sda1 and use php to access the samba server.
I am new to web development and cPanel. Now I am developing a website which has a medium scale database and a configuration php file. I am using small business web hosting plan with cPanal and phpMyAdmin included. Currently I am developing my site using WAMP server installed in my own home PC. So my question is this.
When I am searching more information about my project, I saw that someone has mentioned;
DO NOT PLACE DATABASE AND CONFIGURATION FILES ON LIVE & PUBLIC FOLDER. PLACE THEM ON DIFFERENT DIRECTORY OR USE HASH BECAUSE THEY STORES DB USER NAMES AND PASSWORDS..!
So, I don't know what is a "Hash" all about and all I want is to place my database and configuration files more securely.
Therefore, please tell me where to place my database files and other important files on cPanel and how I write paths between database and PHP files on different locations..? ex: www.abc.com/db/...
On the cPanel File Manager, the home directory, the directory you're in is the one above the public_html or www. Place your private stuff such as passwords and whatnot in directories there. DO NOT place them inside of public_html or www as this gives the public access to those files.
You can find phpmyadmin in cpanel for databases
I'm in the process of getting a Laravel 5 app working on Azure Web Apps and am encountering an issue via Laravel's temporary storage.
Any time a template renders, Laravel attempts to cache it to the local filesystem. Unfortunately, for some reason Laravel doesn't have permission to write to its storage directory.
I am deploying my application from my build server via FTP
I am running on the free-tier shared infrastructure (just while I'm getting set up)
My deployment server is running Linux
In this circumstance, it's obvious what the problem is. Unfortunately, what I don't understand is why my web server doesn't have access to write to the directories my FTP user uploads.
Ideally any solution offered will be one that I can automate as part of my deploy process.
According to http://clivern.com/working-with-laravel-caching/, you can change the directory of the cache files using the cache.php configuration file. I'd like to suggest you to use $_SERVER['DOCUMENT_ROOT'] to obtain the root folder of your web app, and then construct a path for the cache files.
Is it possible to deploy php files on Openshift directly? (That is, not via git).
Most of my php files are single page files and I'm looking for a way to SFTP directly into Openshift.
I am able to login via Filezilla, but when I try to transfer files into directories like app-deployment or app-root etc, the file gets deleted.
Openshift folder structure:
So, how can I upload PHP files directly?
After many trials, I found that its actually possible.
Inside this folder: app-roots/repo/myfile.php
OpenShift has a few blog posts on the topic:
Using FileZilla and SFTP on Windows with OpenShift
Getting started with SFTP and OpenShift (Using Netbeans)
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.