LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2004, 02:21 AM   #1
ElementNine
Member
 
Registered: Sep 2003
Distribution: Red Hat 9 or Gentoo 1.4 whatever I can get to work first
Posts: 105

Rep: Reputation: 15
Little LAMP help


okay ive googled for LAMP tutorials and found quite a few the most current using mysql 4.0.16, which i downloaded. Well all tutorials ive seen say to use:


#./configure –prefix=/usr/local/mysql –localstatedir=/usr/local/mysql/data –disable-maintainer-mode –with-mysqld-user=mysql –enable-large-files-without-debug

to configure mysql, well when i do that it says that prefix is invalid variable as well as the rest of the variables listed. The only way i could get it to work is to just use:

./configure

which is fine but then to compile PHP the way the tutorial explains you have to use the settings it listed. Im still pretty new to linux(compiling and installing stuff) so if i just use ./configure i have no idea how to compile php to use it....

So my question is does anyone have a better tutorial on how to do this, I already have apache installed

http://www.madpenguin.org/Article751.html

thats the article im using in case anyone was wondering
 
Old 01-19-2004, 02:44 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You should use double hyphens instead of single ones preceding each parameter, like this: ./configure --prefix=/usr/local <and so on>

Håkan
 
Old 01-19-2004, 02:47 AM   #3
ElementNine
Member
 
Registered: Sep 2003
Distribution: Red Hat 9 or Gentoo 1.4 whatever I can get to work first
Posts: 105

Original Poster
Rep: Reputation: 15
Tried that all ready it says unrecognized option
 
Old 01-19-2004, 02:48 AM   #4
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Rep: Reputation: 30
well i've got one LAMP too, and i've configured MySQL with no additional options. that's how i did it. as you've probably done, i've ./configure'd MySQL, and set user passwords and so on. now i've untared apaches and phps sources, entered apaches sources dir and typed:

$ ./configure

than i've gone to phps and:

$ ./configure --with-apache=../apache_source_dir --with-mysql=/mysql/dir --enable-track-vars
$ make
# make install

now again i've entered apaches:

$ ./configure --activate-module=src/modules/php4/libphp4.a
$ make
# make install

after installation i just had to do three more things. first one was to copy php.ini-dist (or something like that) file from phps source dir and paste it into /usr/local/lib/ as php.ini (that is the default directory), edited it setting register_globals = On, and modified httpd.conf file in apaches server dir, in my case that was /usr/local/apache/conf/httpd.conf, adding:

AddType application/x-httpd-php .php

that's everything. but please note that there is no such file as libphp4.a under that directory given in --activate-module! it is to be created during the compilation!
 
Old 01-19-2004, 03:26 AM   #5
ElementNine
Member
 
Registered: Sep 2003
Distribution: Red Hat 9 or Gentoo 1.4 whatever I can get to work first
Posts: 105

Original Poster
Rep: Reputation: 15
Odd!

okay i used ./configure --prefix=/usr/local/mysql \

i put in '\'s instead of letting lines over run to the next and it worked
 
  


Reply


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
Lamp Server kwickcut Mandriva 1 11-25-2005 10:02 PM
Best LAMP Distribution slpwkr Linux - Distributions 4 11-13-2005 02:43 AM
v9.2 Trying to get lamp going boardtc Mandriva 4 03-21-2005 08:05 PM
new lamp on fedora 2 rblampain Linux - Software 5 12-06-2004 12:16 AM
Lamp mikage14 LinuxQuestions.org Member Success Stories 2 05-08-2004 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 PM.

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