Apache 2.0.53 / SSL, PHP 5.0.3, MySQL 4.1.10 on Linux

MyEgo.cz

home foto blogy mywindows.cz kontakt

Apache 2.0.53 / SSL, PHP 5.0.3, MySQL 4.1.10 on Linux

Linux 04.02.05

Article moved to: hulan.info.


Komentáře

  1. 1 Seth Buntin 18.10.04, 04:10:31
    FB

    The new installtaion guide for the MySQL gamma doesn't work correctly. I get a folder /usr/local/mysql-test instead of /usr/local/mysql even when I declare the prefix to be /usr/local/mysql. I thought I might let you know. Keep up the wonderful work...

  2. 2 Radek Hulán 18.10.04, 05:10:14
    FB

    [1] Seth, it works just fine for me, properly installed in /usr/local/mysql, did you have any version of MySQL installed before? Binary form from your distro? If so, have you removed it first? What distro are you running?

  3. 3 pop 18.10.04, 11:10:57
    FB

    [1] I have the same problem but i ran MySQL release 4.0.21
    How can i see if i already had another realese installed? and if so how do i remove it/correxct it?

  4. 4 Radek Hulán 19.10.04, 12:10:21
    FB

    [3] execute this to see if package is installed: rpm -qa | grep mysql ... that will show you full name and version of package installed, next : execute: rpm -e full-package-name and finally, execute: rpm --rebuilddb ...

  5. 5 Seth Buntin 19.10.04, 05:10:15
    FB

    I have installed (by the guide above) MySQL and still get the same problem. If I install the 4.0.21 I don't (but 4.0.21 doesn't accept the charset declaration). The server was blank (accept for the standard install of gnome, editors, and development tools. BTW I am using Fedora Core 2). I don't know where to go from here. I guess I will just use 4.0.21.

  6. 6 Seth Buntin 19.10.04, 05:10:53
    FB

    How do I clear the information from the MySQL-gamma? I deleted the folder /usr/local/mysql-test/ (which was created from above) and then installed the 4.0.21 version and now that gives me the /usr/local/mysql-test folder. I tried all of this on a brand new (fresh) machine.

    I don't know what to do now.

  7. 7 pop 19.10.04, 10:10:29
    FB

    i am using feodora core 2 to... i didnt find any with rpm -qa | grep mysql... can i just delete the folders and start all over?

  8. 8 Radek Hulán 19.10.04, 10:10:57
    FB

    [7] try rpmi, or use Fedora graphical "RPM package tool / Program Installation Tool", called "YaST" under SUSE Linux, to remove any MYSQL, Apache, PHP you may have...

  9. 9 Radek Hulán 19.10.04, 04:10:03
    FB

    [7] you may also try these: /sbin/chkconfig --del httpd and /sbin/chkconfig --del mysql on Fedora Core 2

  10. 10 Emanuele Bergamini 19.10.04, 05:10:04
    FB

    [1] I got the same error. But I solved it. :)

    The problem is caused by an error in configure parameter for mysql. You must use --prefix=/usr/local/mysql and NOT --with-prefix=usr/local/mysql. (in 4.1.6gamma) the latter is ignored, and mysql is installed in /usr/local.

    If you want to delete the wrong installation, you have to delete manually any mysql-related files into every folder in /usr/local.
    (you can do a "good" installation and then see what files are created inside /usr/local/mysql, and then delete allo the file with the same name relative to /usr/local.

  11. 11 Radek Hulán 19.10.04, 05:10:23
    FB

    [10] oh, you're right, my small typo. Fixed now. Thanks!!

  12. 12 Seth Buntin 19.10.04, 09:10:17
    FB

    I got everything to work correctly except the libjpeg source package. It will not create the a|so. At least that is what the php build tells me. I just took it out. Is that important?

  13. 13 Radek Hulán 19.10.04, 09:10:27
    FB

    [12] guess you haven't compiled it correctly, doesn't really matter if you are not using scripts like Coppermine Photo Gallery, which require GD2 with JPEG support

  14. 14 Seth Buntin 19.10.04, 09:10:32
    FB

    [13] I did just as explained above...

  15. 15 Radek Hulán 19.10.04, 09:10:39
    FB

    [14] I double-tried to compile it again, with no problem.. Guess some distro, tool-related, problem.

  16. 16 Seth Buntin 26.10.04, 05:10:32
    FB

    I am still getting this error:

    configure: error: libjpeg.(a|so) not found.
    I don't know what to do.

  17. 17 Andrew J. Leer 26.10.04, 07:10:47
    FB

    When compiling mysql4.1 Gamma in Debian I always get this error, when running ./config What can I do about this?

    checking for tgetent in -lncurses... no
    checking for tgetent in -lcurses... no
    checking for tgetent in -ltermcap... no
    checking for termcap functions library... configure: error: No curses/termcap library found

    What does this mean and how can I get around it?

  18. 18 Andrew J. Leer 26.10.04, 09:10:03
    FB

    Okay I figured it out...
    I went on IRC and some guy told me to install libncurses-dev with apt-get. This cleared up my problem on Debian, thanks! And do post this for all the Debian users who might be wondering about this, thanks!

  19. 19 Andrew J. Leer 26.10.04, 10:10:54
    FB

    Also when installing Apache2 on Debian I found that I need to apt-get install zlib1g-dev because they don't call the zlib package the same thing.

  20. 20 Dinh Quang Dan 27.10.04, 05:10:45
    FB

    [16] just do one of the following commands, the error will be tripped.

    #ln -s /usr/local/src/jpeg-6b/libjpeg.a /usr/lib/libjpeg.a
    or
    #cp /usr/local/src/jpeg-6b/libjpeg.a /usr/lib

    refer to: /etc/ld.so.conf

  21. 21 Dinh Quang Dan 30.10.04, 06:10:06
    FB

    Dear all,

    When compiling php-5.0.2 in RH9, Kernel 2.4.20-8 with --with-gd , the cofiguration is passed but i always get this error when running make command

    /usr/local/src/php-5.0.2/ext/gd/libgd/gd_jpeg.c:38:21: jpeglib.h: No such file o
    r directory
    /usr/local/src/php-5.0.2/ext/gd/libgd/gd_jpeg.c:39:20: jerror.h: No such file or
    directory
    /usr/local/src/php-5.0.2/ext/gd/libgd/gd_jpeg.c:49: parse error before "cinfo"
    ...
    /usr/local/src/php-5.0.2/ext/gd/libgd/gd_jpeg.c:451: confused by earlier errors,
    bailing out
    make: *** [ext/gd/libgd/gd_jpeg.lo] Error 1

    i have already built jpeg-6b successfully, but can not build gd2. The errors are the same above while compiling gd2, i copied two library files to /usr/local/src/php-5.0.2/ext/gd/libgd/
    or change the Makefile

    GDLIB_CFLAGS = -I/usr/local/src/php-5.0.2/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG -I/usr/local/src/jpeg-6

    But nothing done, if i compile without gd support, it works fine...

    anyone built successfully and help me???

    Thanks in advance,
    Dan.

  22. 22 bloodline 07.11.04, 03:11:48
    FB

    Hello.
    I think that This document is really necessary for Apache2 and PHP 5 and MySQL 4.1 install.

    please agree that my translation to korean and upload to Korean web site with this site URL and Writer.

    anyway. Thank you for support good information like this document.

  23. 23 Radek Hulán 07.11.04, 03:11:50
    FB

    [22] of course, go ahead, with proper credit given :-)

  24. 24 Christopher 08.11.04, 03:11:16
    FB

    Everything works fine, but the installation of php. It says it doesn't find the file libphp5.so
    Here's the error message:
    Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:
    Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
    The file is not in the entire system, for I have made a
    locate libphp5.so
    and nothing comes up.
    In /usr/local/apache2/modules/ there are three files:
    httpd.exp libphp5.a libphp5.la
    but the libphp5 is not.
    I would appreciate if you give me a clue here.
    Thanks

  25. 25 Steven 12.11.04, 04:11:59
    FB

    Thank you for putting this document on the web. I find it extremely helpful. After I make and then make install apache I see this:

    bin]# httpd -l
    Compiled-in modules:
    http_core.c
    mod_so.c
    suexec: enabled; valid wrapper /usr/sbin/suexec
    bin]#

    Which is not what I expect. I was expecting a long-ish list of the installed modules. Does anyone have any advice?

  26. 26 holdenurg 25.11.04, 06:11:54
    FB

    Great site!... Kudos!!!
    Installed on Suse9.1 without installing web server. Basic KDE default installation. Compiled as shown here and entire install is working. Only change for Suse9.1 is default home changed from /srv/www/htdocs to suggested /home/www/htdocs. Good documentation through entire process without any errors until Nusphere. Missing one library and found on Suse9.1 disk 2 & 3 ok.

    Good documentation and many thank-you's...!

    Has anyone installed Mambo on this setup?

    Regards

    Herb

  27. 27 Herb 29.11.04, 01:11:27
    FB

    Hello again...
    Tried this on Suse 9.2 Pro but not working. There is a conflict with one of the newer libraries. If you go through and run this setup it will kill the KDE desktop. (ack - forced back to command line.) I went back to suse 9.1 and resetup the server. If anyone gets on with the 9.2 version and walks through their setup, please let us know.... It is a simple fix I think as there are newer libraries installed by Suse9.2 and some of these here do not have to be installed. I am continuing to work on this. The 9.2 has the new KDE 3.3...

    Thank you again Radek for your work here...

    Herb

  28. 28 Radek Hulán 29.11.04, 01:11:44
    FB

    [27] Hi Herb, I am running SUSE 9.1 with KDE 3.3.0 as well, and custom-built kernel 2.6.9.1-smp. And no problem at all. I am not upgrading to SUSE 9.2 any soon, as I already have the latest components, but, if you find the reason for the problem you are describing, please let me know, I'll be happy to publish that.

  29. 29 Nigel Heynes 02.12.04, 05:12:42
    FB

    I just installed using your instructions on fedora Core 3..(I used mysql 4.0.21 for compatibility)

    The only 2 issues I got was I mistakenly thought some of the PHP prerequisite external libraries were installed ok.... They are included in Fedora core but not in the right places it would seem for the php configure. I installed all the libraries as per instruction and this got past those errors.

    I then had one other issue with the php configure, jpeglib.h missing as per Ding Quang Dan.... this I resolved by installing the development version of the jpeg-lib.

    All works great now... thanks for the help

  30. 30 Radek Hulán 03.12.04, 01:12:01
    FB

    [29] Nigel, I have migrated today from SUSE 9.1 to Fedora Core 3 and had no problems compiling all stuff as described, ie. without any mods to scripts

  31. 31 ddsurf 08.12.04, 05:12:25
    FB

    I am on SUse 9.2 found a Library error on libxml2.6.7 required if you install utilities on top of this it conflicts. I installed then repaired with update and poof had new libxml2 and all installed fine from there on.
    However not knowing Linux well when i preview a page i get source not results of php or html pages.
    dave

  32. 32 alert 25.01.05, 09:01:34
    FB

    This is one of a GR8 Doclet i ever seen my life.
    Thanks for your help...

  33. 33 Tazikas 30.01.05, 01:01:58
    FB

    I had problems with running Apache+ssl. The problem was that You should use Listen 0.0.0.0:443 instead of Listen 443, as stated in this how-to. That solved the problem. Hope that helps someone.

  34. 34 komaii 04.02.05, 05:02:00
    FB

    excellent howto. compiled on SuSE9.2 without any errors. great work :o)

  35. 35 MC 11.02.05, 09:02:04
    FB

    This is a great howto. Everything went fine for me on FC2, except that when I try and open localhost/db/ I get the following error:

    Fatal error: Call to undefined function PMA_reloadNavigation() in /home/www/phpMyAdmin-2.6.1/header.inc.php on line 132

    Any thoughts?

    Thanks!

  36. 36 Nitin 16.02.05, 05:02:11
    FB

    Hey Radek,
    I am wondering how come ur mysql4.1.9 complied with --with-charset=utf8 option as there is a reported bug on mysql site.
    http://bugs.mysql.com/bug.php?id=7893... (Primary)
    http://bugs.mysql.com/bug.php?id=7373...
    I hope u wont mind it. I just want to apprise u of problems with mysql 4.1.9. I dont undertsand your language so I dont know what I need to write in text boxes below.
    regards,
    Nitin

  37. 37 Radek Hulán 16.02.05, 05:02:31
    FB

    [36] Hi, I'm currently using MySQL 4.1.8, and saw new 4.1.9 to be released, so just replaced the number in this tutorial, without recompilation. Thanks for the insight!

  38. 38 Choc 23.02.05, 03:02:18
    FB

    being a wind...(sorry I wont swear!) man myself, recently getting hold of a machine to run linux was awsome and im loving every moment of it!!

    Thank you for making this awsome tutorial/walk-through!

    Choc of eWales.info

  39. 39 James 27.03.05, 11:03:40
    FB

    Hey there, wonderfull guide! Everything has gone perfectly up until this point where I try to issue:

    /etc/init.d/web start

    I get this error:

    /etc/init.d/web start
    [Sun Mar 27 17:14:59 2005] [warn] module php5_module is already loaded, skipping
    httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    /usr/local/apache2/bin/apachectl: line 78: 22090 Illegal instruction $HTTPD -k $ARGV
    I've tried stopping, and restarting... stoping yields this:
    /etc/init.d/web stop
    [Sun Mar 27 18:43:39 2005] [warn] module php5_module is already loaded, skipping
    httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    httpd (no pid file) not running
    No mysqld pid file found. Looked for /usr/local/mysql/var/jupiter.pid.
    restarting yields this:

    /etc/init.d/web restart
    [Sun Mar 27 18:44:14 2005] [warn] module php5_module is already loaded, skipping
    httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    httpd not running, trying to start
    /usr/local/apache2/bin/apachectl: line 78: 22187 Illegal instruction $HTTPD -k $ARGV
    No mysqld pid file found. Looked for /usr/local/mysql/var/jupiter.pid.

    Mainly, my problem is with apache... it doesn't seem to want to start at all. Heres my apachectl. The top line is line 78.
    case $ARGV in
    start|stop|restart|graceful)
    $HTTPD -k $ARGV
    ERROR=$?
    ;;
    startssl|sslstart|start-SSL)
    $HTTPD -k start -DSSL
    ERROR=$?
    ;;
    configtest)
    $HTTPD -t
    ERROR=$?
    ;;
    status)
    $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
    ;;
    fullstatus)
    $LYNX $STATUSURL
    ;;
    *)
    $HTTPD $ARGV
    ERROR=$?
    esac

    exit $ERROR

    Anyone have any idea what's wrong? Fedora Core 3, brand new install, dual pentium iii 500, 1gb ecc ram, wd hard disk (new).

  40. 40 Radek Hulán 27.03.05, 11:03:59
    FB

    [39] I think you have twice LoadModule php5_module modules/libphp5.so in your httpd.conf, as for the rest, try specify localhost as a ServerName, just for debugging..

  41. 41 James 28.03.05, 05:03:50
    FB

    rADo, i did have LoadModule php5... in httpd.conf twice. I removed one of the lines and no longer get an error about php already loaded. However, when I try to start apache, even directly, i still get an illigal instruction.... perhaps I did something wrong when compiling? heres the error:

    /usr/local/apache2/bin/httpd -k start
    Illegal instruction

    and gcc version:
    gcc --ver
    Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
    Thread model: posix
    gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

    and my CFLAGS:
    export CFLAGS="-march=pentium3 -mfpmath=sse -msse2 -O2 -pipe -s -fomit-frame-pointer"

    cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 7
    model name : Pentium III (Katmai)
    stepping : 3
    cpu MHz : 501.229
    cache size : 512 KB
    ...

    The only other abnormality during installation was that after compiling php, i issued 'make install', i would get another illigal instruction. A search on google only revealed one result which mentioned that my error was a bug, and to, get this, reboot the system, untar php again, and recompile. to my amazement, it worked, and turned out to be some error with gcc. i have no idea how it worked, or what it did, but perhaps these two problems are related? heres the lines from the php error if they help, and thanx again for your attention.

    [root@jupiter ~]#
    [root@jupiter ~]# cd /usr/local/src/php-5.0.3
    [root@jupiter php-5.0.3]#
    [root@jupiter php-5.0.3]# make install
    Installing PHP SAPI module: apache2handler
    /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
    /usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
    cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
    cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
    libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-5.0.3/libs'
    chmod 755 /usr/local/apache2/modules/libphp5.so
    [activating module `php5' in /usr/local/apache2/conf/httpd.conf]
    Installing PHP CLI binary: /usr/local/bin/
    Installing PHP CLI man page: /usr/local/man/man1/
    Installing PEAR environment: /usr/local/lib/php/
    make[1]: *** [install-pear-installer] Illegal instruction
    make: *** [install-pear] Error 2
    [root@jupiter php-5.0.3]# rm -R *
    rm: remove regular file `acconfig.h'? y
    rm: remove regular file `acconfig.h.in'?
    [root@jupiter php-5.0.3]#

  42. 42 Radek Hulán 28.03.05, 02:03:40
    FB

    [41] try fine-tuning (=simplify) your EXPORT CFLAGS options, and update your Fedora Core 3 to the latest version of gcc, here's my own yum.conf: http://myego.cz/item/fedora-core-3-pro-lamy-prvotni-instalace...

  43. 43 komaii 25.04.05, 10:04:03
    FB

    Hi Radek,

    would it be okay for you if i translate this documentation to german? If yes let me know.

    thx,
    komaii

  44. 44 Radek Hulán 25.04.05, 10:04:51
    FB

    [43] I'll be glad, just give me the credit in your translation, and link to this (original) article. Thanks :-)

  45. 45 Flatron 18.06.05, 11:06:54
    FB

    I did everything as it wrote above, but I get this error:
    "[root@Flatroncomp httpd-2.0.54]# /usr/local/apache2/bin/apachectl start
    Syntax error on line 839 of /usr/local/apache2/conf/httpd.conf:
    Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied"
    That line is: "LoadModule php5_module modules/libphp5.so" I checked, the file is there.

  46. 46 melkor 30.06.05, 11:06:45
    FB

    [21]

    Install libjpeg-devel

  47. 47 Marko 06.07.05, 01:07:21
    FB

    THIS IS GODDEST TUTORIAL!

  48. 48 deva 17.07.05, 10:07:44
    FB

    Fantastic document. One of the gr8's

  49. 49 komaii 20.07.05, 10:07:22
    FB

    i transtaled this in german with credit from readek.
    here the link:
    http://www.himml.com/komaii/apache-2-0-54-ssl-php-5-0-4-mysql-5.04beta-on-SuSE.html...

  50. 50 MagicTux 19.10.05, 03:10:58
    FB

    Execllent howto for LAMP! I've been setting up a new server with PHP 5.0.5, MySQL 4.1.14, Apache 2.0.55 running on Fedora Core3. Your guide really helped. Over the next couple weeks I'll try and submit some possible updates to even expand on your GR8 work.

  51. 51 Etienne 10.11.05, 11:11:35
    FB

    Hi, first of all wonderfull 'howto' and all going fine, except the install of Nusphere, there I get:

    Configuring for:
    PHP Api Version: 20031224
    Zend Module Api No: 20041030
    Zend Extension Api No: 220040412
    /usr/local/bin/phpize: line 104: aclocal: command not found
    ./deferphpize: line 22: aclocal: command not found
    left default
    ./deferphpize: line 54: ./configure: no such file or directory
    make:*** No targets specified and no makefile found. Stop.

    Can anybody help me with figuring out what I am missing???

  52. 52 Luis Gustavo - BRASIL 01.12.05, 10:12:17
    FB

    Everything works fine, but the installation of php. It says it doesn't find the file libphp5.so
    Here's the error message:
    Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:
    Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
    The file is not in the entire system, for I have made a
    locate libphp5.so
    and nothing comes up.
    In /usr/local/apache2/modules/ there are three files:
    httpd.exp libphp5.a libphp5.la
    but the libphp5 is not.
    I would appreciate if you give me a clue here.
    Thanks