Topic: Blank page as result of install.php

Hello all,

first to thanks to Awilum for great CMS for small sites! That is exactly what I need.

I tried to get up and run Monstra CMS on local hosted XAMPP and everything went smooth. After that, tried to install Monstra on my dedicated server, but when I enter 'http://example.com/install.php' into the browser (with my url, not example.com) the page that comes up is blank. I followed up instructions listed here http://monstra.org/documentation/installation.

What am I missing? Probably something with .htaccess file, right?

Re: Blank page as result of install.php

Do you edit some files ? you must save all files in UTF-8 without BOM!

Try this too:
http://monstra.org/documentation/environments
http://monstra.org/documentation/error-handling

Monstra Loves You! Give some love back!

Re: Blank page as result of install.php

I did not edit files at all. Setting my environment as DEVELOPMENT showed me next error message:

Fatal error: Undefined class constant 'PDO::ERRMODE_EXCEPTION' in /home/mio/public_html/geodomains/monstra/helpers/orm.php on line 162

Please advise!
mio

4 (edited by Sergio 2012-11-28 18:15:08)

Re: Blank page as result of install.php

Its in your .htacces .

Go to your root and go to .htacces
Its looks like this:

#
# Monstra CMS :: php & apache settings 
#
# Set default charset utf-8
AddDefaultCharset UTF-8
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
    php_flag magic_quotes_gpc                 off
    php_flag magic_quotes_sybase              off
    php_flag register_globals                 off
</IfModule>
# Setting rewrite rules.
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

Delete this:

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

Its should work.

Re: Blank page as result of install.php

Sergio, thanks for suggestion! Already tried this, but it did not work sad

Anything else?

6 (edited by Sergio 2012-12-14 09:28:38)

Re: Blank page as result of install.php

I know the problem,a few minutes ago i had the problem to. You need to CHMOD some files to install. YOu said you follow the install instructions but to be honest the problem is there.
You need to give write premissions to some of the files to install Monstra.

    Download the latest version.
    Unzip the contents to a new folder on your local computer.
    Upload that whole folder with an FTP client to your host.
    You may also need to recursively CHMOD the folder /storage/, /tmp/, /backups/ and /public/
    to 755(or 777) if your host doesn't set it implicitly.
    Also you may also need to recursively CHMOD the /install.php, /.htaccess and /sitemap.xml
    to 755(or 777) if your host doesn't set it implicitly.

    Type http://example.org/install.php in the browser.

Try to put CHMOD 777 to the subfiles of temp too:

tmp/cache
tmp/logs
tmp/minify

The problem is that some host doesnt put it as regular. You need to put it on your own.

Re: Blank page as result of install.php

Do not want to create new topic. I almost forget about monstra cms, because I was very busy lately in offline world. Few days ago received email that there is new monstra release, so I decide to try it again (fresh installation, not update). I followed up installation instructions, but when I tried to start install.php I get 500 internal error with following text:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, blabla@bla.bla and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.

Afaik, problem could be anything. When I open index.php I get that everything is fine:

...Monstra says...

PHP Version 5.4.21
Module SimpleXML is installed
Module DOM is installed
Module Mod Rewrite is installed
Directory: public writable
Directory: storage writable
Directory: backups writable
Directory: tmp writable
Install script writable
Sitemap file writable
Main .htaccess file writable

Anyone has any idea what is problem here?

p.s. what is going on with Russian forum?

8 2013-12-21 09:17:11

Re: Blank page as result of install.php

install.php I get 500 internal error with following text:

but then you see

...Monstra says...

everything is ok now ?

Monstra Loves You! Give some love back!

Re: Blank page as result of install.php

Awilum wrote:

install.php I get 500 internal error with following text:

but then you see

...Monstra says...

everything is ok now ?

Nope, I got same error message then too. I figured out that problem is with RewriteRule. When I change RewriteRule ^(.*)$ index.php [QSA,L] to RewriteRule ([^/]+)/?$ /index.php?page=$1 [L] then I got installation form page. After I fill all fields and click install button install.php just reload with blank fields, but there is no error message then. Any idea, pls?

10 2013-12-21 12:36:41

Re: Blank page as result of install.php

click install button install.php just reload with blank fields, but there is no error message then

Specific server issue...

http://monstra.org/documentation/installation

Try this:

You may also need to recursively CHMOD the folder /storage/, /tmp/, /backups/ and /public/
to 755(or 777) if your host doesn't set it implicitly.

Also you may also need to recursively CHMOD the /install.php, /.htaccess and /sitemap.xml
to 755(or 777) if your host doesn't set it implicitly.

Monstra Loves You! Give some love back!

11 2013-12-21 12:55:53

Re: Blank page as result of install.php

Tried, changed back RewriteRule to regular one and get 500 error message again. Will try to find Apache error log file to see what it says.

12

Re: Blank page as result of install.php

Here is what error log file says:

SoftException in Application.cpp:256: File "/home/(myfolder)/public_html/install.php" is writeable by group
Premature end of script headers: install.php

Any idea now?

13

Re: Blank page as result of install.php

Just to inform that when I changed for the /install.php to 644 everything went fine so I installed monstra without problems then.

Re: Blank page as result of install.php

Do you ask your hosting provider about this issue ?
http://stackoverflow.com/questions/4336 … pt-headers

Monstra Loves You! Give some love back!

15 2013-12-21 20:30:43

Re: Blank page as result of install.php

Yes, I did. They told me that it is permission problem, so to change chmod to 644 and to try. So I did and that solve my problem with installation of monstra.