![]() ![]() ![]() ![]() Before you do that, let's save the original with the command: sudo mv /etc/nf /etc/Ĭreate the new file with the command: sudo nano /etc/nf Setup previously created directory as home directory for ftpuser sudo usermod -d /var/var/a brand new configuration file. Set the user's password with the command: sudo passwd ftpuser ![]() The user will be called ftpuser and is created with the command: sudo useradd -m ftpuser You can always create more, and anyone with a user account on the server can log via FTP. This could be considered an account for generic FTP usage. Start and enable the service with the commands: sudo systemctl start vsftpdĬreate a user for the FTP service. Run the following command: sudo apt install vsftpd It is easy to install, set up, and maintain. I'm going to install Vsftpd an FTP daemon available in Ubuntu. Now you have a site, but you will also need a way to get the your php from development machine to the server. Restart Apache sudo /etc/init.d/apache2 restart The newly created file will look something like this (I've removed the comments so it's shorter): ĬustomLog $/access.log combined sudo apt-get install php-xmlĬreate directory sudo mkdir /var/sudo cp /etc/apache2/sites-available/nf /etc/apache2/sites-available/ In my case IP address was 192.168.100.9.įor the sample project from this tutorial you are going to need these PHP extensions. Change it to the IP address of the machine with Visual Studio. You will need to alter remote_host option in this snippet. sudo nano /etc/php/7.0/apache2/php.iniĪppend these lines to the end of the file: I will use nano to edit text files in this tutorial, but feel free to use editor of your choice. Get Xdebug sudo apt-get install php-xdebug Sudo apt-get install libapache2-mod-php7.0 I'm going to install Apache, but feel free to install the web server of your preference. Install Apache and PHPįirst you will need to install a web server and PHP. This is actually the hardest part, but if you have your remote system configured properly you can skip this one. The remote system in this example is running on Ubuntu, but it can be any Linux or Windows system. In this tutorial I'm going to demonstrate how to setup remote debugging in PHP Tools for Visual Studio. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |