LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Little LAMP help (https://www.linuxquestions.org/questions/linux-software-2/little-lamp-help-136250/)

ElementNine 01-19-2004 02:21 AM

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

hw-tph 01-19-2004 02:44 AM

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

Håkan

ElementNine 01-19-2004 02:47 AM

Tried that all ready it says unrecognized option

jogurt666 01-19-2004 02:48 AM

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!

ElementNine 01-19-2004 03:26 AM

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


All times are GMT -5. The time now is 04:06 PM.