Install Error at step 14

I have nstalled everything, followed all the instructions witout any problems until step 14 where is says:


"MySource Matrix will now try and create the database tables needed by the system. Note that this step may take some time, so do not interrupt the processing of this step after clicking the "Next" button".



When I click the next button I immediately get this error message:



Warning: main(/home/lostforw/public_html/matrix/data/private/conf/main.inc): failed to open stream: No such file or directory in /home/lostforw/public_html/matrix/core/include/init.inc on line 81



Fatal error: main(): Failed opening required '/home/lostforw/public_html/matrix/data/private/conf/main.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lostforw/public_html/matrix/core/include/init.inc on line 81



Any thoughts what I have done wrong here and what I can investigate to correct the problem??

If you managed to get through the installation to this point, you should have that data/private/conf/main.inc file created. If not, some sort of error has occured previously (probably a permission denied error to create the main.inc file). Have any database tables been created in your DB?

No, no tables have been created in the database - it's still empty!


However, I get this error message when I use localhost as the database location.



DB Error: connect failed when connecting to database.

Could not get database handler for dsn pgsql://lostforw:5069326@localhost/lostforw_matrix



Previsouly, I had left the database location empty whe I got the error messages originally posted here.

For postgres, you should use unix() instead of localhost.

Actually I used the Unix () the first time round and still the same problems.


I did upload all the files via ftp so even though there have been no permission issues identified during the installin may be that I have folders that should have write access that don't!



Is there any doc that states which folders and files should have what permissions?



At Step 13 it says that :

"The following configuration variables were saved to /home/lostforw/public_html/matrix/data/private/conf/main.inc " and then details the setting which all look fine, but the main point is that it DOES NOT write create the main.inc file!



What the??



I was so close to making it too!



Bugger!



Anyone got any thoughts on what I could try next?

I just checked the code and realised there's no actual check for the main.inc. Guess I just presumed that it'd fail later on when it needs main.inc. I've updated the installer download and it now should give you any errors that are thrown if the main.inc file isn't written during that step.

Your a very smart man Marcus, will do! Thanks for that! I will let you know how I go for future reference!

Ok, with the new installer uploaded, I have gone through the install process again again when I get to Step 13 - Create System Config, the page display the following error messages:
(Any ideas what could be causing thew problem???)



Config files were NOT successfully created. The following output was given by the config writing script



Warning: mkdir(): No such file or directory in /home/lostforw/public_html/matrix/fudge/general/file_system.inc on line 267



Warning: Unable to create directory: / in /home/lostforw/public_html/matrix/fudge/general/file_system.inc on line 268

By any chance do you have safe_mode or open_basedir enabled in your php.ini file? You can check this by:

  • Paste the following into a new file
    <?php phpinfo(); ?>


- Save it to something like info.php
- upload it to your /path/to/matrix/data/public directory
- Go to www.matrixurl.com/__data/info.php (or if you're not getting aliases / htaccess details written, just go to www.url.com/matrix/data/public/info.php which will give you the info).

If you do have either of these in place, you may want to try doing a CLI install.

I have checked my php info using http://www.lostforwords.com/info.php


Safe Mode is OFF



open_basedir has the following setting:



local value is:

/home/lostforw:/usr/lib/php:/usr/local/lib/php:/tmp



Master Value is:

no value



What should it be???

no value if possible :slight_smile: What open_basedir effectively does is locks you into being able to access only a limited directory structure;

[quote]open_basedir  string



    Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.



    When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it’s not possible to avoid this restriction with a symlink.



    The special value . indicates that the working directory of the script will be used as the base-directory. This is, however, a little dangerous as the working directory of the script can easily be changed with chdir().



    In httpd.conf, open_basedir can be turned off (e.g. for some virtual hosts) the same way as any other configuration directive with “php_admin_value open_basedir none”.



    Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.



    The restriction specified with open_basedir is actually a prefix, not a directory name. This means that “open_basedir = /dir/incl” also allows access to “/dir/include” and “/dir/incls” if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: “open_basedir = /dir/incl/”



        Note: Support for multiple directories was added in 3.0.7.



    The default is to allow all files to be opened.[/quote]



If you’re feeling adventurous and know a little php, you might want to try replacing the body of the create_directory function with the contents of the following function which recurses through the path from the base up



http://aidan.dotgeek.org/lib/?file=function.mkdirr.php

Hmm, now I am getting a bit lost!


Are you saying that no value should be applied to the Local Value parametre rather than what it currently has being:

/home/lostforw:/usr/lib/php:/usr/local/lib/php:/tmp



And if I cam able to do this, do you think everything will work ok after that?



I don't know a great deal about php, so probably not feeling that adventurous!

Yep; if you have access to disable it in your php.ini then that'd be the best thing to do :).

Hi Marcus
Just to explain, I am trying to setup Mysource Matrix on a vitrual host provider (www.qualityhostonline.com), so I am unable edit the php.ini file.



Also, I don’t believe I have the ability to perform a CLI install with my hosting account.



So, I guess the question is, given these limitations, am I able to install Mysource Matrix with this provider, or do I have to go elsewhere?



In your last post you said:



If you’re feeling adventurous and know a little php, you might want to try replacing the body of the create_directory function with the contents of the following function which recurses through the path from the base up



http://aidan.dotgeek.org/lib/?file=function.mkdirr.php




However, I am not sure what you mean by this. I am able to open a php file and edit it, if thats what you are suggesting, but what is the create_directory function that you talk of? Is that a php file and if so where is it?



If I add the contents to it as suggested in your last post, will that resolve the problem I am having at step 14?



OR … am I doomed to fail at intalling this program on my current provider.?

I am having similair problem



Anyone?? :frowning: