Go Back   Pligg Forum > Pligg Help > Installation and Upgrade Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2007, 12:40 AM
Mikeee Mikeee is offline
New Pligger
 
Join Date: Mar 2007
Posts: 6
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
New install, error: Warning: fopen("./settings.php", "w")

I just attempted to install 9.1 beta, and upon install, it wrote to dbconnect.php properly, and on the next install page, it built the db, but then gave this error...

Code:
Error: You may have typed the template name wrong or it does not exist. Click here to fix it.


Warning: fopen("./settings.php", "w") - Permission denied in /home/virtual/site24/fst/var/www/html/libs/admin_config.php on line 131
Could not open './settings.php' file for writing
Warning: fopen("./settings.php", "w") - Permission denied in /home/virtual/site24/fst/var/www/html/libs/admin_config.php on line 131
Could not open './settings.php' file for writing
Error: You may have typed the template name wrong or it does not exist. Click here to fix it.

Please fix the above error(s), install halted!
I checked all my CHMOD's and theyre all correct according to README.TXT.
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 03-31-2007, 06:56 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
in you pligg directory can you check if there is a settings.php file

it might be named settings.php.default so you'll have to rename it.

then set permission to 777 and run the installation.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #3 (permalink)  
Old 03-31-2007, 11:50 AM
Mikeee Mikeee is offline
New Pligger
 
Join Date: Mar 2007
Posts: 6
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by savant View Post
in you pligg directory can you check if there is a settings.php file

it might be named settings.php.default so you'll have to rename it.

then set permission to 777 and run the installation.
Hello. Yes I had it renamed to setting.php and chmoded 0777, but still got the same error. My pligg dir is root html directory. Which is where settings.php is.

But why does it say ./settings.php ? Doesn the dot indicate current folder, which is /install/ ? Shouldnt it say /settings.php ?

Also, I checked in config.php on line 104 it says ...

Code:
$file = dirname(__FILE__) . '/templates/' . $thetemp . "/pligg.tpl";
But when I look in templates folder, there is no file called pligg.tpl

Last edited by Mikeee : 03-31-2007 at 12:08 PM.
Reply With Quote
  #4 (permalink)  
Old 03-31-2007, 01:10 PM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
what happened when you changed the ./settings.php to settings.php

for the template question $thetemp adds yget to the path
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #5 (permalink)  
Old 03-31-2007, 01:47 PM
Mikeee Mikeee is offline
New Pligger
 
Join Date: Mar 2007
Posts: 6
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by savant View Post
what happened when you changed the ./settings.php to settings.php

for the template question $thetemp adds yget to the path
nothing happens, I get the same error just without the dot. Here is the other error I get where it says "Click here to fix"

Code:
SQL/DB Error -- [Table 'mytable11.table_prefixconfig' doesn't exist]
Error. The table_prefixconfig table is empty or does not exist
Reply With Quote
  #6 (permalink)  
Old 03-31-2007, 03:27 PM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
that error has to do with the settings.php

Looking at the installer, it looks like the settings.php is made only after everything is installed.

PHP Code:
<?php
$my_base_url 
'http://localhost';
$my_pligg_base '/pligg';
$dblang 'en';
define('table_prefix''pligg_');
include_once 
mnminclude.'settings_from_db.php';
?>
here's settings.php. just edit with your details and see how it goes.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #7 (permalink)  
Old 03-31-2007, 05:12 PM
Mikeee Mikeee is offline
New Pligger
 
Join Date: Mar 2007
Posts: 6
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by savant View Post
that error has to do with the settings.php

Looking at the installer, it looks like the settings.php is made only after everything is installed.

PHP Code:
<?php
$my_base_url 
'http://localhost';
$my_pligg_base '/pligg';
$dblang 'en';
define('table_prefix''pligg_');
include_once 
mnminclude.'settings_from_db.php';
?>
here's settings.php. just edit with your details and see how it goes.

Ok my settings.php looks like this...
PHP Code:
<?php
$my_base_url 
'http://domain.com';
$my_pligg_base '/';
$dblang 'en';
define('table_prefix''pligg_');
include_once 
mnminclude.'settings_from_db.php';
?>

But when I run the install, it changes the file to this...

PHP Code:
<?php
include_once mnminclude.'settings_from_db.php';
?>
still getting the same error, this is mind boggling :(
Attached Images
File Type: jpg pligg_error0.jpg (55.4 KB, 8 views - Who Downloaded?)
Reply With Quote
  #8 (permalink)  
Old 04-01-2007, 02:30 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
sorry i meant to create a settings.php fill in the correct details and start running pligg. you don't have to install again.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #9 (permalink)  
Old 04-01-2007, 07:03 AM
Mikeee Mikeee is offline
New Pligger
 
Join Date: Mar 2007
Posts: 6
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by savant View Post
sorry i meant to create a settings.php fill in the correct details and start running pligg. you don't have to install again.
If I do that, I get this error...

Code:
Error: You may have typed the template name wrong or it does not exist. Click here to fix it.


Fatal error: Call to undefined function: file_get_contents() in /home/virtual/site24/fst/var/www/html/class.config.php on line 49

and when I click on the "click here ri fix" I get this...

Code:
Fatal error: Call to undefined function: file_get_contents() in /home/virtual/site24/fst/var/www/html/class.config.php on line 49
This is driving me insane. I have never in my life had suchj a hard time installing a script. I really appreciate your patience, savant. I hope I can get this to work soon.
Reply With Quote
  #10 (permalink)  
Old 04-01-2007, 08:29 AM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
Actually, I don't think these errors had anything to do with settings.php. Your config table was never created. If you're willing to PM me your FTP info and access to phpmyadmin I am willing to install Pligg manually for you. It's a bit technical and hard to explain so that's why I am offering to do it for you.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd like to hire someone to help install vendude Installation and Upgrade Help 3 03-10-2007 09:52 PM
Old database on fresh install noyp General Help 4 03-05-2007 01:21 PM
Pligg IIS install (basics) ButtNutt Installation and Upgrade Help 0 07-15-2006 04:23 PM
Install Error / install 7 GreenMonkey Bug Report 1 06-28-2006 02:09 AM
Copies my /libs/dbconnect.php from another Pligg install since it doesnt come with 6. lexor Installation and Upgrade Help 0 05-19-2006 04:44 AM


LinkBacks Enabled by vBSEO 3.0.0