Php:Critical error

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
azaries419
Registered User
Posts: 11
Joined: Sun Nov 27, 2005 7:08 pm
Location: AZ
Contact:

Php:Critical error

Post by azaries419 »

My forum was hacked by some Turkish group 2 wks ago. My server helped with that. Now the forum I have says, PHP:Critical error. Cannot connect to database. Now they say they don't help with 3rd party software, so here I am. They said I needed to update forum. I am very stupid on this stuff. I have done it over and over and it still is not right.
http://www.artisticpoets.com/forum

Can anyone please help me?
Thanks
Lynne
Lynne
eukben
Registered User
Posts: 9
Joined: Tue May 22, 2007 4:05 pm

Re: Php:Critical error

Post by eukben »

Hello,

When installing phpBB, in the database name & user fields make sure you include your account username, followed by a dash then the database name/user. If you have already installed phpBB no worries simply edit the config.php file and edit the specific parts as shown below:

Code: Select all

$dbhost = 'localhost';
$dbname = 'edit_this;
$dbuser = 'edit_this';
$dbpasswd = 'YOUR PASSWORD';
Remember, change edit to your account's username and this to your dbname/dbuser.
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51885
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Php:Critical error

Post by stevemaury »

What is the size of your config.php file in the forum root? If it is more than zero bytes, post its contents here, without the password. I think you overwrote your config.php file by uploading a newer version of phpbb, or a new upload of the same version.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
Jim_UK
Former Team Member
Posts: 18479
Joined: Tue Oct 12, 2004 5:36 pm
Location: Darwen N.West UK

Re: Php:Critical error

Post by Jim_UK »

eukben wrote:Hello,

When installing phpBB, in the database name & user fields make sure you include your account username, followed by a dash then the database name/user.
True in the case of many installs (cpanel and a shared IP) but by no means true of all installs.

Jim
The truth is out there.
Unfortunately they will not let you anywhere near it!
azaries419
Registered User
Posts: 11
Joined: Sun Nov 27, 2005 7:08 pm
Location: AZ
Contact:

Re: Php:Critical error

Post by azaries419 »

Okay this is the config.php file. The password is not my data base PW. Below that is a file I just found that says config.php.save. I opened it and it is the people who hacked me 2 weeks ago. I will only post a small part of it.

config.php
File Type: PHP script text

--------------------------------------------------------------------------------

<?php

$dbms = 'mysql' ;

$dbhost = 'localhost' ;
$dbname = 'artist9_phpb1' ;
$dbuser = 'artist9_phpbb' ;


$table_prefix = 'phpbb_' ;

define ( 'PHPBB_INSTALLED' , TRUE ) ;

_____________________________________________________________________
The file that says save. Did this mean they hacked me again???

config.php.save
File Type: ASCII HTML document text, with CRLF line terminators

--------------------------------------------------------------------------------

<head>
<title>Hacked By St. [ St@Spy-Team.Org ] /// Spy Security Team - http://Www.SpyGrup.Org</title>
<style>
<!--
.smallfont
{
font: 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.bg_main { background: #595959; }
.bg_page { background: #FFFFFF; margin-left: 14px; margin-right: 14px; }
.page
{
background: #FFFFFF;
color: #000000;
}
.tborder
{
background: #E1E1E1;
color: #000000;
border: 1px #CCCCCC solid;
}
td
{
font: 8pt tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.baiviet { PADDING-RIGHT: 5px; BACKGROUND: #ffffff; FONT: 12px Tahoma,Verdana, Arial, Helvetica; VERTICAL-ALIGN: top; COLOR: #333333; HEIGHT: 300px; }
-->
</style>
</head>

<body bgcolor="#000000">
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000
<p align="center"><a href="http://www.spygrup.org" target="_self">
<img border="0" src="http://www.spygrup.org/SpyHackTeam/SpyHackTeam.gif" alt="Hacked By St. & http://Www.SpyGrup.Org"></a><p align="center">
<b><font color="#FFFFFF">T&#252;rk Genci, devrimlerin ve cumhuriyetin sahibi ve
bek&#231;isidir. Bunlar&#305;n gere&#287;ine, do&#287;rulu&#287;una herkesten &#231;ok inanm&#305;&#351;t&#305;r. Y&#246;netim
bi&#231;imini ve devrimleri benimsemi&#351;tir. Bunlar&#305; g&#252;&#231;s&#252;z d&#252;&#351;&#252;recek en k&#252;&#231;&#252;k ya da en
b&#252;y&#252;k bir k&#305;p&#305;rt&#305; ve bir davran&#305;&#351; duydu mu, "Bu &#252;lkenin polisi vard&#305;r,
jandarmas&#305; vard&#305;r, ordusu vard&#305;r, adalet &#246;rg&#252;t&#252; vard&#305;r" demeyecektir. Elle,
ta&#351;la, sopa ve silahla; nesi varsa onunla kendi yap&#305;t&#305;n&#305; koruyacakt&#305;r.<br>
<br>
Polis gelecek, as&#305;l su&#231;lular&#305; b&#305;rak&#305;p, su&#231;lu diye onu yakalayacakt&#305;r. Gen&#231;,
"Polis hen&#252;z devrim ve cumhuriyetin polisi de&#287;ildir" diye d&#252;&#351;&#252;necek, ama hi&#231; bir
zaman yalvarmayacakt&#305;r. Mahkeme onu yarg&#305;layacakt&#305;r. Yine d&#252;&#351;&#252;necek, "demek
adalet &#246;rg&#252;t&#252;n&#252; de d&#252;zeltmek, y&#246;netim bi&#231;imine g&#246;re d&#252;zenlemek gerek"<br>
<br>
Onu hapse atacaklar. Yasal yollarla kar&#351;&#305; &#231;&#305;k&#305;&#351;larda bulunmakla birlikte bana,
ba&#351;bakana ve meclise telgraflar ya&#287;d&#305;r&#305;p, haks&#305;z ve su&#231;suz oldu&#287;u i&#231;in
sal&#305;verilmesine &#231;al&#305;&#351;&#305;lmas&#305;n&#305;, kayr&#305;lmas&#305;n&#305; istemeyecek. Diyecek ki, "ben inan&#231;
ve kanaatimin gere&#287;ini yapt&#305;m. Araya giri&#351;imde ve eylemimde hakl&#305;y&#305;m. E&#287;er
buraya haks&#305;z olarak gelmi&#351;sem, bu haks&#305;zl&#305;&#287;&#305; ortaya koyan neden ve etkenleri
d&#252;zeltmek de benim g&#246;revimdir."<br>
<br>
&#304;&#351;te benim anlad&#305;&#287;&#305;m T&#252;rk Genci ve T&#252;rk Gen&#231;li&#287;i
Lynne
azaries419
Registered User
Posts: 11
Joined: Sun Nov 27, 2005 7:08 pm
Location: AZ
Contact:

Re: Php:Critical error

Post by azaries419 »

No one has answered this since I put in the config.php. Can someone please help me?
Thanks
Lynne
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51885
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Php:Critical error

Post by stevemaury »

Did you post the entire config.php file? Because it is missing its end tag "?>" (without quotes). That tag needs to be at the end of the file on its own line with no spaces or linebreaks after it.

No idea what config.php.save is, except hackers put it there. You can delete it.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
azaries419
Registered User
Posts: 11
Joined: Sun Nov 27, 2005 7:08 pm
Location: AZ
Contact:

Re: Php:Critical error

Post by azaries419 »

Sorry yes it does have the end tag in it. I just missed it when I copied it. So the config.php looks right? I still cannot connect and when I tried to install the update it goes to the same critical error page.

Thanks for any help.
Lynne
Lynne
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Php:Critical error

Post by ric323 »

If you cannot connect, then the usernae or password are no longer correct.
Check with your web host, maybe they changed it while removing the hack.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
azaries419
Registered User
Posts: 11
Joined: Sun Nov 27, 2005 7:08 pm
Location: AZ
Contact:

Re: Php:Critical error

Post by azaries419 »

Okay, thanks. I contacted them this A M and the support couldn't connect either. So I guess I lost my whole board and 900+ members. Wow this sucks!

Thanks again
Lynne
Lynne
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51885
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Php:Critical error

Post by stevemaury »

Read this article - http://www.phpbb.com/kb/article/creatin ... configphp/

You can also take a look at the dbinformer.php file in the contrib folder, which is a tool allowing you to try various combinations of values to see if there is a valid set that will connect.

Do you nowhere have a backup of that file?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
azaries419
Registered User
Posts: 11
Joined: Sun Nov 27, 2005 7:08 pm
Location: AZ
Contact:

Re: Php:Critical error

Post by azaries419 »

Hi Steve, I will read them. The domain support guys got the forum back up but it is the forum I had moved to their server over 2 years ago. The whole header is code with warnings and is missing like over 500 members and posts and they said that is the best they could do. They have monthly backups so I don't know why they won't use one and fix it. They used the config.php that was there when it wouldn't connect to the database, with a password that isn't even mine. I have no idea what to do about any of it.
Thanks for your help
Lynne
Lynne
Locked

Return to “2.0.x Support Forum”