Nylex Posted April 14, 2003 Share Posted April 14, 2003 Hi, I\'m trying to set up a web server with PHP support on my machine. I\'ve been following a tutorial (http://sysbotz.com/articles/amp.htm), which has been fine apart from one step. It says to do the following: # ./configure --prefix=/usr/local/apache --enable-module=rewrite --activate-module=src/modules/php4/libphp4.a When I do, I get \"configure: error: unrecognized option: --activate-module=src/modules/php4/libphp4.a\" Any ideas? If it makes a difference, I\'m trying to install Apache 2.0 (httpd-2.0.45) with PHP 4.3.1. Thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/ Share on other sites More sharing options...
effigy Posted April 14, 2003 Share Posted April 14, 2003 are you trying to install php as a module of apache? honestly, i have not seen the activate module line used for php. i\'ve used this on 8.0 with php 4.3.0 and apache 2.0.43 : apache: # ./configure --with-layout=Apache php: # ./configure --with-apxs2=/path/to/apache2/bin/apxs --with-mysql=/path/to/mysql/bin however, if you do need to use that activate line, double check the path or try using a full path if need be. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1120 Share on other sites More sharing options...
Nylex Posted April 14, 2003 Author Share Posted April 14, 2003 I\'m just following that tutorial, seemed like an easy way to do it. Since I\'ve already started my installation using the info in it, is it ok to use your commands without something going totally wrong? Also, do I do the Apache ./configure first and then the PHP/MySQL? Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1121 Share on other sites More sharing options...
effigy Posted April 14, 2003 Share Posted April 14, 2003 if you have problems with anything you simply recompile again - no problem there. i don\'t think you should have a problem, you are using 8.0 as i am, and your versions are only slightly newer, this tutorial may have been written on an older version. apache and mysql ( order does not matter ) should both be configure / make / make installed before php. if want to keep following the tutorial, just leave out that enable module and see how everything else goes. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1123 Share on other sites More sharing options...
Nylex Posted April 14, 2003 Author Share Posted April 14, 2003 Thanks, I\'ve tried that. I\'m having more problems though. When I do configure with PHP, I\'m getting \"configure: error: Cannot find header files under /usr/local/mysql/bin\". I did do configure, make and make install with both Apache and MySQL before PHP. Help! Thanks again though. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1124 Share on other sites More sharing options...
effigy Posted April 15, 2003 Share Posted April 15, 2003 does /usr/local/mysql exist? on the source compiles you typically end up with mysql really being something like /usr/src/mysql-really-long-dir-name-with-os-and-version, which you then create a symbolic link to by doing... cd /usr/local ln -s /usr/src/mysql-dir-name mysql if that doesn\'t help you out, try using a different directory in your configure line, /usr/local for example. i had this problem roughly a year ago and it was how i found this place and my first post, however i think it has been purged... let me know what happens. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1133 Share on other sites More sharing options...
Nylex Posted April 15, 2003 Author Share Posted April 15, 2003 Lol.. I\'ve just tried it with /usr/local/mysql only and it worked. Make and make install went ok. I added \'AddType application/x-httpd-php .php\' to my httpd.conf, but when I start the server, it won\'t display PHP pages.. wants me to download them. Arghhhh. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1134 Share on other sites More sharing options...
effigy Posted April 15, 2003 Share Posted April 15, 2003 how about LoadModule php4_module modules/libphp4.so Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1135 Share on other sites More sharing options...
Nylex Posted April 15, 2003 Author Share Posted April 15, 2003 Done that and it still won\'t serve PHP pages. I copied the php.ini file to /usr/local/lib/php.ini also. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1136 Share on other sites More sharing options...
effigy Posted April 15, 2003 Share Posted April 15, 2003 you changed the httpd.conf and restarted apache? show me the configure lines you used for php... Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1137 Share on other sites More sharing options...
Nylex Posted April 15, 2003 Author Share Posted April 15, 2003 Yep, several times. Lol. My configure line: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1138 Share on other sites More sharing options...
effigy Posted April 15, 2003 Share Posted April 15, 2003 this is nuts... are you typing in the path to the php file directly? if you have an index.php and expect apache to pick it up, it won\'t until you add to the DirectoryIndex directive... make a file with <?php phpinfo(); ?> and try to access it directly... still asks to save? Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1140 Share on other sites More sharing options...
Nylex Posted April 15, 2003 Author Share Posted April 15, 2003 Weird thing is happening. I\'ve added index.php to the DirectoryIndex line of my httpd.conf and then made a file called index.php with <? phpinfo(); ?> and this works. If I try to type the path to another file, ie. localhost/test.php it still asks me to save. Looks like PHP is working though, so thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1141 Share on other sites More sharing options...
effigy Posted April 15, 2003 Share Posted April 15, 2003 weird... no problem... i\'ll think about the other issue :shock: off to sleep now.. Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1142 Share on other sites More sharing options...
Nylex Posted April 15, 2003 Author Share Posted April 15, 2003 Cool. Goodnight . Quote Link to comment https://forums.phpfreaks.com/topic/348-need-help-installing-apache-and-php-rh-80/#findComment-1143 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.