The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problems starting apache 1.3 with mysql godspunk32 SUN Solaris 1 08-25-2006 06:56 AM
Apache and MySQL as services? ezekiel61 UNIX for Dummies Questions & Answers 3 05-10-2004 04:08 PM
how to install apache-1.3.20-16.src.rpm into rh7.3 foong UNIX for Advanced & Expert Users 1 10-06-2003 02:00 PM
How to install and configure Apache on SCO openserver 5 cstovall UNIX for Dummies Questions & Answers 1 11-16-2002 12:18 PM
problem when install apache in AIx4.2 chiyx UNIX for Dummies Questions & Answers 3 09-07-2001 06:37 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-28-2003
Registered User
 

Join Date: Aug 2002
Location: Ireland
Posts: 139
Stumble this Post!
PHP & Apache & MySQL install how-to ?

how do i install php & mysql with apache on suse linux ???

apache was installed and configured when i installed linux.
all its files are in different folders. e.g http files in usr/local/httpd/htdocs/ and its configs are in etc/httpd/
so how do i install php and get it to work with apache and then install mysql to work with php. how do i know where everything will be installed to. e.g where will the data folder for the mysql db's be and stuff.
__________________
14 years old with: A+, Netowrk+, ICDL, E-cert, IT-Cert, IT-Diploma
Forum Sponsor
  #2 (permalink)  
Old 08-28-2003
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 712
Stumble this Post!
look for this module for your apache. on my sun it is called libphp4.so
(mod_php - PHP extension to apache)

then you have to edit your httpd.conf

LoadModule php4_module /<path>/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source. phps

now your apache can speak php.....

to configure your mysql db you could use phpMyAdmin...
how to use php vs. sql belongs to your application... what do you want to do??

greetings Preßy
  #3 (permalink)  
Old 08-28-2003
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,432
Stumble this Post!
There should be RPMs on SuSE CD-ROMs or FTP for apache, php and mysql already. That is the best option if your suse is up to date.

If you want to go install sources ...

On my old 7.3 SuSE I simply downloaded php from sources and used the ./configure options to enable the options needed (there are a lot of options). It should detect your apache installation and generate a libphp4.so that you move into the apache modules directory. I also downloaded mysql 4.1-alpha binaries from MySQL and just extracting it should suffice (the rest of mysql configuration read the MySQL manual).
  #4 (permalink)  
Old 08-28-2003
Registered User
 

Join Date: Aug 2002
Location: Ireland
Posts: 139
Stumble this Post!
thanks, i'll try that
__________________
14 years old with: A+, Netowrk+, ICDL, E-cert, IT-Cert, IT-Diploma
  #5 (permalink)  
Old 09-01-2003
cerberusofhnsg's Avatar
Registered User
 

Join Date: Jul 2003
Location: MT
Posts: 43
Stumble this Post!
in my experiences, ive always had to recompile php to add support for mysql.
http://www.blazonry.com/scripting/install_apache.php
shows you how to do this. it isnt hard, but there is a package floating around called linux easy installer i believe its called. you just run it, and it does all the custom compiling for you. make sure to do a google search, and then translate the page, as its in french last time I looked at it. Should take about 30 mins. MySQL can be installed from rpm though, no need to custom compile it. Forgive me if there are rpm packages that include support for MySQL with PHP- last time I looked though, there wasnt. Easier to install (IMHO) from source anyways, as you dont have to fool around with Red Hat package dependencies, which call 1 package 3 different things.
__________________
***BOFH***
echo "Lunch Break">/dev/kmem
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0