apache, mysql, php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
high avail
Forum Newbie
Posts: 1
Joined: Thu Jun 26, 2003 3:47 am
Location: philippines

apache, mysql, php

Post by high avail »

I HAVE FOUND THIS WEBPAGE THAT GIVES DETAILED INTRUCTION ON HOW TO INSTALL APACHE,PHP,MYSQL WITH SSL, BELOW ARE ITS INTRUCTIONS. I AM USING REDHAT LINUX 8. MY PROBLEM IS THAT WHEN I AM ABOUT TO INSTALL PHP AFTER I CONFIGURE IT, AFTER IT HAS LISTED A SERIES OF SCRIPTS, ON THE LAST PART IT READS "CONFIGURE:ERROR:UNABLE TO FIND LIBGD.(a|so) ANYWHERE UNDER /USR/LOCAL/GD-2.0.11." SO THINKING THIS IS JUST YOUR NORMAL ERROR READING I PROCEEDED TO TYPE "MAKE" AND THE TERMINAL RETURNED THIS "MAKE:*** NO TARGET SPECIFIED & NO MAKEFILE FOUND. STOP." WHAT DID I DO WRONG OR IS THERE SOMETHING WRONG WITH THE INSTRUCTION GIVEN BELOW. PLEASE HELP I HAVE BEEN WORKING ON THIS FOR OVER A WEEK AND SO FAR I HAVE NOT FOUND ANY SOLUTION.

THE LAST PART, DOWN BELOW IS THE INSTRUCTION ON HOW TO INSTALL PHP4.3.2. AND SOMEHOW I COULD NOT SUCCESSFULLY INSTALL THE BINARIES, I HAVE DELIBERATELY OMMITED THE NEXT INSTRUCTION AFTER INSTALLING THE PHP AS I WANTED TO RESOLVE FIRST THE "MAKE" ISSUE.


# Move to /usr/local
cd /usr/local
# Get the following source:


# Decompress the sources:
tar -xvzf openssl-0.9.7.tar.gz
tar -xzvf mod_ssl-2.8.12-1.3.27.tar.gz
tar -xvzf apache_1.3.27.tar.gz
tar -xvzf php-4.3.2.tar.gz
tar -xvzf mysql-3.23.55.tar.gz
tar -xvzf gd-2.0.11.tar.gz

# Compile the sources:
cd gd-2.0.11
./configure
make

cd ../mysql-3.23.55
./configure
make
make install
scripts/mysql_install_db

adduser mysql
# In the file /etc/login.access add this line:
-:mysql:ALL
# So the user mysql never actualy logs in

# For Slackware:
chown -R mysql.users /usr/local/var
# For Redhat:
chown -R mysql.mysql /usr/local/var

safe_mysqld --user=mysql &

# Hit <Enter>
mysqladmin -u root password 'yourpasswordhere'

cd ../openssl-0.9.7
sh config -fPIC
make
# If you get a "Not enough room for program headers" error here,
# install the LATEST version of binutils.

cd ../mod_ssl-2.8.12-1.3.27
./configure --with-apache=../apache_1.3.27

cd ../apache_1.3.27
SSL_BASE=../openssl-0.9.7 \
./configure --prefix=/usr/local/apache --enable-module=most \
--enable-shared=max --enable-module=ssl --enable-shared=ssl
make

# Note: There is a Redhat bug that complains about mod_auth_dbm.so
# durning the Apache `make` proccess. Adding the configuration
# switch --disable-module=auth_dbm to the end of the ./configure line
# will fix it.

make certificate

# If you presently have a libphp4.so module you should make a backup:
cp /usr/local/apache/libexec/libphp4.so /usr/local/apache/libexec/libphp4.so.was

# If you have a file called /usr/local/apache/conf/httpd.conf already you
# should make a backup:
mv /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.was

# This way you'll get a fresh httpd.conf with all your Apache modules listed
# and 100% loadable.

# Don't worry if your web server is presently running. The httpd.conf file
# is only read by the httpd binary when starting the web server.

make install

cd ../php-4.3.2
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-versioning \
--with-mysql=/usr/local \
--enable-ftp \
--with-gd=/usr/local/gd-2.0.11 \
--enable-bcmath \
--disable-debug \
--enable-memory-limit=yes \
--enable-track-vars
make
make install
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

Please try to write post's without caps lock on....
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

went something wrong with libgd and you just missed the error output?
what happens if you just enter the line
cd /usr/local/gd-2.0.11 && ./configure && make
?
edit: at the shell, not appending it to the file ;)
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

I though GD was part of PHP as of 4.3x, as such you shouldn't have to compile (external) GD support.

http://www.boutell.com/gd/

Regards,
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

umm... you're using red hat 8... why not upgrade ot 9? i'm not sure about 8, but i know for a fact that in 9, php 4.2.2, apache 2.0.something and mysql 11.18 dist 3.23.56 as well as ssl are optional install packages, whcih means during the upgrade you can have redhat put them all in for you, and lock it all down securely so you know it's properly installed and locked down.

te gd in 9 is 1.6 or later. i don't know what version exactly because phpinfo() just tells me it's 1.6 or greater
Post Reply