in Blockchain, Ethereum, Web 3.0

Installing PHP and Apache for Ethereum (Blockchain stack #3b)

Apache for Ethereum Web Sever

Below you’ll find quick and simple instructions for setting up Apache and PHP to use for your first Ethereum web page.  This assumes you have followed the instructions from the previous posts in the series (more detail below) and have Ubuntu on Oracle VM.

$ sudo apt-get install apache2
$ sudo apt-get install php7.0
$ sudo service httpd start
$ php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'

Open browser and point to http://localhost

Apache install screen shot

Change permissions for apache files.

sudo groupadd www
sudo usermod -a -G www <youruser>

Completely exit and restart your VM.  Log back in and then change the file permissions of the Apache files.

sudo chown -R root:www /var/www
sudo chmod 2775 /var/www
find /var/www -type d -exec sudo chmod 2775 {} \;
find /var/www -type f -exec sudo chmod 0664 {} \;

The Blockchain Stack

I’m writing a series of posts on the Blockchain Stack, giving simple but fully coded, step by step examples of how each of the element work both independently and collaboratively. This is an annex to the third post Your first Ethereum web page : Blockchain stack #3

Write a Comment

Comment

Webmentions

  • Truffle 3 - Installing, deploying and running on Ethereum (Blockchain stack #4) - Ziggify

    […] will initially use Apache which we previously set up.  The files for this contract can be found on github: ianmonkuk/truffleBasic.git  (this is a good […]

  • Your first Ethereum web page : Blockchain stack #3 - Ziggify

    […] ahead and Install Apache and PHP for Ethereum if you don’t already have […]