Page 1 of 1

Ubuntu 17.04, PHP 7.x Installation, DigitalOcean

Posted: Wed Jul 05, 2017 10:07 pm
by LlamaBob

Hi All,

I documented a step-by-step setup of a fresh Ubuntu 17.04 x64 server to where it works with PHPMaker 2017. I used DigitalOcean as my server, but it should work with any server.

Bob


Software needed:
PuTTY – terminal software
PuTTYgen – private / public key generator
FileZilla Client (or equivalent)

Using DigitalOcean ? If not, install Ubuntu 17.04 x64 the traditional way.
In DigitalOcean, install / rebuild Ubuntu 17.04 x64 Base Image
DigitalOcean will email you your new password. Copy your password to your clipboard
Using Puddy.exe, login to your server as username ‘root’
In the password prompt, do a single right-click. Nothing will appear. Press <Enter>
If the password is accepted, then you’ll see many lines of text, ending with (current) UNIX password:
Single-right click again and press <Enter>
Type your new password. Repeat

Update your Ubuntu
Type sudo apt-get update <Enter>
Type sudo apt-get update <Enter> Answer “Y” if prompted.

If your RAM is smaller than 2 Gig
Add 2G swap file: Google “DigitalOcean tutorials how to add swap space on Ubuntu 16.04”
Add new Ubuntu user, setup public key access

Do this: Google “DigitalOcean tutorials initial server setup with Ubuntu 16.04”
Skip key-gen part and use PuTTyGen to generate 2048 bit RSA key, copy all from window at top to get your public key and save to a txt file, to paste via nano. In PuTTY, under SSH / Auth, browse to private key.
Install the AMP in LAMP: Google “DigitalOcean tutorials how to install linux apache mysql php lamp stack on Ubuntu 16.04”
Setup a virtual host in apache: Google “DigitalOcean tutorials how to setup apache virtual hosts on Ubuntu 16.04”

Disable directory browsing:
sudo nano /etc/apache2/apache2.conf
find section below:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Remove the word “Indexes”, save
Type ‘sudo systemctl restart apache2’.
 
MySQL, create new super user.
First log into PuTTy, then “mysql –u root –p”. When you get the MySQL prompt, then:
CREATE USER 'supersql'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'supersql'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Install xml parser: sudo apt-get install php7.0-xml-parser

Install PHP sendmail: sudo apt-get install sendmail

With PHPMaker 2017, copy phpmaker.php from “C:\Program Files (x86)\PHPMaker 2017”, upload it to server’s website root, rename it something random like alwocl20_4240a.php. In PHPMaker, select “Connection Method URL” button, then <url to your site>/alwocl20_4240a.php.php. Server, enter “localhost”.

Generate your PHPMaker 2017 files, and upload them to your server. It should all work.