Score:-1

What program can I use on Ubuntu 20.04 Server to edit html and php?

es flag

I just rented a cloud server for my little homework website.

I have Ubuntu 20.04 Server as the cloud server.

I am used to shared web-hosting. Usually, you get cPanel or Plesk.

What is the best way to edit files on the server?

I always test my webpages and php on this laptop first, but sometimes, there is still something that needs tweaking.

On my laptop, I always use Bluefish. Is that possible, server-side??

in flag
The two text editors that ship with Ubuntu Server are `nano` and `vi`. Many people have strong opinions about which is “better”, but you’ll probably want to try both and make your own decision: `nano /var/www/html/index.html` and `vi /var/www/html/index.html`. Be sure to think about file permissions, otherwise these editors will warn you about the files being read only
Pedroski avatar
es flag
Following advice from a website, I made www-data the owner of the files in public_html. As I have sudo powers, I can use nano to edit files, but that is not so nice. A proper code editor is preferable, for me.
cn flag
aptans, eclipe if you want 2 popular ones.
Score:1
mx flag

Accorging to the manual, Bluefish has ability to edit remote files:

https://bfwiki.tellefsen.net/index.php/Man_1_ch05s12#12.1._Remote_files

If you need something working in terminal, try Midnight Commander

sudo apt install mc
Pedroski avatar
es flag
Thanks for your answer! I can ssh into the new cloud server no trouble, so I will look into using Bluefish!
Pedroski avatar
es flag
There is nothing which asks for a password. I end up with the index.html which I get if I try and open my cloud webserver using the ip address. I have not yet linked my domain name to this new ip. I need my old webpage for the coming week.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.