Topic: I installed XAMPP on my linux box properly

Thanks very much for all of you who helped me installing XAMPP successfuly on linux Box.

I hope now I have the requirement for creating the forum and installing PunBB.

now, I don't know what would be the next step I need to take, so please further help if you can.


Thank you

Re: I installed XAMPP on my linux box properly

I dont knwo I have not received any reply from any one !!!

anyway, I decided to ask it in a different way as below:

Installing PunBB:

1 - Copy/upload all contents of the directory upload/ into the directory where you want to run your forums. ( Of course this means copying it to a directory in my domain, am I right ?)

2_ # Run install.php from the forum root directory (e.g. open http://mydomain/myforums/install.php in your browser). ( so will I run it from the directory where I keep the content of the whole PunBB files ? example: www.BBB.com, and I have a folder by the name of BBB where I upload the necessary files and will I run it from www.bbb/install.php ) ?


Thank you

3

Re: I installed XAMPP on my linux box properly

1. If your domain is www.bbb.com then you would create a directory under that domain e.g. www.bbb.com/forum. Copy the contents of the upload folder in the install package to the that directory. CHMOD the permissions for the cache directory and images directory to 777.

2. Using the above example you would run the install script from www.bbb.com/forum/install.php

Once your forum is installed going to http://www.bbb.com/forum will load the forum index page.

You probably didn't get a reply because the download package contains instructions on how to install PunBB.

4 (edited by cisco4networking 2007-10-03 10:24)

Re: I installed XAMPP on my linux box properly

Hello Guys, I am back with my problems again !

Paul Thank you for your helpful explanation. I followed your instruction, I got the below error message when I tried running the installation. I thought I had some of the details wrong because I was/am not sure what to put in the boxes when it asked me for the name of "my database", but I still don't know what caused generating this error message.

" An error occured on line 58 in file /homepages/38/d149487439/htdocs/HaveYourSayOnLine/forum/include/dblayer/mysql.php.

PunBB reported: Unable to connect to MySQL server. MySQL reported: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) "


I would appreciate your support as usual with all my thanks.

Re: I installed XAMPP on my linux box properly

Is the MySQL server running?

6 (edited by cisco4networking 2007-10-03 10:37)

Re: I installed XAMPP on my linux box properly

Yes, it is running fine.
but when I log in my XAMPP I notice the status for my PHPs are off as you can see below:

    PHP extension »eAccelerator«     DEACTIVATED    
    PHP extension »OCI8/Oracle«     DEACTIVATED

I tried turning them on but have not been able to because I don't know which command to use for turning them on.

Thank you

Re: I installed XAMPP on my linux box properly

Those aren't relevant
What hostname are you using for the MySQL server?

Re: I installed XAMPP on my linux box properly

I don't know what you mean by that sorry ! Do you mean my XAMPP ? which I left as default "http://localhost" when I installed it I left it as default.

    MySQL database     ACTIVATED

Re: I installed XAMPP on my linux box properly

no offense to xampp or anybody else, but if you're going to use linux use yum or what ever package manager your distro uses and then read the documentation.

if you use fedora, use pup (gui) or yum.
yum -y install httpd php mysql mysql-server php-mysql

read http://dev.mysql.com/doc/refman/5.1/en/index.html and http://httpd.apache.org/docs/ or http://www.google.com/search?hl=en& … tnG=Search

there's a ton of information.

Re: I installed XAMPP on my linux box properly

also mysql makes some very nice gui's you may want to check out http://www.mysql.com/products/tools/

if you're going to use linux do stuff like a linux user.  install the packages and learn how they work.  it's really not that hard.  i bet when you installed your distro you could have had apache / mysql / php installed for you.  no need for xampp.  check out your distros documentation.  i would bet $1,000,000,000 there's a lot of information on how to set this up.  if for some crazy reason you insist upon using xampp then read their documentation.

you can do it.

Re: I installed XAMPP on my linux box properly

It took me ages until I managed to install XAMPP and now I am confised by all the above suggestions !

I have been going through all XAMPP installation steps and have made sure everything is as it's mentioned and now I don't know what the problem excatly could be. I prefere to stick to XAMPP and see if I find the solution.

Re: I installed XAMPP on my linux box properly

LAMP is excellent for such things.

But as for your problem: make sure you're using 'localhost' as the server name, not 'http://localhost' or whatnot.

Re: I installed XAMPP on my linux box properly

well in the browser I put localhost and it of course generates "http://localhost/xampp/" but in the field when it asked me for Database server hostname then I only put "localhost" only.

it's just driving me mad that I don't know what else I should do to sort this probelm !

Re: I installed XAMPP on my linux box properly

Are you trying to use MySQL or MySQLi?

Re: I installed XAMPP on my linux box properly

ok.  what is your problem?  you have xampp installed?  now drop punbb in the proper directory and i think everything will 'just work'.  but this is a terrible install and should not be used for anything but playing around.  if you let outside visitors in you will get owned!

here's some neat info on xampp:

A few helpful notes:

    * You'll find php.ini and httpd.conf files in the /opt/lampp/etc directory
    * Web pages go in the /opt/lampp/htdocs directory (the DocumentRoot)
    * Make sure that previously installed Apache/MySQL services, etc. are stopped
    * Default installation of XAMPP is "wide open", i.e., MySQL has no root password.
    * There's an easy way to handle security settings by running "/opt/lampp/lampp security". Again, note the spaces between the words.

You'll find additional information on XAMPP at http://www.apachefriends.org.

from http://www.nyphp.org/phundamentals/xampp.php

Re: I installed XAMPP on my linux box properly

xampp on linux = tits on a bull

17 (edited by eric235u 2007-10-03 13:13)

Re: I installed XAMPP on my linux box properly

elbekko wrote:

Are you trying to use MySQL or MySQLi?

ah, sorry i misunderstood.  he's already got punbb up and trying to install...

yeah elbekko's right.

what's the error punbb is giving you?  or are you just not sure what to tell punbb?

Re: I installed XAMPP on my linux box properly

sorry guys I fell a sleep as I got too tired trying sorting this out.

I know there is no password by default on any XAMPP feature and I alraedy set password and secured all of them.

Yes, I have already send the error message above if you notice but here it is again:


" An error occured on line 58 in file /homepages/38/d149487439/htdocs/HaveYourSayOnLine/forum/include/dblayer/mysql.php.

PunBB reported: Unable to connect to MySQL server. MySQL reported: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) "

1-- I uploaded all the stuff in upload folder of the installation package into my forum folder on my site.
2--I went to the browser to install it but when I started filling the boxes asking me for the details such as
A-- Database type  > I put "MySQL"
B--Database server hostname > I put "localhost"
C--Database name > I am not sure about this name but I put "MySQL"
D--Enter your database username and password :
1-- Database username> Not sure but but I put "MySQL" and tried XAMPP and LAMPP as well.
2-- Database password >  I tried the password which I set in the first point.
E--Table prefix > Left it blank.
F--Administrator username > I chose a name for it which is five letters.
G-- Password & Confirm password > I confirmed the password.
H--Administrator's e-mail > I put an email address here as well.
I--Base URL > I created forum folder on my site and for this Base URL I put for example: "http://BBB.CO./FORUM" and infact it chose it itself by default.

19

Re: I installed XAMPP on my linux box properly

2C- That should be the name of the empty database you created before running install usually something like "forum" or "pun" or something else appropriate. You did create a database didn't you? That however probably has nothing to do with your current problem but would have been the next problem once the current problem is sorted.

Re: I installed XAMPP on my linux box properly

2A: Try MySQLi
D1: 'root' is the correct one

Re: I installed XAMPP on my linux box properly

I am almost about to quit because I have tried every single possible thing and still get the same error message.

""" PunBB reported: Unable to connect to MySQL server. MySQL reported: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) """

22 (edited by eric235u 2007-10-03 22:19)

Re: I installed XAMPP on my linux box properly

shot in the dark...

do you have an invalid reference in the my.cnf file?  what's your basedir?

[mysql.server]
user=mysql
basedir=/opt/lampp/var/mysql

Re: I installed XAMPP on my linux box properly

The below is what I have in "/opt/lampp/var/mysql"

.   cdcol      linux.pid  mysql.sock  test
..  linux.err  mysql      phpmyadmin

Re: I installed XAMPP on my linux box properly

ok.  now what does it say in your my.cnf file?

""" PunBB reported: Unable to connect to MySQL server. MySQL reported: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) """

does /var/lib/mysql/mysql.sock not exist?  it seems the error is in the configuration.  mysql should be looking in /opt/lampp/var/mysql.

fix your basedir in the my.cnf file.

i think...  (^.^)

Re: I installed XAMPP on my linux box properly

yes, there is mysql.sock but how am I supposed to open it or how can I fix it ?