LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-11-2006, 08:05 PM   #16
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94

Sorry didn't check for that. Your php.ini file looks fine. Have you tried adding that mysql.so file to the include path and then restarting apache?
 
Old 07-12-2006, 01:25 AM   #17
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i just tried copying that so file into the include directory that the ini points to
i still get

[client 24.163.113.48] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/phpinfo.php on line 8


i also restarted apache
 
Old 07-12-2006, 08:44 AM   #18
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
try changing extension to = php_mysql.so

Edit = Sorry just remebered that is for windows.
 
Old 07-12-2006, 08:54 AM   #19
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
OK, Lets get back to basics. First was php with your system or did you install yourself? Second if you did complie the program yourself how did you do it? What version are you using?
 
Old 07-12-2006, 11:56 PM   #20
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i used yum to install both mysql and php, apache came pre installed when i ordered the VPS

php vesion 5

mysql version4 (would like it ot be 5 but yum doesnt have mysql 5)

im thinking abuot deleting apache php and mysql and installing it all by hand from a manual

is there a good place that would explain the how to for a complete beginner like myself? (i mean like almost line by line commands of every step)
 
Old 07-13-2006, 08:42 AM   #21
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
To install Apache and PHP download apache2.0.53 and php5

Install for Apache
Code:
tar -zxvf httpd2.versionNumber
./configure --prefix=/usr/local \ --enable-mods-shared=most \ --enable-modules=all
make 
make install
Install for php
Code:
./configure --with-mysql \ --with-apxs=/usr/local/apache2/bin/apxs
make 
make install
edit the apache's conf file and make the following edits. Make sure that under LoadModule you have the following LoadModule php5_module libexec/libphp5.so. Also If you are being prompted to download you php scripts make sure the following is in apache. Under ClearModule list the following should be there AddModule mod_php5.c

Also add the following
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

edit the DirectoryIndex
DirectoryIndex index.php index.htm index.html default.php

check /usr/bin for apache2ctl if not there then issue the following command
Code:
ln -s /usr/local/apache2/bin/apache2ctl /usr/bin/apache2ctl
Tonight I will put the install instructions for mysql.

I really think you should compile them for your self. That way you will have a tighter control on where things are and how they are.
 
Old 07-13-2006, 08:39 PM   #22
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
hey thanks i got apache and php installed now, just waiting for your next post :}
 
Old 07-14-2006, 09:26 AM   #23
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
First did your installation go off with out any problems? Also can you post the information from the phpinfo().
 
Old 07-14-2006, 09:46 AM   #24
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
Just go here and download from the nearest mirror.

tar -zxvf mysql-version.tar.gz
Then just do the following.
Code:
./configure --prefix=/usr/local
make 
make install
then su to root
Code:
mysql_install_db --user=mysql

Last edited by jstephens84; 07-14-2006 at 09:48 AM.
 
Old 07-14-2006, 05:35 PM   #25
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i would prefer to use mysql 5 becasue on my development machine i use mysql 5

http://dev.mysql.com/downloads/mysql/5.0.html

but i dont know which download i need
 
Old 07-14-2006, 06:12 PM   #26
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
http://dev.mysql.com/get/Downloads/M...r.gz/from/pick

Choose that one. Then use the same install instructions from other post. If it is a binary install then let me know.
 
Old 07-14-2006, 07:25 PM   #27
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
i feel dumb becasue i did the apache and php without much of any problem

everytime i use the configure command it says not found but i did ls and i see configure right there

btw this is all in /home/mysql should i of done this in /usr/local?
 
Old 07-14-2006, 09:04 PM   #28
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
Doesn't matter. are you doing ./configure
 
Old 07-14-2006, 09:30 PM   #29
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
yes, the file is extracted

i type

cd /home/mysql
./configure
 
Old 07-14-2006, 09:58 PM   #30
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
does it say anything about being a binary installation.
 
  


Reply

Tags
apache, apache2, lamp, php, php5


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
A terrible trauble about linux + apache + php + mysql jiawj Linux - Software 2 06-03-2006 06:39 AM
Linux + Apache + PHP + ??MySQL/PostgreSQL?? Thakowbbery Linux - Enterprise 4 10-28-2005 03:18 PM
Linux, Apache, PHP, MySQL akilles Linux - Newbie 4 03-02-2005 02:43 AM
Linux 8.0 installed with Apache 2.0, PHP and MySQL fmagoufis Linux - Newbie 1 12-12-2002 01:13 PM
VMWare, RH Linux 7.3, Apache, MySQL and PHP xibernex Linux - Software 2 06-17-2002 09:57 AM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration