Re: [Hampshire] Home server

Top Page

Reply to this message
Author: Phillip Chandler via Hampshire
Date:  
To: 'Hampshire LUG Discussion List'
CC: phillip.chandler100
Subject: Re: [Hampshire] Home server
OK



Heres an update.



After getting everything setup, installing cubecart, adding products etc. I couldn’t go into a product page through the browser and see product details. I posted to the cubecart forums and it was an .htaccess issue. So after going to google I found the following:



https://stackoverflow.com/questions/18740419/how-to-set-allowoverride-all



Open Putty and log into Ubuntu Server



sudo nano /etc/apache2/apache2.conf



<Directory /var/www/>

        Options Indexes FollowSymLinks


        AllowOverride None


        Require all granted


</Directory>



and change it to;



<Directory /var/www/>

        Options Indexes FollowSymLinks


        AllowOverride All


        Require all granted


</Directory>



Save and exit file



sudo service apache2 restart



sudo a2enmod rewrite to enable module rewrite.



sudo systemctl restart apache2



Now the server, cubecart and all pages work spot on.



Thanks

Phillip



From: Hampshire <hampshire-bounces@???> On Behalf Of Peter B. via Hampshire
Sent: 06 June 2018 12:04
To: Hampshire LUG Discussion List <hampshire@???>
Cc: Peter B. <petyrb@???>
Subject: Re: [Hampshire] Home server



Well done mate.

it is a ball ache when u follow a guide and they slope off before where you want to go or change some architecture or software package half way through.



If you managed to create your own guide please feel free to send it over.

As sadistic as it may sound after your notes, I wanna try that.



😁



On Tue, 5 Jun 2018 17:57 Phillip Chandler via Hampshire, <hampshire@??? <mailto:hampshire@mailman.lug.org.uk> > wrote:

Well that was fun.

I was originally running ubuntu 17.04. After trying to follow some guides I:
ended up having to re-install ubuntu and start fresh,
download Ubuntu 18.04 and install that,
NOT setup static IP address from the install disc,
mess up installing php and other stuff,
re-install Ubuntu 18.04 this time setting static IP address from install,
follow my guides up to the part I thought Id stuffed up,
try uploading cubecart via FTP and got permission errors,
googled that and worked it out,
tried installing cubecart again and found out I should have created the database first and NOT assume cubecart would create it,
ran mariadb from terminal and created database
tried again with cubecart,
got to log in to the shop admin page via browsers and added two products, pointed browser to server shop folder.

And I nearly pissed myself when it actually showed up the shop front in all its glory.

As Keith said, " you'll learn far more by trying it than by simply following an online document" and he was spot on. There is too much stuff out there that is sort of helpful but missing small points. Ive now got my very own cubecart shop guide and hope that it will be a useful reminder for me. And now the only way is forward. Ive now gained a better insight into Linux.

I still don’t know a lot, you guys have probably forgotten more than I know, but then we only learn what we need to do our own little thing. Im glad I stuck it out.

Phillip

-----Original Message-----
From: Hampshire <hampshire-bounces@??? <mailto:hampshire-bounces@mailman.lug.org.uk> > On Behalf Of Keith Edmunds via Hampshire
Sent: 03 June 2018 20:08
To: hampshire@??? <mailto:hampshire@mailman.lug.org.uk>
Cc: Keith Edmunds <kae@??? <mailto:kae@midnighthax.com> >
Subject: Re: [Hampshire] Home server

On Sat, 2 Jun 2018 18:38:05 +0100, hampshire@??? <mailto:hampshire@mailman.lug.org.uk> said:

> So is there a real simple idiots guide to setting up php and a mysql
> database ?


Start with:

# apt install apache2 libapache2-mod-php php-mysql mariadb-client mariadb-server

(MariaDB is a replacement for MySQL).

Then try to get your application working. Any problems, comes back to the list (you'll learn far more by trying it than by simply following an online document).
-- 
Linux Tips:     https://www.tiger-computing.co.uk/category/techtips/


--
Please post to: Hampshire@??? <mailto:Hampshire@mailman.lug.org.uk> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------


--
Please post to: Hampshire@??? <mailto:Hampshire@mailman.lug.org.uk>
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------