Go to advanced search

by johndoe3226
Tue May 08, 2018 2:40 am
Forum: Networking and servers
Topic: How to update PHP in presspi image?
Replies: 0
Views: 326

How to update PHP in presspi image?

I'm using the presspi image for easy wordpress installations. I need to update my php so that a certain plugin can work. sudo apt-get update && sudo apt-get upgrade -y doesn't work. So I manually downloaded the PHP source, do the configure, make, and install to manually install the latest version of...
by johndoe3226
Tue May 08, 2018 12:57 am
Forum: Networking and servers
Topic: Turn-key WordPress Server Image - PressPi
Replies: 162
Views: 41806

Re: Turn-key WordPress Server Image - PressPi

How do I update to the latest version of PHP?

sudo apt-get update && sudo apt-get upgrade -y didn't do it
by johndoe3226
Sat Dec 16, 2017 9:49 pm
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

Okay, I'm super excited, I followed the ubuntu tutorial section virtual hosts and it works ! So i created a test html at /home/pi/Desktop/ and it works because of correct permissions. But, when I do the same thing at /media/pi/storage/root_folder/ it says forbidden. This is the last and final step I...
by johndoe3226
Sat Dec 16, 2017 8:12 pm
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

okay,so I found this on the Ubuntu site: https://help.ubuntu.com/community/Apach ... tual_Hosts

In the section virtual hosts, will that work? Assuming a totally freshly installed default configuration of a system, how exactly, step by step would you do it?
by johndoe3226
Sat Dec 16, 2017 1:37 pm
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

and oh dear, I just realized how complicated these things can be, why can't someone develop an Apache that doesn't have these problems? I mean having to deal with things like document roots, editing config files and sometimes even editing code ! what I want to do is nothing new or special and has be...
by johndoe3226
Sat Dec 16, 2017 1:05 pm
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

okay, so I formatted as ext4 and changed the DocumentRoot in /etc/apache2/sites-enabled/000-default.conf reboot and in order to set permissions I did sudo chown -a -G pi Refresh the page, and still permission denied, so at this point the problem lies in the permissions. Or could it be that, I should...
by johndoe3226
Sat Dec 16, 2017 12:52 pm
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

ok, the first step is to format the drive to ext4, now I understand why the permissions had problems, was because, windows file formats don't understand permissions, silly me, I'll format and try again There is only one reason to format a drive using a Windows format, and that is if you need to acc...
by johndoe3226
Sat Dec 16, 2017 12:32 pm
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

I tried that, and I'm getting permission denied, are you sure that's all? the other tutorials I followed edited some more stuff, I'll try when I get back As you're using ntfs (any good reason not to use ext4?), you'll need to make sure that the www-data user has at least read access to that drive. ...
by johndoe3226
Sat Dec 16, 2017 11:15 am
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

The file you probably want to edit is /etc/apache2/sites-enabled/000-default.conf You will find a "DocumentRoot /var/www/html" line in there. Change the path to that of your external drive and restart apache. sudo nano /etc/apache2/sites-enabled/000-default.conf #(edit the file and save) sudo apach...
by johndoe3226
Sat Dec 16, 2017 10:02 am
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

rpdom wrote:
Sat Dec 16, 2017 9:33 am
The default mount point of a drive may be hard coded, but should be able to be overridden in fstab.

You could change the default location in the webserver config. Which webserver are you using?
It's an apache2, what should I do next?
by johndoe3226
Sat Dec 16, 2017 9:24 am
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

I tried linking it by ln -s /some/directory /var/www/html

A link is created but the content of my website is not present, I now see a link at /var/www/html but when I reload my webpage, it shows nothing.

What am I doing wrong?
by johndoe3226
Sat Dec 16, 2017 8:59 am
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

jahboater wrote:
Sat Dec 16, 2017 8:16 am
I don't suppose a soft link would do?

ln -s
So I do ln -s /dev/sda1 /var/www/html?
by johndoe3226
Sat Dec 16, 2017 8:41 am
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Re: Store all website files into an external drive

rpdom wrote: Change the mount point of the external drive to be /var/www/html ?

What fstab do I need for that?

EDIT: Reading around though, it seems to be hard coded in the source and can't be changed, I'll try to link it by ln -s
by johndoe3226
Sat Dec 16, 2017 8:05 am
Forum: Networking and servers
Topic: Store all website files into an external drive
Replies: 19
Views: 1516

Store all website files into an external drive

I want to store all my web files into an external drive so that it is not in the default /var/www directory. I have a default apache installation and the external drive is formatted using windows so I install ntfs-3g. I need to do this because I will be storing large files and my sd card won't be bi...
by johndoe3226
Thu Oct 05, 2017 3:36 pm
Forum: Troubleshooting
Topic: ssh password-less login with rsa not working
Replies: 10
Views: 2187

Re: ssh password-less login with rsa not working

tried generating another new keypair using ssh-keygen and then ssh-copy-id , on connection, I get the error sign_and_send_pubkey: signing failed: agent refused operation Also tried editing one character in the authorized_keys file and the error goes away but I'm able to connect which means It's not ...
by johndoe3226
Thu Oct 05, 2017 1:13 am
Forum: Troubleshooting
Topic: ssh password-less login with rsa not working
Replies: 10
Views: 2187

Re: ssh password-less login with rsa not working

I've generated a new keypair using puttygen and it works fine with windows, it is using the new keypair without prompt for password But on my linux mint desktop, it prompts for a password , but I did not put a password while I was generating the keys. What gives? I also checked that the permissions ...
by johndoe3226
Wed Oct 04, 2017 11:55 pm
Forum: Troubleshooting
Topic: ssh password-less login with rsa not working
Replies: 10
Views: 2187

Re: ssh password-less login with rsa not working

Wait, something is happening, it seems to work now.. I forgot to mention I tried my own troubleshooting, I looked around the /etc/ssh directory to see what other files I could modify there.. Here's what I did: I edited the rsa key in the ssh_host_rsa_key.pub file to match the keys I've generated. I ...
by johndoe3226
Wed Oct 04, 2017 11:44 pm
Forum: Troubleshooting
Topic: ssh password-less login with rsa not working
Replies: 10
Views: 2187

Re: ssh password-less login with rsa not working

rpdom wrote:
Wed Oct 04, 2017 6:28 am
What are the permissions on the .ssh directory on the Pi?
chmod 700 according to the tutorials I followed
by johndoe3226
Tue Oct 03, 2017 10:58 pm
Forum: Troubleshooting
Topic: ssh password-less login with rsa not working
Replies: 10
Views: 2187

ssh password-less login with rsa not working

I've read a few tutorials around the internet about configuring a password-less login using ssh keypairs for the raspberry pi I could do it with normal computers, but couldn't with a raspberry pi. The tutorials I've read on this are incomplete I already have a public/private key pair generated with ...

Go to advanced search