Pandos

  • Living on the edge of Wedge
  • Posts: 635
# dpkg-reconfigure brain
error: brain is not installed or configured

kimikelku

  • Posts: 61

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Installation problem
« Reply #17, on March 4th, 2014, 02:48 PM »
Can you grant me SSH access to your server?
If not, I need all files that are included in /etc/apache2.
Re: Installation problem
« Reply #18, on March 4th, 2014, 03:43 PM »Last edited on March 4th, 2014, 04:01 PM
And fixed.
Apache setups on Ubuntu have to handle some permission changes. Make sure your webserver directory runs under the same user as your webserver.
Code: [Select]
chown -R www-data:www-data /var/www
Also there's need to allow Apache to follow symlinks:
Code: [Select]
Options FollowSymLinks
If you don't have access to httpd.conf you can set it in .htaccess:
Code: [Select]
Options +FollowSymLinks
But it's not recommended. Setting it global in httpd.conf is more performant than putting it in .htaccess.

kimikelku

  • Posts: 61
Re: Installation problem
« Reply #19, on March 4th, 2014, 04:05 PM »
I usually disable root login and give permissions to another account, thats why the first time i tested wedge i didnt had this problem. Anyway thanks alot for your help.

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Installation problem
« Reply #20, on March 4th, 2014, 04:13 PM »
Sven, do you think this problem could be 'fixed' in any way that's, err... Either controllable by Wedge (so that we can avoid these support questions in the first place), or explainable without getting too technical...?

* Nao is a Linux noob. I know it's not good for a web software developer, but my goal is to make it accessible to other Linux noobs... :P

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Installation problem
« Reply #21, on March 4th, 2014, 04:38 PM »
Quote from Nao on March 4th, 2014, 04:13 PM
Sven, do you think this problem could be 'fixed' in any way that's, err... Either controllable by Wedge (so that we can avoid these support questions in the first place), or explainable without getting too technical...?
Yeah, i thought about this too.
IMHO there's only one simple way: adding a view lines to .htaccess. But for the price that this will slow down all others. :(
No way!

And something more different (just an idea):
Let the installer create a symbolic link and test it with PHP "is_link".
If it's available, do nothing. If not, add "Options +FollowSymLinks " to .htaccess.

But that's just half the way. How to chown directorys with PHP if the webserver isn't running with root privileges?

No, there's no way....
Re: Installation problem
« Reply #22, on March 4th, 2014, 04:42 PM »
Or....
let's check if the server is running Ubuntu.
If so, display some hints before continuing :)

kimikelku

  • Posts: 61
Re: Installation problem
« Reply #23, on March 4th, 2014, 05:07 PM »
The httpd.conf file no longer exists in ubuntu 13.04 and up

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Installation problem
« Reply #24, on March 4th, 2014, 05:11 PM »
But did I understand it wrong? I thought that even the installer refused to run...

Otherwise, it would be 'relatively' safe to just have a web installer. This is part of my plans, but I don't know if it'll be in v1.0...
Basically: a script that self-downloads Wedge from github, and unzips it in the same location, or a sub-folder. Allowing for PHP to automatically have control of ALL files and folders. But, of course, you first need to have write access in that folder... :-/

kimikelku

  • Posts: 61
Re: Installation problem
« Reply #25, on March 4th, 2014, 05:25 PM »
Im having a problem now with the look of the site, looks like there is no ccs?
I saw someone with the same problem but the topic is marked as solved with no solution.

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Installation problem
« Reply #26, on March 4th, 2014, 05:43 PM »Last edited on March 4th, 2014, 05:58 PM
Execution of PHP files isn't the problem.
Problem is that the installer have to move some files and directories. This fails with error 500.
And yes, the biggest culprit is to become write access to this folder.
So for that we can check with php_uname for Ubuntu and display some hints to the user.

The question for me: is it only Ubuntu? No!
What if someone with with another OS creating a directory under root and point the webserver to this directory?
Sorry to say that, but there will be always special cases for different setups.  I think that in a "normal" setup the installer works just fine. So it's save to have a web installer.



Re: Installation problem
« Reply #27, on March 4th, 2014, 05:45 PM »
Quote from kimikelku on March 4th, 2014, 05:25 PM
Im having a problem now with the look of the site, looks like there is no ccs?
I saw someone with the same problem but the topic is marked as solved with no solution.
Please disable compressed output in Admin.

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Re: Installation problem
« Reply #28, on March 4th, 2014, 06:02 PM »
Quote from Pandos on March 4th, 2014, 05:45 PM
Quote from kimikelku on March 4th, 2014, 05:25 PM
Im having a problem now with the look of the site, looks like there is no ccs?
I saw someone with the same problem but the topic is marked as solved with no solution.
Please disable compressed output in Admin.
Pandos, if ever I am in Germany I will hunt you out and kiss you! My localhost copy of Wedge has never worked but your suggestion sorted it out :) (If fact for me it was the compress CSS that fixed it.) Thank you thank you :D
Re: Installation problem
« Reply #29, on March 4th, 2014, 06:06 PM »
And for kimikelku (because it's difficult to find with no skin...) first click on Admin on what should be the top menu, then the option is under Server & Maintenance, Server Settings, General - click that and then about a page up from the bottom are the two options Enable Compressed Output & Enable Compressed JS/CSS.