News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Securing The Newly created Forum

Started by Old Lynx, November 23, 2007, 05:28:04 PM

Previous topic - Next topic

Old Lynx

OK I'll do that now, I'll let you know what's on line 49 :)

Old Lynx

#21
Hi again

Right I downloaded the index.php and opened it in wordpad, and then I put my curser at the top of the document (1st line) then started pressing down the [Down Arrow] and counting until I got to 49 (that would be line 49 right ?)...

here is what is on that line and stuff around it:

$forum_version = 'SMF 1.1.4';

// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');

// Using an old version of PHP?
if (@version_compare(PHP_VERSION, '4.2.3') != 1)
   require_once($sourcedir . '/Subs-Compat.php');


Help Please :(:(

DaveV

Not sure which one was line 49, but I'd suspect settings.php

That's the one that messed me up. If the program can't access it, you'll get that message. Increase your permissions until it starts working again, 644 worked for me. You can crank it all the way up to 777 to prove it's the culprit and then reduce it down from there.

Old Lynx

I just changed the premissions on Settings.php to 777 and still ... I get the same message :( :( :(

DaveV

Well, you now know as much as I do. Check other things around line 49, or count again. Check out other folders that you changed recently. It take a bit of exploring and e-detective work, but you're on the right track.

Old Lynx

I just went and changed the presmissions for every single folder to (755) and it is still the same :'(

Old Lynx

Something is seriuosly wrong :(

arrrgh why is that always things go wrong with my stuff :'(

babjusi

@Ciwan, upload via ftp the file Settings_bak.php from the forum folder to your pc and rename it Settings.php and then re-upload it back choosing for the overwriting option, and see if that would help

Old Lynx

OK Babjusi, I'll do that now and I'll let you know how if it worked

Thanks Pal :)

babjusi

Quote from: Ciwan on November 25, 2007, 02:44:43 PM
OK Babjusi, I'll do that now and I'll let you know how if it worked

Thanks Pal :)

You are welcome, let me know how it will go

Old Lynx

Hi again

No it didn't work :( I get the same message again :'(

Old Lynx

Should I remove everything from the [forum] folder and start all over again, by loading the SMF script from scratch ??? :(

Herman's Mixen

welll permission denied is most likely that the file is or  has no execute permssions set it to 777 in this cas right now...
so we can acces it .... :P
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

Old Lynx

Hi guys

Right I just re-installed everything, and the forum is working now.....Now I want to make it secure !!

What should I do ?? (I've deleted install.php by the way, but there is another {install_mysql} or something similar, should I delete that too ?? or should that be left alone

What do I do to make my forum secure ???   :'(

Thanks

Old Lynx

The Most important thing to me is not loosing the posts.....can someone please tell me how to back up all the posts that have been posted !

Thanks

Ol' Wombat

Linux server? cPanel

or

in forum's admin panel under maintenance is a backup option too

Old Lynx

Hi there

Thanks for the quick reply

Right I just went to maintenance in Admin CP and Downloaded "all important data" but it was only 25KB.....is this right ?? I mean I have somthing like 200 posts !!!

I know the thing is zipped, but 25KB seems very small to me ?? so it this normal ?? do I have all the posts I've posted backedup on my HDD now ?

Old Lynx

Also can you please teach me how I can enable Avatars ?

Thanks :)

Ol' Wombat

#38
Quote from: Ciwan on November 25, 2007, 07:38:31 PM
Hi there

Thanks for the quick reply

Right I just went to maintenance in Admin CP and Downloaded "all important data" but it was only 25KB.....is this right ?? I mean I have somthing like 200 posts !!!


I know the thing is zipped, but 25KB seems very small to me ?? so it this normal ?? do I have all the posts I've posted backedup on my HDD now ?

if those are short text postings without images then it looks OK to me. However, do the backup with table structures checked just to be more complete. unzip the file to see its true size :)


Quote from: Ciwan on November 25, 2007, 07:42:40 PM
Also can you please teach me how I can enable Avatars ?

Thanks :)

it is enabled by default - if you want to install your own avatars just upload your custom avatar folder into the Forum/Avatar folder and it should show up in the profile.


Old Lynx

When I go to [My profile] I can't find anything that says [Avatar] !! there should be something there shouldn't there ??

Advertisement: