LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Installing phpBB2 under litespeed webserver

Reply
 
Thread Tools Display Modes
  #1  
Old 05-04-2004, 01:56 AM
stefan stefan is offline
Member
 
Join Date: May 2004
Posts: 24
Default Installing phpBB2 under litespeed webserver

First question, Does litespeed webserver works with a database program?
If not, then the underlying question can be ignored, else if yes I got a problem! read on ;-)

Does anyone already installed a database tool with litespeed?

I'm trying to install phpBB2 which needs to be setup through a php webpage.
if I ' m trying to do so I get the message:

phpBB : Critical Error
Could not connect to the database

Everythings is correctly configured (at the install screen).

If I do the same thing in apache2 it works correctly, it sees the mysql 4.x dbserver but litespeed does not! Anyone a idea?

The program phpSysInfo works fine, but this one doesn't use a database.

Thanx in advanced,

Stefan
Reply With Quote
  #2  
Old 05-04-2004, 07:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It is a PHP, MySQL problem, but not related to litespeed.

Please make sure the mysql socket is configured properly in php.ini (mysql.default_socket), check the phpinfo.php page, make sure mysql socket can be accessed by the user that php process runs as.

You probably noticed that we are using phpBB2. :-)

George
Reply With Quote
  #3  
Old 05-04-2004, 12:46 PM
stefan stefan is offline
Member
 
Join Date: May 2004
Posts: 24
Default yes, but.. here's what happend

Quote:
Originally Posted by mistwang
It is a PHP, MySQL problem, but not related to litespeed.
I saw it was no problem of litespeed, but just in case I dropped the question to be sure of it.

Quote:
Originally Posted by mistwang
Please make sure the mysql socket is configured properly in php.ini (mysql.default_socket), check the phpinfo.php page, make sure mysql socket can be accessed by the user that php process runs as.
Socket was good configurated, also the php.ini, due to the fact I (still) run apache I had php enable, so as it was not working with Mysql I drop the php.ini from my "apache" installation into the configured dir. of litespeed. I did a compare for some comments only the file was the same.
Only about what you told me about the user account I was not sure of, but after checking I saw it should could execute it and should run nicely. In fact it did cause all other none mysql php scripts worked fine.
Also after some changes made into the config files of php.ini I restarted the lsws through the admin panel. It didn't change things.
- So I just stopt the lsws through the init.d/lsws stop command
- killed all other admin_php and php processes in my ps -ef list.
- restartted the lsws
- added into mysql a specific user for the database of phpbb2 with all rights
- and retried the configuration of phpBB2.
- in the configuration I now used my real hostname (of the machine, not the domainname like eislon.nl)
- the script executed fine and the user for administration was made
- removed the required dirs (which phpbb2) told me too and you can feel it phpBB2 worked!

Quote:
Originally Posted by mistwang
You probably noticed that we are using phpBB2. :-)
George
Oh is it true? Just kidding, I noticed it, but I didn't look at it in the heat of battle with the php<->mysql failure...

Can it be that the stop of lsws isn't stopping everything? That it leaves something "hanging" into memory? I should tell you straight that I didn't see anything wrong. But if I start lsws I see the processes of lsws not the php ones, they come in later, but with a stop of lsws the php processes stay in the system.... maybe all the time it was just those processes which kept hanging? Still wondering.

BTW: I'm using Mandrake Linux 10 Offical, on a 2.4 kernel (later on 2.6) with Mysql 4.01xx and php 4.3.4

Thanx again for the quick response, hope you have something of the above things... futhermore litespeed rocks on... 8)
Reply With Quote
  #4  
Old 05-04-2004, 02:02 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Thank you for the update.

For technical reason, lsws does not force php fcgi processes to stop when lsws quits under some situations. We will have this issue addressed soon. It really caused a lot of troubles.

And after changing php.ini, you just do "killall php" to make sure all php processes are stoped. Lsws will start another set. No need to restart lsws.

Thanks,
George
Reply With Quote
  #5  
Old 05-15-2004, 01:07 PM
stefan stefan is offline
Member
 
Join Date: May 2004
Posts: 24
Quote:
Originally Posted by mistwang
And after changing php.ini, you just do "killall php" to make sure all php processes are stoped. Lsws will start another set. No need to restart lsws.
Thanx for the tip.
Currently I have litespeed webserver up and running the forum (at www.eislon.nl ) and it will slowly get the rest after a testing periode. It seems good and is very fast in loading the pages... good work!
Reply With Quote
  #6  
Old 06-01-2006, 09:38 AM
barham barham is offline
New Member
 
Join Date: Jun 2006
Posts: 4
Default phpbb install

hi all,



i need help on installing phpbb on my website.
what it is, is i fill the installation form and says :::::-----



phpBB : Critical Error

Could not connect to the database


and i don't know what to do, if u can , could u send it in pictures so u can tell me what to do, or add me in msn (Newport_Yankees@hotmail.com) and tell me step by step or just send it in flash format using -- Macromedia Captivate --, please, please, i'd be really thankful,


or if not , please gaive me the information in full details,


Thank you very much
Reply With Quote
  #7  
Old 06-01-2006, 10:26 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Barham, the problem is as the error describes, your php application cannot connect to the database. Please make sure you have setup your database correctly and have read the phpBB installation guide in full.

This is not a LiteSpeed problem but a general php/mysql/database one.
Reply With Quote
  #8  
Old 06-01-2006, 10:32 AM
barham barham is offline
New Member
 
Join Date: Jun 2006
Posts: 4
Default OK

But how can i setup my database?

thanks for helping
Reply With Quote
  #9  
Old 06-01-2006, 11:07 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Have you tried the documentation section for www.mysql.com? There are one of the most commonly used database product on the market today.

You can also search for "mysql install howto" on google.
Reply With Quote
  #10  
Old 06-01-2006, 11:13 AM
barham barham is offline
New Member
 
Join Date: Jun 2006
Posts: 4
Default phpbb

ok i will search in google and if i couldn't still find it, then meybe you could help me in other ways,

thank you very much for your time and help
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to use litespeed load balancer for balancing lsapi technix Ruby/Rails 3 07-06-2007 08:28 PM
Installing Oracle support for litespeed reshu1596 PHP 1 02-14-2007 06:53 AM
Problem installing LiteSpeed 2.2.1 Standard on UNIX perezsy Install/Configuration 17 09-22-2006 09:53 AM
Tutorial in installing LiteSpeed with FastCGI and Catalyst Conundrum CGI/Perl/Python 5 07-18-2006 07:04 AM
installing awstats ! stefan Install/Configuration 1 06-08-2004 03:45 AM


All times are GMT -7. The time now is 08:21 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.