Page 1 of 1
step 5 installation problem...
Posted: Tue Nov 01, 2005 4:02 pm
by stewdawg35
When I get to step 5 I get the following message:
Warning: fopen(C:\www\cms/config.php): failed to open stream: Permission denied in C:\www\cms\lib\config.functions.php on line 136
Congratulations, you are all setup.
Here is your CMS site
Then I click on the link and it takes me to a directory listing of all the files none of which I can really access, when I try to connect to index.php I get the following error:
Warning: mysql_pconnect(): Access denied for user 'anonymous'@'localhost' (using password: YES) in C:\www\cms\lib\adodb\drivers\adodb-mysql.inc.php on line 356
Notice: Only variables should be assigned by reference in C:\www\cms\lib\adodb\adodb.inc.php on line 796
Notice: Only variables should be assigned by reference in C:\www\cms\lib\adodb\adodb.inc.php on line 796
Notice: Only variables should be assigned by reference in C:\www\cms\lib\adodb\adodb.inc.php on line 796
Notice: Only variables should be assigned by reference in C:\www\cms\lib\adodb\adodb.inc.php on line 796
Notice: Only variables should be assigned by reference in C:\www\cms\lib\adodb\adodb.inc.php on line 796
Warning: Smarty error: unable to read resource: "db:-1" in C:\www\cms\lib\smarty\Smarty.class.php on line 1088
I have checked the permissions and have practically made everything readable by the server, it is a windows server, and I would appreciate any help to try to solve this....
thanks
Re: step 5 installation problem...
Posted: Tue Nov 01, 2005 4:12 pm
by Piratos
is a config.php written with full content ?
Re: step 5 installation problem...
Posted: Tue Nov 01, 2005 4:18 pm
by stewdawg35
no it never seems to get written, what would happen if I manually put the content into it?
Code: Select all
<?php
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost:3307';
$config['db_username'] = 'anonymous';
$config['db_password'] = 'your database password now set to none';
$config['db_name'] = 'cms';
$config['db_prefix'] = 'cms_';
$config['root_url'] = ' http://www.mysite.org/cms';
$config['root_path'] = 'C:\www\cms';
$config['query_var'] = 'page';
$config['use_bb_code'] = false;
$config['use_smarty_php_tags'] = false;
$config['previews_path'] = 'C:\www\cms\tmp/cache';
$config['uploads_path'] = 'C:\www\cms\uploads';
$config['uploads_url'] = ' http://www.mysite.org/cms/uploads';
$config['max_upload_size'] = 1000000;
$config['debug'] = false;
$config['assume_mod_rewrite'] = false;
$config['auto_alias_content'] = true;
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['use_Indite'] = false;
$config['image_uploads_path'] = 'C:\www\cms\uploads/images';
$config['image_uploads_url'] = ' http://www.mysite.org/cms/uploads/images';
$config['default_encoding'] = '';
$config['disable_htmlarea_translation'] = false;
$config['admin_dir'] = 'admin';
$config['persistent_db_conn'] = true;
$config['default_upload_permission'] = '664';
$config['page_extension'] = '.html';
$config['locale'] = 'en_US';
?>
Re: step 5 installation problem...
Posted: Tue Nov 01, 2005 4:36 pm
by stewdawg35
I was mistaken, the config.php file is written so now what could the problem be?
Re: step 5 installation problem...
Posted: Tue Nov 01, 2005 7:01 pm
by Piratos
$config['db_hostname'] = 'localhost';
$config['root_url'] = '
http://localhost/cms';
all other must be localhost not myswite if you are local
Re: step 5 installation problem...
Posted: Tue Nov 01, 2005 11:49 pm
by stewdawg35
I changed all of the "mysite.org" to "localhost" but I still run into the same problem as described above.
Re: step 5 installation problem...
Posted: Wed Nov 02, 2005 2:20 am
by Ted
The problem is related to php 4.4.0 or php 5.0.5. Your best bet is to install 0.11beta4, since it would take a lot of hacking to make it work. Unfortunately, php has a habit of breaking stuff in updates...
Re: step 5 installation problem...
Posted: Wed Nov 02, 2005 8:42 am
by Piratos
if you are local your webserver domain name must be localhost too - only to change the config.php is not all.
Re: step 5 installation problem...
Posted: Wed Nov 02, 2005 3:37 pm
by stewdawg35
I really do appreciate all of your help in trying to fix this...I hate windows servers but unfortunately I am stuck with one for this project. I made the suggested changes, checked permissions again and still get the following error upon completion of step 5:
Warning: fopen(C:\www\cms/config.php): failed to open stream: Permission denied in C:\www\cms\lib\config.functions.php on line 136
Congratulations, you are all setup.
Here is your CMS site
The link takes me to the main directory of the cms folder. Any suggestions as to why I keep getting the fopen() error? The files are read/write, could it be because I have not given it script source access?
thanks again for your help...
Re: step 5 installation problem...
Posted: Wed Nov 02, 2005 5:20 pm
by Piratos
Are you local or not ??
That means config.php is not writable by trying save config.php
if (is_writable($newfilename) || is_writable($newfiledir))
try a blank editor config.php with 0 bytes and save it with admin rights and then install.
Re: step 5 installation problem...
Posted: Wed Nov 02, 2005 7:36 pm
by stewdawg35
I am still not having success, I don't know why this is so hard, I really am not an inexperienced person with these things. I just installed mambo and joomla with no problem and am gonna test them out..it seems that they have a lot more features.
Does anybody have any opinions about them and maybe why I should consider cms above them?
Re: step 5 installation problem...
Posted: Thu Nov 03, 2005 9:31 am
by Piratos
Look at the php help:
is_writeable
is_writeable -- Alias of is_writable()
Description
bool is_writable ( string filename)
Returns TRUE if the filename exists and is writable.
The filename argument may be a directory name allowing you to check if a directory is writeable.
and see the install.txt point 2
----- If your webserver has write access to your new CMS directory you can skip step 2 ------
2. create an empty config.php file and make it writable by your webserver's user:
- touch config.php
- chmod 666 config.php