How to installa php & mysql

Hi

I'm triying to install php &mysql on a v100 box, does anybody knows an easy way to do it?? i'm newbie on solaris so the manual on php an mysql about how to install are a little confused, and difficult

Regards
Alejandro_LopezAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shivsaCommented:
1. Download the latest MySQL package from www.mysql.com for your Solaris box. The installation is really easy.
2. Download the latest PHP release from www.php.net
3. Now you need  installed GCC (2.95 or better). Install  gmake.
4.  Create a directory and uncompress the PHP and mysql distribution in there. Within the PHP distrib you will find a file INSTALL which is really good. read that carefully.

they will give u all the hints u need to install php and mysql.

5. if u want them to work together and install together then
Move into the PHP distrib and run the following :
./configure --with-mysql=/usr/local/mysql
Modify the path to your MySQL installation.
Type make and make install






0
shivsaCommented:
u can download gcc and gmake  tools and most of the binary packages and install it from here.
    http://sunfreeware.com/
0
shivsaCommented:
Set you PATH before compiling, assume that gcc and gmake is installed in /usr/local/bin
for sh/ksh do:
   PATH=/usr/local/bin:$PATH
   export PATH
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

yuzhCommented:
 I thinks it is easier to download the tools and most of the binary packages and install it, then compile everything from source code.

  Most of the packages you can download from:
  http://sunfreeware.com/

  I suggest that you downlaod pkg-get (BOLTpget.pkg) and install it first.

  after pkg-get is install, you can use:
 
    "pkg-get install gcc-2.95.3"
  to install gcc

  Download the following tools and packages from the above site:
  gcc(2.95.3 is a stable version), glib, make(GNU), flex, bison, autoconf, automake, perl, gzip, tar (GNU),zlib, and mysql.
  if you are using Solaris 7 or older, download apache and install it as well.

  at this stage, "pkg-get" install all the tools, apache, mysql for you.

  You need to install php from sourecode, download it from
  http://www.php.net/

  Set you PATH before compiling, assume that gcc, tar(GNU) is installed in /usr/local/bin
  for sh/ksh/bash do:
  PATH=/usr/local/bin:$PATH
  export PATH

  For csh/tcsh
  set path = (/usr/local/bin $path)

  add /usr/local/lib to LD_LIBRARY_PATH  as well.


Install PHP:

1). run configuration script to support apache and mysql
./configure --with-apxs=/usr/apache/bin/apxs --enable-versioning \
--with-mysql=/usr/local/mysql  --with-zlib --enable-track-vars

2). make

3). make install

Finally edit the apache configuration files (likely in /etc/apache), and start apache.

If you want to use DBI (the perl database interface), you can download it from:
http://www.mysql.com/downloads/api-dbi.html

please read the README file for the installation instructions. (ver DBI 1.18 works fine for me).


Also please have a look at the following instructions:
http://php.planetmirror.com/manual/en/install.solaris.php

Good luck!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
glassdCommented:
Here is an extract from my documentation. This covers the changes to the .../conf/httpd.conf file.

If it has not already been modified by the installation, after the line:
LoadModule setenvif_module            libexec/mod_setenvif.so
add the line:
LoadModule php4_module            libexec/libphp4.so

If it has not already been modified by the installation, after the line:
AddModule mod_setenvif.c
add the line:
AddModule mod_php4.c

Edit the line:
DirectoryIndex index.html
to:
DirectoryIndex index.html index.php intex.htm

After the line:
AddType application/x-tar .tgz
add the line:
AddType application/x-httpd-php .php

Check the configuration file context:
.../bin/apachectl configtest
The reply should be:
Syntax OK
0
Alejandro_LopezAuthor Commented:
I don´t know if i can split points, this is my second answer. I really  learned

thanks to all of you !!!
0
yuzhCommented:
You can split the points.  have a look at the following page:

http://www.experts-exchange.com/help/#13
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.