Re: [PHP] Questions per installing on linux (Php 4)

2001-11-04 Thread Kacey A. Murphy

This is what I did when I installed PHP and I already had mySQL on my RAQ3i
and it worked like a charm, I hope this helps you, -- you can skip by the
mySQL install and move on the PHP install below.

Since mySQL for the RAQ3i (especially if you used the BIN from Cobalt)
doesn't have a directory complete with the source so I just used

--with-mysql   (without a path) been working awesome.

E-mail if you need anything
ICQ# 16976549


***
** INSTALLING MySQL on RAQ3i **
***

[1]   login as root
[2]   mkdir usr/local/download
[3]   cd /usr/local/downoad
[4]   wget http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.32.tar.gz
[5]   echo mysql:x:101:103:MySql User:/usr/local/mysql:/etc/passwd
[6]   echo mysql:x:103:/etc/group
[7]   tar zxvf mysql-3.23.32.tar.gz
[8]   cd mysql-3.23.32
[9]

./configure --prefix=/usr/local/mysql --with-unix-socket-path=/tmp/mysql.soc
k --with-mysqld-user=mysql
[10] make
[11] make install
[12] chown mysql.mysql /usr/local/mysql
[13] scripts/mysql_install_db
[14] chown -R mysql.mysql /usr/local/mysql/var
[15] mkdir /var/lib/mysql
[16] ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
[17] rm -f /usr/bin/mysql
[18] ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
[19] chmod 755 /usr/local/mysql/var
[20] /usr/local/mysql/bin/safe_mysqld 
[21] /usr/local/mysql/bin/mysqladmin -u root password 'YOURPASSWORDHERE'
[22] cp support-files/mysql.server /etc/rc.d/init.d/mysql
[23] chmod 755 /etc/rc.d/init.d/mysql
[24] echo /etc/rc.d/init.d/mysql start/etc/rc.d/rc.sysinit



***
**  INSTALLING PHP4 on RAQ3i **
***

[1]  login as Root
[2]  cd /usr/local/download
[3]  wget http://php.net/distributions/php-4.0.6.tar.gz
[4]  tar -xvzf php-4.0.4pl1.tar.gz
[5]  cd php-4.0.4pl1
[6]  mkdir /usr/local/php
[7]  mv * /usr/local/php
[8]  cd /usr/local/php
[9]  rmdir /usr/local/download/php-4.0.4pl1
[10] ./configure --with-mysql --with-apxs --enable-track-vars
[11] make
[12] make install
[13] cp php.ini-dist /usr/local/lib/php.ini

[14] pico -w /etc/httpd/conf/httpd.conf

 (Change the line:)
   LoadModulephp4_modulelib/apache/libphp4.so
   to
   LoadModulephp4_module/usr/lib/apache/libphp4.so)

[15] pico -w /etc/httpd/conf/srm.conf

 Find the following line in srm.conf
   #AddType application/x-httpd-php .phtml
   After this line, add the line
   AddType application/x-httpd-php .php .php4 .phtml
   This associates the .php file extension with PHP4

 (If you want index.php to be served by default you need also to add
this as
  well in the section UserDir web of the same file)

 # DirectoryIndex: Name of the file or files to use as a pre-written
HTML
 # directory index.  Separate multiple entries with spaces.

  DirectoryIndex index.html index.htm index.shtml home.html home.htm
index.php
  index.php4 index.p$



***
** FINISHING NOTES   **
***

Still logged in as 'root' perform the following commands to stop and restart
the HTTP server
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Questions per installing on linux (Php 4)

2001-11-04 Thread Kacey A. Murphy

This is what I did when I installed PHP and I already had mySQL on my RAQ3i
and it worked like a charm, I hope this helps you, -- you can skip by the
mySQL install and move on the PHP install below.

Since mySQL for the RAQ3i (especially if you used the BIN from Cobalt)
doesn't have a directory complete with the source so I just used

--with-mysql   (without a path) been working awesome.

E-mail if you need anything
ICQ# 16976549


***
** INSTALLING MySQL on RAQ3i **
***

[1]   login as root
[2]   mkdir usr/local/download
[3]   cd /usr/local/downoad
[4]   wget http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.32.tar.gz
[5]   echo mysql:x:101:103:MySql User:/usr/local/mysql:/etc/passwd
[6]   echo mysql:x:103:/etc/group
[7]   tar zxvf mysql-3.23.32.tar.gz
[8]   cd mysql-3.23.32
[9]

./configure --prefix=/usr/local/mysql --with-unix-socket-path=/tmp/mysql.soc
k --with-mysqld-user=mysql
[10] make
[11] make install
[12] chown mysql.mysql /usr/local/mysql
[13] scripts/mysql_install_db
[14] chown -R mysql.mysql /usr/local/mysql/var
[15] mkdir /var/lib/mysql
[16] ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
[17] rm -f /usr/bin/mysql
[18] ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
[19] chmod 755 /usr/local/mysql/var
[20] /usr/local/mysql/bin/safe_mysqld 
[21] /usr/local/mysql/bin/mysqladmin -u root password 'YOURPASSWORDHERE'
[22] cp support-files/mysql.server /etc/rc.d/init.d/mysql
[23] chmod 755 /etc/rc.d/init.d/mysql
[24] echo /etc/rc.d/init.d/mysql start/etc/rc.d/rc.sysinit



***
**  INSTALLING PHP4 on RAQ3i **
***

[1]  login as Root
[2]  cd /usr/local/download
[3]  wget http://php.net/distributions/php-4.0.6.tar.gz
[4]  tar -xvzf php-4.0.4pl1.tar.gz
[5]  cd php-4.0.4pl1
[6]  mkdir /usr/local/php
[7]  mv * /usr/local/php
[8]  cd /usr/local/php
[9]  rmdir /usr/local/download/php-4.0.4pl1
[10] ./configure --with-mysql --with-apxs --enable-track-vars
[11] make
[12] make install
[13] cp php.ini-dist /usr/local/lib/php.ini

[14] pico -w /etc/httpd/conf/httpd.conf

 (Change the line:)
   LoadModulephp4_modulelib/apache/libphp4.so
   to
   LoadModulephp4_module/usr/lib/apache/libphp4.so)

[15] pico -w /etc/httpd/conf/srm.conf

 Find the following line in srm.conf
   #AddType application/x-httpd-php .phtml
   After this line, add the line
   AddType application/x-httpd-php .php .php4 .phtml
   This associates the .php file extension with PHP4

 (If you want index.php to be served by default you need also to add
this as
  well in the section UserDir web of the same file)

 # DirectoryIndex: Name of the file or files to use as a pre-written
HTML
 # directory index.  Separate multiple entries with spaces.

  DirectoryIndex index.html index.htm index.shtml home.html home.htm
index.php
  index.php4 index.p$



***
** FINISHING NOTES   **
***

Still logged in as 'root' perform the following commands to stop and restart
the HTTP server
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Questions per installing on linux (Php 4)

2001-11-03 Thread Steve Werby

[EMAIL PROTECTED] wrote:
 when I do am done downloading, it says to use:
 ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql
 --enable-track-vars --enable-trans-sid --enable-ftp

 Ok, but I have mysql. Should I remove the --with mysql ...

If you want MySQL support in PHP you *must* include the --with-mysql option.
If you don't specify the location of the MySQL library files (the part after
the =) then PHP will use its built-in libraries which is fine on the RaQ3.

 and to have GD support, do I need a 'with gd ...'
 if so, what would that be? (I thought it was included)

Yes, include --with-gd.  --with-gd=/usr should do it.  I don't recall what
version of GD is on the RaQ3 by default so you may want to check and if it's
old you may want to consider upgrading before installing PHP.

 Or if I install postgres. Should I do that first?
 Do I need *Specific* syntax for postgres, such as --with-mysql=/usr/...

Yes, you should install PostgreSQL before installing PHP.  I recommend
searching the list archives for cobalt-users.  You can find them at the AIMS
Group archive site, same site you referenced in your post.  It might be a
better idea to ask about the PHP install on cobalt-users (go to
www.cobalt.com to subscribe, after searching the archives of course) since
everyone on that list is running RaQ systems, while my guess is that only a
fraction of the people on this list are.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]