Re: compile error with libphp4.a on RH 6.2

From: Date: Mon, 12 Mar 2001 02:49:46 +0000
Subject: Re: compile error with libphp4.a on RH 6.2
References: 1 2  Groups: php.install 
Request: Send a blank email to php-install+get-2338@lists.php.net to get a copy of this message
Thanks for your help. The make works now. The problem I had was the install instructions in the book ""MySQL/PHP Database Applications". The first ./configure for apache says --prefix=/path/to/apache , with the instruction "the path where you would like Apache installed. The second ./configure also specifies /path/to/apache. But it should have said for the first ./configure /path/to/apache/sourcefiles and for the second ./configure /path/to/apache. Anyway, it all worked out fine in the end. regards Jani Taskinen wrote: > On Fri, 9 Mar 2001, Johannes Ambrose wrote: > > >Hi, > >I hope this is not a stupid question. The faq tells me it should just > >work. > > > >When compiling apache on Red Hat 6.2 with : > >./configure --prefix=/usr/local/apache > >--activate-module=src/modules/php4/libphp4.a > > > >everything works fine. However, make gives me a build error because > >there is no such directory as src/modules/php4. In other words. the > >libphp4.a file does not get created. I've looked at the FAQ and mail > >lists but nothing obvious jumps out at me. > > Please read the INSTALL file that comes with the PHP 4 distribution: > > -----------8<---------------------------------- > QUICK INSTALL (Static) > > $ cd apache_1.3.x > $ ./configure > $ cd .. > > $ cd php-4.0.x > $ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars > $ make > $ make install > > $ cd ../apache_1.3.x > $ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a > (The above line is correct! Yes, we know libphp4.a does not exist at this > stage. It isn't supposed to. It will be created.) > > $ make > (you should now have an httpd binary which you can copy to your Apache bin > dir if is is your first install then you need to "make install" as well) > $ cd ../php-4.0.x > $ cp php.ini-dist /usr/local/lib/php.ini > You can edit /usr/local/lib/php.ini file to set PHP options. > Edit your httpd.conf or srm.conf file and add: > AddType application/x-httpd-php .php > -----------8<---------------------------------- > > --Jani > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.install (#2338) next »