LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-16-2005, 03:45 AM   #1
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Rep: Reputation: 15
MySQL, PHP with Apache


Hi all.

My Proftpd is working smoothly now , thanks for all supports.

Next, I will try to install new webapps server. I can make Apache run. Now, I want to install Php and MySQL in order to I can install web forum on to my Sun box.

I installed php normally (just: ./configure --> make --> make install). However, after install, I don't see the lib files of php. I think that I need to put some parameters when I configure and install php (i didn't). Now, can I make clean and reconfigure it again? There's any suggestions?

Ah, should do I install MySql first, then install php later?

Thx in advance.
 
Old 11-16-2005, 12:31 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Why are you installing from the source and not prebuilt binary packages ?
 
Old 11-16-2005, 08:56 PM   #3
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
i didn't see binary package in php.net
 
Old 11-17-2005, 12:32 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
http://www.blastwave.org/packages.php
 
Old 11-17-2005, 03:37 AM   #5
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
I used: pkg-get -i mod_php5 to install

I see the pkg-get download a lot of things and install them, while the process is running, i select "n" when they ask me to install apache (apache has been install already). After i chose "n", the installation stop immediately.

I don't know what has been installed or not to my system. How can I check them?

When I look at the /opt/csw, there have so many directories of installed packages, i guess. Can I remove some of them?

Thanks.

Last edited by saudoi; 11-17-2005 at 04:03 AM.
 
Old 11-17-2005, 04:07 AM   #6
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
Yeah, I find out parameter "-l" to list the installed packages.

Code:
 pkg-get -l mod_php5
WARNING: gpg not found
apache
berkeleydb3
berkeleydb4
berkeleydb43
common
expat
ggettext
gsed
krb5_lib
libiconv
libmm
libnet
libtool
libxml2
mod_php5
openldap
openldap_client
openldap_rt
openssl
php5
pkg_get
readline
sasl
tcpwrappers
unixodbc
zlib
After i tried pkg-get -i mod_php5 again and approved to install apache, the installation finished successfully. However, there're 2 instances of apache, one in /usr/apache and one is /opt/csw/apache (this is active now). I wanna remove new apache instance. How do I do?
 
Old 11-17-2005, 07:35 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Why do you want to remove the new one ?
 
Old 11-17-2005, 10:52 AM   #8
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
It looks so complicated, sothat i wanna remove the new one. Only one is easier to maintain, to trouble shooting and make the system clear when we look into.
 
Old 11-17-2005, 12:41 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What is looking complicated ?
csw packages are living in their own environment, and do not interfere with remaining packages that would already be present.
You have installed PHP and apache built and configurated to work together, that would made no sense to remove the working apache and try to have the csw PHP working with the Solaris apache ...
 
Old 11-18-2005, 10:01 PM   #10
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
as you said, I should leave csw apache package and reconfigure it as I did with Solaris apache. At this time, Solaris's apache isn't used, can I remove it?
 
Old 11-19-2005, 01:23 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You certainly can remove Solaris apache, either just by disabling it (remove /etc/rc3.d/S50apache) or by removing all the apache/tomcat packages:
pkgrm SUNWapchr SUNWapchu SUNWapchd SUNWtcatu SUNWtcatr
 
Old 11-19-2005, 12:09 PM   #12
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
Thank jlliagre. I have off-topic question. How do you know the name of packages like SUNWapchu, SUNWapchd .... ? Could I find out them.
 
Old 11-19-2005, 12:47 PM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
By looking in the /var/sadm/install/contents and /var/sadm/pkg/*/pkginfo files.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache+php+mysql andrew007 Slackware 4 05-16-2005 11:50 AM
Apache/PHP/MySQL brokenflea Slackware 9 10-29-2004 12:16 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM
Apache/MySQL/PHP c0c0deuz Linux - General 2 05-18-2002 03:55 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration