This is actually the hardest part, but if you have your remote system configured properly you can skip this one. Install Apache and PHPįirst you will need to install a web server and PHP. 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. 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. You will need to alter remote_host option in this snippet. Change it to the IP address of the machine with Visual Studio. 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. Now you have a site, but you will also need a way to get the your php from development machine to the server. I'm going to install Vsftpd an FTP daemon available in Ubuntu. Run the following command: sudo apt install vsftpd It is easy to install, set up, and maintain. Start and enable the service with the commands: sudo systemctl start vsftpdĬreate a user for the FTP service. ![]() This could be considered an account for generic FTP usage. 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. Setup previously created directory as home directory for ftpuser sudo usermod -d /var/var/a brand new configuration file. Rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key Rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem 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 Restart the FTP server sudo service vsftpd restart Now, when the remote system is fully configured you can setup a development environment, which should be considerably less work. To be able to access from your developement machine you have to modify the hosts file located at C:\Windows\System32\drivers\etc\hosts. Append the following line to the end of a file (modify IP adress to match your remote system). If you happen to have PHP Tools for Visual Studio version 1.27 or higher you can use the New project dialog. Just click File | New | Project, type php to the search bar and select PHP Web Project. Select Simple CMS Project, just to try out something a little more complex than the "Hello World" script. If you don't have any PHP installation on Windows, PHP Tools will ask you if you'd like to install it, you can just click Yes. Then, you will get asked if you want to download composer packages. I am fairly new to the Raspberry Pi, I am willing to learn as I go.In Visual Studio your PHP Web Project has to be instructed about the web server setting in Ubuntu. I am hoping someone can help and guide me to a solution. I have searched the web and tried so many suggestions it has made my head spin. Please ask your server’s administrator to enable it. ![]() Without it, the following features will not work: creating thumbnails of images. You cannot install webtrees until this is enabled. ![]() ![]() I have Raspbian up to date and I believe I am using the current versions of PHP (I've installed 7.0) and MySQL.Īfter installing Webtrees, I get the following error messages: The genealogy application is Webtrees and it needs both PHP and MySQL installed before I set up Webtrees. I am trying to set up a genealogy site on Raspberry Pi (model b, ver2). I am not sure if this is the correct place to ask and if it isn't please move to a more appropriate area. This is the first time I am posting to this forum.
0 Comments
Leave a Reply. |