473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Trouble Installing PHP & MYSQL

I am experiencing problems when installing PHP5/MYSQL.
I did
./configure --with-mysql=/usr/local/mysql --disable-libxml
--with-zlib-dir=/home/frank/zlib-1.2.2

make
make install

The build process did not report any errors.

Now, I cannot find libphp5.so, which I would like to register with
Apache.

Can somebody tell me what went wrong ?

Thanks for your help !

Jul 17 '05 #1
4 1861
I'm also having problems finding the apache module for PHP.
I'm doing the following calls

./configure --prefix=/local/web --enable-module=so
make
make install

Mark

<fr**********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I am experiencing problems when installing PHP5/MYSQL.
I did
./configure --with-mysql=/usr/local/mysql --disable-libxml
--with-zlib-dir=/home/frank/zlib-1.2.2

make
make install

The build process did not report any errors.

Now, I cannot find libphp5.so, which I would like to register with
Apache.

Can somebody tell me what went wrong ?

Thanks for your help !

Jul 17 '05 #2
I found out that one has to build apache from source and then do the
php build against the apache source build, using the --with-apxs2
option.
Like this:
../configure --with-mysql=/usr/local/mysql --disable-libxml
--with-zlib-dir=/home/frank/zlib-1.2.2
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd
After "make" and "make install" the shared lib (eg. libphp5.so) will be
placed in apache's module directory and will be loaded by apache when
doing a LoadModule statement in httpd.conf.
All this said, I still have trouble to build with jpeg enabled... Any
help on this is appreciated.

Jul 17 '05 #3
<fr**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I found out that one has to build apache from source and then do the
php build against the apache source build, using the --with-apxs2
option.
Like this:
./configure --with-mysql=/usr/local/mysql --disable-libxml
--with-zlib-dir=/home/frank/zlib-1.2.2
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd
After "make" and "make install" the shared lib (eg. libphp5.so) will be
placed in apache's module directory and will be loaded by apache when
doing a LoadModule statement in httpd.conf.
All this said, I still have trouble to build with jpeg enabled... Any
help on this is appreciated.


Well did you successfully build GD w/ jepg support? That has to be
working first. The GD readme was always enough for me to get it to compile.
Then recompile PHP and you should be okay.
-Joe
Jul 17 '05 #4
Got it finally working.
That is my configure command line:
../configure --with-mysql=/usr/local/mysql
--with-zlib-dir=/home/frank/zlib-1.2.2
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-jpeg-dir
--with-png-dir
I had to copy the jpeg header files (like jpeglib.h) to
/usr/local/include in order to have it built.

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
1
by: jason | last post by:
I have various small html websites on my windows server 2003 pc, these function quite happily from directories under D:\websites via ports 81, 8081, 8091, 8082 and of course there is the dafault...
1
by: Kerry Shetline | last post by:
I've successfully installed MySQL and the Perl DBI module, but when I try to install DBD::mysql, it keeps failing like this: -------------------- (from the CPAN shell) --------------------- .......
0
by: Decio Alexandre | last post by:
------=_NextPart_000_003E_01C34D83.A02DB370 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi!! I had once installed PHPTriad, a package which...
4
by: 21novembre | last post by:
Hi all, I got a quite strange problem when I tried to setup a database backup shell. I put it this way: "bin/mysqldump --opt --user=xxx --password=xxx DB > DB.bak" However, error 1045 came to...
3
by: Mark Nelson | last post by:
Hi all, I'm installing Apache 2.2, PHP 5.04, and mySQL 4.0.21 on a Solaris 8 machine using prebuilt binaries from sunfreeware.com. My apache install went smoothly - the only thing I'm having...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
1
by: =?iso-8859-1?B?RXJpYyBM83Bleg==?= | last post by:
Hello Guys! I just installed MySQL Community Server 5.0 onto my computer, which is running Red Hat 8.0 and it works fine, but I was trying to install the MySQL GUI Tools (Query Browser, MySQL...
2
by: sbettadpur | last post by:
Hiiii > > I have installed mysql , Active perl 5.10 successfully but > Template-GD: ppm install Template-GD > PerlMagick: ppm install PerlMagick > SOAP-Lite: ppm install SOAP-Lite > ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.