PHP & Apache & MySQL install how-to ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers PHP & Apache & MySQL install how-to ?
# 1  
Old 08-28-2003
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.
# 2  
Old 08-28-2003
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  
Old 08-28-2003
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  
Old 08-28-2003
thanks, i'll try that
# 5  
Old 09-02-2003
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

3. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

4. Web Development

[php] webpage with login & mysql-db

Hi all, What I was looking for before was a multi-user password manager, web-based! The offer of free or cheap tools of this kind is very pover. Or they are too complex (or too expensive) I'm not a web programmer but I now decided to set up a (php) website with login and based on this login... (1 Reply)
Discussion started by: thibautp
1 Replies

5. Web Development

Confused maybe about MySQL Dump & PHP

Hello. the purpose of my efforts right now are to get a larger script of mine (which the admin told me he'd put into cron for me) to properly back-up my MySQL database. To test out the sql back-up part (before getting the whole script into cron, and having it not work) I wanted to test it. So... (12 Replies)
Discussion started by: jzacsh
12 Replies

6. Shell Programming and Scripting

Books on PHP & APACHE

Can anybody please suggest me a good book to learn PHP and Apache. I want to use it for general programming and espeacially as front end tool for INFORMIX RDBMS. The book should guide me from the basics, as I am a beginer for PHP & Apache on SUSE Linux 9.0. (1 Reply)
Discussion started by: V.V.KUMAR
1 Replies

7. UNIX for Dummies Questions & Answers

enable php & java support in apache

Hello guys, I am in desperate need for this information: I have an apache server running on linux (suse 8.1) I am unable to run php or java code on it, and I wonder what is wrong. for the php case, the browser asks me how he should treat the file, namely download it to my local drive or... (5 Replies)
Discussion started by: bionicfysh
5 Replies

8. Shell Programming and Scripting

PHP & MySQL: sort desending and print

How do i get php to sort the times in a table and print order desending. eg: in the table i have: 02:60.00 02:70.00 02:20.00 02:50.00 in that order in a table how do i get php & mysql to print... (1 Reply)
Discussion started by: perleo
1 Replies

9. UNIX for Dummies Questions & Answers

Linux/Unix/PHP/MySQL & servers?

Hello everyone! First I would like to say that I am very glad that I found this forum, and by some of the posts I have viewed, I see that I can learn a lot from you all! Secondly, I know next to nothing about Linux/Unix (gotta learn sometime right?) and need some assistance. I am a... (5 Replies)
Discussion started by: kolton
5 Replies
Login or Register to Ask a Question