eech55,
follow these steps,
first remove apache.
find / -name apache
rm -rf /usr/local/apache - or wherever you have it installed. then follow this.
download apache 1.3
download mysql 4.0
download php
firs install mysql
./configure --prefix=/usr/local/mysql
make
make install
create a users called mysql in "sysinstall"
go back into the mysql install folder ( the one you untared) and find the scripts folder or install scripts
shell> scripts/mysql_install_db
chown -R root /usr/local/mysql/
chgrp -R mysql /usr/local/mysql/
chown -R mysql /usr/local/mysql/
then run
/usr/local/mysql/bin/mysqld_safe &
mysql should be started.
/usr/local/mysql/bin/mysqladmin -u root -h grandpuba.epix.net password 'new-password'
/usr/local/mysql/bin/mysql -u root -p
on to apache and php.. download them both untar then in your /home/folder so they are all there.
apache_1.3.28 (or newer)
./configure --prefix=/usr/local/apache
php-4.3.3 (or newer)
./configure --with-mysql=/usr/local/mysql/ --with-gettext=/usr/local/bin/gettext --enable-ftp --with-xml --with-apache=../apache_1.3.28 --enable-track-vars --with-png
make; make install
cp php.ini-dist /usr/local/lib/php.ini
-- php install complete --
-- apache install --
./configure --prefix=/usr/local/apache --enable-module=rewrite --activate-module=src/modules/php4/libphp4.a
make; make install
-- apache install complete --
-- apache install complete --
-- apache config edit --
vi /usr/local/apache/conf/httpd.conf
add these 2 lines to config
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
save and exit
-- apache config edit complete --
-- test system --
to start apache: /usr/local/apache/bin/apachectl
to test php:
vi /usr/local/apache/htdocs/index.php
insert this:
save and exit
test -
http://yourhost/index.php
-------------------------
you will have to edit somethings out like gettext. or you can use your ports with
make install clean under gettext.