Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 months ago.
Improve this question
recently I deployed my web application in host (hostinger.com), I have some edits I have to make. How can I use the code editor (PhpStorm) to make edit in the website ?
the project made using laravel framework
I'll not recommend, but in other-hand to gave you an answer, you should :
View->Tool Window->Remote Host
Create a new connection, base on connection type FTP, SFTP, FTPS, Etc..
Set host info and try to connect.
As you can see this option don't need any type of SSH access, and when you've got connected to host, you can see list of files at right side of IDE, and you can :
Browse
Modify them
And of-course change your files in local environment and put/upload or drag them into specified location.
You will need SSH access to your remote files
In phpstorm:
File >> Remote Deployment...
Though it is generally better practice to make your changes locally, rebuild and redeploy to the host.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
if I serve my laravel application using php artisan serve provided server and if I point URL/storage it's giving me this enter image description here it was absolutely fine.
But if I serve my application using apache or Nginx server virtual host then if I point domain.test/storage enter image description here I can see all folder which is in the storage public folder. Now I want to implement this php artisan serve provided server features on the virtual host.
I have previously used this guide for setting up nginx with the right permissions for laravel. When I try to access the /storage endpoint I get a 403 forbidden error, which I assume is what you want. This way directory listings will be hidden and you would need to provide a full path to the file in order to access it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How this web programming works?
For example, we have a Linux application running on a server i.e “bind”.
How do we create a Web GUI to manage that bind server?
For example, if we add a zone through the GUI, that zone should be registered in the bind’s config file. I just want to how stuff works. How connection works, How an apache server can make modifications to application’s config file?
Any hints would be really appreciated.
php can natively work with files on the file system so long as the user running service thread has permissions to the file you want to change. It's pretty easy to do.
$myFile = "/var/config.txt";
$fh = fopen($myFile,'w');
A better way for two applications to interact is through a database though. Having the web application writing to a config table that the console app reads and uses.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need help with making a webpage from several files and I am not sure how to go about it. I'm not sure how to follow these instructions can someone help me out.
Install:
Copy contents of folder "upload_to_server" to your server.
Open "includes/config.php" and edit $cfg['db_server'], $cfg['db_username'], $cfg['db_password'], $cfg['db_database'] to be your database details, and $cfg['site_url'] to be the URL to the site with a trailing slash e.g. "http://www.example.com/" or "http://www .example.com/example/" (if it has been uploaded to a sub folder named "example".
Import database.sql into your database
![Here is a picture of the files for the site][1]
[1]: http://i.stack.imgur.com/7eHOb.pn g
You need to install a local web stack first. WAMP or XAMPP for Windows, LAMP for Linux, or MAMP for Mac
You are then going to have to locate your web folder, which is usually called www, htdocs, or public_html. This is where your files need to go.
You can import databases from PhpMyAdmin, which should come bundled with your web stack.
Then you use http://localhost/whatever-folder-you-added to access it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have 2 Linux boxes with same version installed. The first one is used to host a apache/linux based web site and the second one is used to host user supplied files.
The webserver box can access the file server box using an internal IP address. When user tries to upload a file using my php web site, I need to save this file in a specific folder in the file server box.
One option I found until now is to use PHP's FTP functions. Are there any other/better options to access folders/files that reside on a file server box from the web server box?
Thanks for any help!
- Jaideep
Configuring an NFS server on the file server, and mounting the exported directory on your web server, will make programming easier for you, because you can access the directory just as if it was local.
In an environment where you don't have professional system administration, i'd recommend against the NFS version however, because NFS needs some planning regarding synchronized user ids, and it doesn't always recover gracefully from a crash (although it should, in theory). From that point of view, FTP might be your best option.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'd like to deploy using git, but some members in the team doesn't prefer git and they would like to be able to use ftp, I want us all to be able to access the files and make change. Is there anyway this can happen?
Keep an update repository in a ftp server
then use this repository to deploy via ftp
Using a synchronizer? and exclude git specific files by filter. http://sourceforge.net/projects/freefilesync/
You could map the ftp folder.
NetDrive by Novell has a GUI interface for setting up FTP servers as drives on your computer.
Set up a test server on which people can go crazy if they want to.
Require everyone to commit into a central repository. Seriously, this is a requirement.
Declare a handful of guys who know what they're doing as "deploy masters" and allow only them to touch the production server, through a clearly defined automated deploy mechanism (git can be fine here).
Hack off anyone's hands who still messes directly with production via FTP.