e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
322 stars 214 forks source link

Installer broken #526

Closed brhahlen closed 10 years ago

brhahlen commented 10 years ago

Please also see issue 525 The installer is only showing a blank page. Probably a reference error somewhere. You can see it for youself here: http://v2.benweb.eu/install.php

CaMer0n commented 10 years ago

Your headers refer to a 500 Internal Server Error. You may need to check .htaccess and file permissions and ownership.

brhahlen commented 10 years ago

Got the culprit: e107_config.php was missing, touching the e107_config.php solved the issue.

brhahlen commented 10 years ago

This issue still persists on the latest git version. When you try to run the installer with no e107_config.php present, only a blank page is shown. Touching the file resolves it. Maybe a message stating that e107_config.php is missing would be in order.

CaMer0n commented 10 years ago

Can this be closed?

tgtje commented 10 years ago

Install fresh : 1 install with bootstrap 1 install with bootstrap3 both on an empty dbase.Both having own fresh files ( dd may25 13.00 CEST > latest) Result positive outcome Install started right away, SELF config created ( + chmod after finish), access file renamed (auto) Close ?? maybe some more results from others to confirm too ?

3rd server install no go AGAIN adding config file (empty) installs run

brhahlen commented 10 years ago

I am not getting the message that e107_config.php is missing. Tested on both Chrome and FireFox. Did a fresh clone from git, after removing contents of whole directory.

So, does not seem to be solved.

Source is empty as well: http://v2.benweb.eu/install.php.

Jimmi08 commented 10 years ago

Yesterday I installed fresh github version (after Cameron's changes with preferencies) on localhost (windows, latest xampp) and on net (Apache, Mariadb, php 5.4) No problems. Both with bootstrap 3 frontend.

brhahlen commented 10 years ago

Did you do a fresh clone and NOT create the e107_config.php file? Did you get a message it should be created? Or did the installer create it? On my Linux, it cannot create the file, as the directory is owned by another user than is the apache user...

Jimmi08 commented 10 years ago

On localhost for sure, fresh install. I will do fresh install on Apache this evening. Now I remember that I used already created db, so I use old e107_config.php file.

oxigeno2 commented 10 years ago

http://v2.benweb.eu/install.php /v2/ should you be owner of the folder

Linux, Localhost - Message not displayed!

Jimmi08 commented 10 years ago

On left - web, on right original from github files. 02 no problem 04 Only first time this happend: (missing input fields) 03 but I was able to login via loginmenu in sidebar. Strange. Never happend before.

oxigeno2 commented 10 years ago

As write, the problem see in the chmod. Install no problem.

tgtje commented 10 years ago

Question : could there be an influence if a)magic quotes are off or on b) cUrl IDN off or on and c) enable_dl on/off trying to grasp where the server (s) ( my believe) have part in it

willem010 commented 10 years ago

we did have tons of problems on our previous site with the host, not allowing curl for securty reasons. we actually had to move to another host to solve it.

yeah. most servers don't give the user any control over all kinds of (default) settings. editing a php.ini or apache setting usually is not an option.

detecting these limitations in the code is essential.

brhahlen commented 10 years ago

So, yeah, it is running on my own server, so I can control pretty much anything I want. The folder that links to the test-site is owned by v2:v2 and apache is running under www-data:www-data. Naturally, the v2-folder is chmodded 755, as is the default. This also means that www-data cannot create the file, e107_config.php I would assume that e107 would throw an error stating that e107_config.php is not present and that you need to create it, as it cannot automatically be created by the installer. I would not expect it to just show a blank page.

CaMer0n commented 10 years ago

@brhahlen You get a white page on install.php - could you please check for errors, either in error_log in the root directory, or the apache/php error logs ?

brhahlen commented 10 years ago

The times do not really match, as the Access log is from what I just tried, but the error log shows more interesting stuff, IMO. These are my apache-logs, btw.

Access Log:

213.127.158.226 - - [27/May/2014:08:27:10 +0200] "GET / HTTP/1.1" 302 247
213.127.158.226 - - [27/May/2014:08:27:10 +0200] "GET /install.php HTTP/1.1" 500 471
213.127.158.226 - - [27/May/2014:08:29:19 +0200] "GET /install.php HTTP/1.1" 500 355
213.127.158.226 - - [27/May/2014:08:29:20 +0200] "GET /favicon.ico HTTP/1.1" 200 5731
213.127.158.226 - - [27/May/2014:08:29:22 +0200] "GET /install.php HTTP/1.1" 500 355
213.127.158.226 - - [27/May/2014:08:29:23 +0200] "GET /install.php HTTP/1.1" 500 355

Error Log:

[Tue May 27 00:27:23.321091 2014] [:error] [pid 11872] [client 68.104.33.206:57350] PHP Warning:  file_put_contents(e107_config.php): failed to open stream: Permission denied in /home/web/www/BenWeb_V2/e107_handlers/e107_class.php on line 291
[Tue May 27 00:27:23.326837 2014] [:error] [pid 11872] [client 68.104.33.206:57350] PHP Strict Standards:  Only variables should be passed by reference in /home/web/www/BenWeb_V2/e107_handlers/e107_class.php on line 3174
[Tue May 27 00:27:23.328265 2014] [:error] [pid 11872] [client 68.104.33.206:57350] PHP Strict Standards:  Only variables should be passed by reference in /home/web/www/BenWeb_V2/e107_handlers/e107_class.php on line 3176
[Tue May 27 00:27:23.328568 2014] [:error] [pid 11872] [client 68.104.33.206:57350] PHP Notice:  Use of undefined constant e_SUBDOMAIN - assumed 'e_SUBDOMAIN' in /home/web/www/BenWeb_V2/e107_handlers/session_handler.php on line 446
CaMer0n commented 10 years ago

Please give it a try - this should fix it.

tgtje commented 10 years ago

Blank install #549 latest do give positive result

brhahlen commented 10 years ago

Fixed :-) Looking good :-)