monstra-cms / monstra

THIS PROJECT IS NOT SUPPORTED ANYMORE! Check FLEXTYPE.ORG
http://flextype.org
MIT License
396 stars 121 forks source link

Install script fails #135

Open apitofme opened 11 years ago

apitofme commented 11 years ago

I followed the installation guide to the letter [ http://monstra.org/documentation/installation ] but Monstra fails to install!

At first this was because the iconv extension was not loaded...

Although I had to change the Monstra::$environment in /engine/_init.php to "Monstra::DEVELOPMENT" to enable debugging before I found this out! (as per http://monstra.org/documentation/environments)

So I set my php.ini to load the required extension (although there is not mention of this as a requirement in the documentation: http://monstra.org/documentation/system-requirements) and restarted my web-server.

Just to be certain I tested it with this script:

<?php
# test iconv() function is present/working
echo iconv("ISO-8859-1","UTF-8","This is a test.");
?>

It worked!!

When I ran the install script again nothing happened! After clicking the "install" button I didn't get an error message or anything, the page just appeared to refresh and reset the form.

Then I wondered why there is no mention in the installation guide about configuring database settings?!

Eventually (after looking through the source code of many files) I found that the /boot/defines.php file has a section (commented out) to set the MySQL-DSN settings, so I set these to connect to a test database I'd set up on my localhost.

I ran the install script again and it was Still not working!

I then searched some more and found that /engine/boot/defines.php also has a section to set the MySQL-DSN, so I repeated my settings here too!

...and again ... STILL NOT WORKING!!

Okay, so I must be an idiot right?! PLEASE can somebody tell me what the smeg is going on?!!

neridev commented 11 years ago

Same problem, I think maybe, there could be something wrong...

neridev commented 11 years ago

apitofme do you have right permissions and setting correct owner of monstra files ? I have setting owner permissions for all files (.htaccess, .gitignore also!) www-data:www-data , and access permissions for directories with files are default as unzip from monstra-*.zip... Monstra doesnt use a database (MySQL,etc.) , why are you mention it?

apitofme commented 11 years ago

As per the first line of my OP -- "I followed the installation guide to the letter..." Specifically...

## Steps to Install
...
4. 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.
5. 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.
...

I have Monstra's files and folders under my web-server's group, and where applicable that group has write privileges!

If Monstra does not use MySQL then...

a) Why the references to the MySQL DSN config in the files I mentioned in my OP?

/**
 * Monstra database settings
 */
//define('MONSTRA_DB_DSN', 'mysql:dbname=monstra;host=localhost;port=3306');
//define('MONSTRA_DB_USER', 'root');
//define('MONSTRA_DB_PASSWORD', 'password');

b) What does it use for a DB? (e.g. SQLite / CouchDB etc.)

c) Is whatever DB system used supplied with Monstra in the download package or stated somewhere clearly as a requirement / dependency?

To be honest this 'bad experience' has really put me off of using Monstra!

If I need a light-weight CMS for any of my clients projects then I'll be using something like Anchor or Bolt instead, and for larger projects I'll stick with WordPress! -- Thanks

neridev commented 11 years ago

OK, if you have correct setting all permission, than do you have any information in /tmp/logs/... inside root of Monstra? or in apache error-logs? Do you have own server or web-hosting please ?

Hm, I dont know, what that mean -> "Monstra database settings", because actual Monstra doesnt use DB. If you didnt write about this, I wouldnt know about it :) , and as you can see all this "settings" is as comment.

Monstra use a SimpleXML for save content, so no DBs :) -> this is greate advantage of this CMS. For Monstra you need only few requirements - http://monstra.org/documentation/system-requirements

Here - http://app.epsolutions.sk/monstra/ , I have a fresh Monstra install with custom theme for development. If there is something with can I help you and if you want ofcourse, just write any questions.


IMHO for large project personally prefer Drupal or Typo3.

magnus-eriksson commented 10 years ago

The problem still exists. I did notice that it acctually redirected me to index.php after I clicked on "Install" but the install page was still shown. After I deleted "install.php" it worked.

Seems like the installer can't remove "install.php" even if it is set to 777.

rodrigosaraiva commented 9 years ago

There are somebody to answer this questions? The installation script doesn't work. When install button is clicked, with all form informations, the installation come back to requirement validation page. Where's the documentation to use MySQL? If you cannot support your project, please, put it down.

Awilum commented 9 years ago

This is Hosting Side issue! We have already discussed this issue several times on forums: http://forum.monstra.org/ http://ru.forum.monstra.org/

neridev commented 9 years ago

rodrigosaraiva, first of all... Do you paying some support??? Awilum created and makes very usefull CMS, and if people at community know, have time or whatever... they help to others. I dont think, that you are the right person, who should write something about putting down project... Second, install script works fine. Owner of files should be in apache2 group, if you are using apache2. Please verify this option.

magnus-eriksson commented 9 years ago

Just downloaded the latest version and tested again. After I install monstra,I get redirected to /index.php which just shows the installation page again. I did run this before installing: chmod -R 777 storage/ tmp/ backups/ public/ install.php .htaccess sitemap.xml

So, the installation works but it still can't remove the install.php which confuses people. You need to manually remove install.php when you get redirected to index.php.

And yes... the user is in Apaches www-data group. This is on my development server (Ubuntu 14.04) which I have run a lot of different cms's and sites so it's not a matter of invalid permissions.

neridev commented 9 years ago

Hm... I just downloaded the latest version too, but after successful installation install.php file is removed, without my any action. So after install I have seen home monstra page. Note, that, when I did unzip master.zip from github, I did not changed permissions, so default permission should be OK. It is mystery...