On Fri, 2002-10-25 at 22:50, Destiny wrote:
> I have been tryiong to install phpslash and gotten nowhere :( I am not used to the type of install procedure that it seems to require, like making the database, etc, I am more familiar with phpnuke and postnuke which tend to walk you through the process, can anyone give me a somewhat setp by step because I could really use the help right about now 
> :( Thanks in advance 
Apologies to the group for posting html mail.. I can't work out how to stop evolution breaking lines at 80 characters when sending plain text messages and I wanted to preserve the long url's etc.


You have not given any information that will help us to solve your problem so I'm going to have to make a lot of assumptions. I guess it is most likely that you are installing phpSlash on a computer running linux and that you have root access to it  - if this is not the case, the instructions would be slightly different. I'm also going to assume that it's the first stage of the install, the database, that is giving you problems, so the instructions below are tailored to get that sorted out.

If you are new to linux it's worth pointing out that you should be able to copy/paste most of these commands straight into a terminal window by highlighting them in your mail reader and then clicking with your middle mouse button in the terminal window. If you don't have a middle button, click both the right and left buttons at the same time. That will save you a lot of typing (and typo's).

1) open a terminal and unpack the phpSlash tarball in your home directory:

tar zxvf phpslash-0.65.tar.gz

2) create a new database with the following command:

mysqladmin -u user -p create newdatabase

where "user" is the admin user for mysql and "newdatabase" is whatever you would like to call the database. You will be prompted for the admin user's password.

3) create the basic database structure with the following command:

mysql -u user -p newdatabase < ~/phpslash-0.65/tables/0.65/slash-all.sql

"user" and "newdatabase" should be whatever you used before.

4) start a new mysql session:

mysql -u user -p newdatabase

5) once in the mysql client type the following command:


replace newdatabase, webuser and password with appropriate values. "webuser" should be the username that you want the web server to use when connecting to the database and "password" is the password that you chose for this user.

6) quit the mysql session by typing "quit". Then test that the grant command you just issued has worked by connecting again, but as the web server user:

mysql -u webuser -p newdatabase

Once connected, can check that there are 29 tables in the database using this command:


If you have problems connecting, read the section on permissions in the mysql documentation (http://www.mysql.com/doc/en/GRANT.html)

7) copy the class and public_html directories from your home directory to the web server root directory (usually /var/www/public_html). If you have multiple sites on your web server, create a new directory and use that (something like /var/www/public_html/newsite/) instead.

cp -R ~/phpslash-0.65/class /var/www/public_html
cp -R ~/phpslash-0.65/public_html /var/www/public_html

8) download the gzipped source for phplib from https://sourceforge.net/project/showfiles.php?group_id=31885&release_id=44737 and unpack it in  your home directory:

tar zxvf phplib-7.2d.tar.gz

9) copy the phplib-7.2d directory to one level above where you have put your site - so for this example:

cp -R ~/phplib-7.2d /var/www

10) create a file called .htaccess in your favorite text editor. It should contain the following two lines:

php_flag magic_quotes_gpc Off
php_value include_path "/var/www/phplib-7.2d/php"

save this file as "/var/www/public_html/.htaccess"

11) read all the documentation that comes with phpslash (in ~/phpslash-0.65/doc/), twice, then edit the phpslash configuration file: /var/www/public_html/config.php3.

12) follow the instructions in the phpslash documentation to edit your web server configuration file so that your web server knows what to do with .php3 pages.

13) fire up your browser and test the site. If you have problems, try looking at the test.php3 page which runs some simple checks and will most likely tell you what is wrong. If you really can't solve it, post another message here - but please this time please make sure you include the following:

what operating system / web server you are running.
where you have installed things
what the exact error message that you see in the browser is.

Best of luck,


Sam Williams
Salter Projects Limited
Telephone: (+852) 2987.4742
Facsimile: (+852) 2987.4743


WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute, copy or take any action in reliance on the contents of this email.