Trying to install presskit on my server. Hosting works, I upload install.php, visit it and see the following:
Progress
Don't worry, this should be over before you really notice anything has happened.
Downloading files...
Installing files...
Creating folders...
Deleting residue and temporary files...
Now comes the fun part!
This was rather easy & painless, wasn't it? Well, this is where the automated part ends and where you come in. There's about thirty to sixty minutes of work left and said work includes some XML-editing and FTP. By all means take a break and think of what you want to say about your company. I'll be right here!
But clicking the button doesn't do anything.
So I look at the Apache error log. This is what I see:
[Fri Aug 22 23:55:39 2014] [error] [client 87.81.202.236] PHP Warning: copy(style.css): failed to open stream: Permission denied in /var/www/press.thewildrumpus.co.uk/public/install.php on line 17, referer: http://press.thewildrumpus.co.uk/
[Fri Aug 22 23:55:39 2014] [error] [client 87.81.202.236] PHP Warning: copy(archive.zip): failed to open stream: Permission denied in /var/www/press.thewildrumpus.co.uk/public/install.php on line 17, referer: http://press.thewildrumpus.co.uk/
[Fri Aug 22 23:55:40 2014] [error] [client 87.81.202.236] PHP Warning: copy(archive.zip): failed to open stream: Permission denied in /var/www/press.thewildrumpus.co.uk/public/install.php on line 17, referer: http://press.thewildrumpus.co.uk/
[Fri Aug 22 23:55:40 2014] [error] [client 87.81.202.236] PHP Warning: mkdir(): Permission denied in /var/www/press.thewildrumpus.co.uk/public/install.php on line 129, referer: http://press.thewildrumpus.co.uk/
[Fri Aug 22 23:55:40 2014] [error] [client 87.81.202.236] PHP Warning: mkdir(): Permission denied in /var/www/press.thewildrumpus.co.uk/public/install.php on line 133, referer: http://press.thewildrumpus.co.uk/
[Fri Aug 22 23:55:40 2014] [error] [client 87.81.202.236] PHP Warning: unlink(archive.zip): No such file or directory in /var/www/press.thewildrumpus.co.uk/public/install.php on line 136, referer: http://press.thewildrumpus.co.uk/
[Fri Aug 22 23:55:40 2014] [error] [client 87.81.202.236] File does not exist: /var/www/press.thewildrumpus.co.uk/public/style.css, referer: http://press.thewildrumpus.co.uk/install.php
After a little while, and Googling these error messages, I twig that it's because the containing folder isn't writable by any user:
v21@boris:/var/www/press.thewildrumpus.co.uk/public$ ls -al
total 16
drwxrwxr-x 2 v21 v21 4096 Aug 22 23:49 .
dr-xr-xr-x 3 root root 4096 Aug 22 23:38 ..
-rwxrwxrwx 1 v21 v21 5466 Aug 22 23:00 install.php
so I set it and it works:
v21@boris:/var/www/press.thewildrumpus.co.uk/public$ sudo chmod a+rw .
v21@boris:/var/www/press.thewildrumpus.co.uk/public$ ls -al
total 16
drwxrwxrwx 2 v21 v21 4096 Aug 22 23:49 .
dr-xr-xr-x 3 root root 4096 Aug 22 23:38 ..
-rwxrwxrwx 1 v21 v21 5466 Aug 22 23:00 install.php
But it would have been a lot easier and less painful if the install script could prompt me that installation had failed, or offer clues as to why.
Trying to install presskit on my server. Hosting works, I upload install.php, visit it and see the following:
But clicking the button doesn't do anything.
So I look at the Apache error log. This is what I see:
After a little while, and Googling these error messages, I twig that it's because the containing folder isn't writable by any user:
so I set it and it works:
But it would have been a lot easier and less painful if the install script could prompt me that installation had failed, or offer clues as to why.