Apache 2.0.53 / SSL, PHP 5.0.3, MySQL 4.1.10 on Linux
Article moved to: hulan.info.
Komentáře:
Přidejte nový komentář:
Pro přidání komentáře a hlasování se musíte nejdříve zaregistrovat nebo přihlásit.
Article moved to: hulan.info.
Pro přidání komentáře a hlasování se musíte nejdříve zaregistrovat nebo přihlásit.
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...
odpověz na tento komentář- na komentář reagoval Radek Hulán — #2
- na komentář reagoval pop — #3
- na komentář reagoval Emanuele Bergamini — #10
- na komentář reagoval James — #41
karma: 0 Monday, 18.10.04, 16:31:44odpovídá na Seth Buntin — #1 Seth, it works just fine for me, properly installed in
odpověz na tento komentář karma: 10 Monday, 18.10.04, 17:14:27/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?odpovídá na Seth Buntin — #1 I have the same problem but i ran MySQL release 4.0.21
odpověz na tento komentářHow can i see if i already had another realese installed? and if so how do i remove it/correxct it?
- na komentář reagoval Radek Hulán — #4
karma: 0 Monday, 18.10.04, 23:57:33odpovídá na pop — #3 execute this to see if package is installed:
odpověz na tento komentář karma: 10 Tuesday, 19.10.04, 00:21:30rpm -qa | grep mysql... that will show you full name and version of package installed, next : execute:rpm -e full-package-nameand finally, execute:rpm --rebuilddb...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.
odpověz na tento komentář karma: 0 Tuesday, 19.10.04, 05:15:45How 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.
odpověz na tento komentář karma: 0 Tuesday, 19.10.04, 05:53:09i 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?
odpověz na tento komentář- na komentář reagoval Radek Hulán — #8
- na komentář reagoval Radek Hulán — #9
karma: 0 Tuesday, 19.10.04, 10:29:55odpovídá na pop — #7 try
odpověz na tento komentář karma: 10 Tuesday, 19.10.04, 10:57:17rpmi, or use Fedora graphical "RPM package tool / Program Installation Tool", called "YaST" under SUSE Linux, to remove any MYSQL, Apache, PHP you may have...odpovídá na pop — #7 you may also try these:
odpověz na tento komentář karma: 10 Tuesday, 19.10.04, 16:03:08/sbin/chkconfig --del httpdand/sbin/chkconfig --del mysqlon Fedora Core 2odpovídá na Seth Buntin — #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/mysqland 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.
odpověz na tento komentář(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.
- na komentář reagoval Radek Hulán — #11
karma: 0 Tuesday, 19.10.04, 17:04:37odpovídá na Emanuele Bergamini — #10 oh, you're right, my small typo. Fixed now. Thanks!!
odpověz na tento komentář karma: 10 Tuesday, 19.10.04, 17:23:46I 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?
odpověz na tento komentář- na komentář reagoval Radek Hulán — #13
karma: 0 Tuesday, 19.10.04, 21:17:43odpovídá na Seth Buntin — #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
odpověz na tento komentář- na komentář reagoval Seth Buntin — #14
karma: 10 Tuesday, 19.10.04, 21:27:33odpovídá na Radek Hulán — #13 I did just as explained above...
odpověz na tento komentář- na komentář reagoval Radek Hulán — #15
karma: 0 Tuesday, 19.10.04, 21:32:21odpovídá na Seth Buntin — #14 I double-tried to compile it again, with no problem.. Guess some distro, tool-related, problem.
odpověz na tento komentář karma: 10 Tuesday, 19.10.04, 21:39:59I am still getting this error:
configure: error: libjpeg.(a|so) not found.
odpověz na tento komentářI don't know what to do.
- na komentář reagoval Dinh Quang Dan — #20
karma: 0 Tuesday, 26.10.04, 05:32:17When 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?
odpověz na tento komentář karma: 0 Tuesday, 26.10.04, 19:47:30Okay I figured it out...
odpověz na tento komentář karma: 0 Tuesday, 26.10.04, 21:03:11I 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!
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.
odpověz na tento komentář karma: 0 Tuesday, 26.10.04, 22:54:27odpovídá na Seth Buntin — #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.aor
#cp /usr/local/src/jpeg-6b/libjpeg.a /usr/librefer to:
odpověz na tento komentář karma: 0 Wednesday, 27.10.04, 05:45:00/etc/ld.so.confDear 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,
odpověz na tento komentářDan.
- na komentář reagoval melkor — #46
karma: 0 Saturday, 30.10.04, 06:06:29Hello.
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.
odpověz na tento komentář- na komentář reagoval Radek Hulán — #23
karma: 0 Sunday, 07.11.04, 15:48:29odpovídá na bloodline — #22 of course, go ahead, with proper credit given :-)
odpověz na tento komentář karma: 10 Sunday, 07.11.04, 15:50:16Everything works fine, but the installation of php. It says it doesn't find the file libphp5.so
odpověz na tento komentář karma: 0 Monday, 08.11.04, 03:16:54Here'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
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?
odpověz na tento komentář karma: 0 Friday, 12.11.04, 16:59:21Great 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
odpověz na tento komentář karma: 0 Thursday, 25.11.04, 06:54:23Hello 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
odpověz na tento komentář- na komentář reagoval Radek Hulán — #28
karma: 0 Monday, 29.11.04, 01:27:58odpovídá na Herb — #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.
odpověz na tento komentář karma: 10 Monday, 29.11.04, 01:44:47I 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
odpověz na tento komentář- na komentář reagoval Radek Hulán — #30
karma: 0 Thursday, 02.12.04, 17:42:51odpovídá na Nigel Heynes — #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
odpověz na tento komentář karma: 10 Friday, 03.12.04, 01:01:46I 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.
odpověz na tento komentář karma: 0 Wednesday, 08.12.04, 17:25:11However not knowing Linux well when i preview a page i get source not results of php or html pages.
dave
This is one of a GR8 Doclet i ever seen my life.
odpověz na tento komentář karma: 0 Tuesday, 25.01.05, 09:34:20Thanks for your help...
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.
odpověz na tento komentář karma: 0 Sunday, 30.01.05, 01:58:30excellent howto. compiled on SuSE9.2 without any errors. great work :o)
odpověz na tento komentář karma: 0 Friday, 04.02.05, 17:00:44This 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!
odpověz na tento komentář karma: 0 Friday, 11.02.05, 21:04:50Hey Radek,
odpověz na tento komentář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
- na komentář reagoval Radek Hulán — #37
karma: 0 Wednesday, 16.02.05, 17:11:35odpovídá na Nitin — #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!
odpověz na tento komentář karma: 10 Wednesday, 16.02.05, 17:31:02being 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
odpověz na tento komentář karma: 0 Wednesday, 23.02.05, 03:18:32Hey 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).
odpověz na tento komentář- na komentář reagoval Radek Hulán — #40
karma: 0 Sunday, 27.03.05, 23:40:19odpovídá na James — #39 I think you have twice
odpověz na tento komentář karma: 10 Sunday, 27.03.05, 23:59:25LoadModule php5_module modules/libphp5.soin yourhttpd.conf, as for the rest, try specifylocalhostas a ServerName, just for debugging..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 ~]#
odpověz na tento komentář[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/
makeodpovídá na Seth Buntin — #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]#
- na komentář reagoval Radek Hulán — #42
karma: 0 Monday, 28.03.05, 05:50:04odpovídá na James — #41 try fine-tuning (=simplify) your
odpověz na tento komentář karma: 10 Monday, 28.03.05, 14:40:23EXPORT CFLAGSoptions, and update your Fedora Core 3 to the latest version of gcc, here's my ownyum.conf: http://myego.cz/item/fedora-core-3-pro-lamy-prvotni-instalace...Hi Radek,
would it be okay for you if i translate this documentation to german? If yes let me know.
thx,
odpověz na tento komentářkomaii
- na komentář reagoval Radek Hulán — #44
karma: 0 Monday, 25.04.05, 10:03:37odpovídá na komaii — #43 I'll be glad, just give me the credit in your translation, and link to this (original) article. Thanks :-)
odpověz na tento komentář karma: 10 Monday, 25.04.05, 10:51:47I did everything as it wrote above, but I get this error:
odpověz na tento komentář karma: 0 Saturday, 18.06.05, 23:54:57"[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.
odpovídá na Dinh Quang Dan — #21
Install libjpeg-devel
odpověz na tento komentář karma: 0 Thursday, 30.06.05, 23:45:39THIS IS GODDEST TUTORIAL!
odpověz na tento komentář karma: 0 Wednesday, 06.07.05, 13:21:58Fantastic document. One of the gr8's
odpověz na tento komentář karma: 0 Sunday, 17.07.05, 10:44:47i transtaled this in german with credit from readek.
odpověz na tento komentář karma: 0 Wednesday, 20.07.05, 10:22:32here the link:
http://www.himml.com/komaii/apache-2-0-54-ssl-php-5-0-4-mysql-5.04beta-on-SuSE.html...
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.
odpověz na tento komentář karma: 0 Wednesday, 19.10.05, 15:58:09Hi, 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???
odpověz na tento komentář karma: 0 Thursday, 10.11.05, 11:35:22Everything works fine, but the installation of php. It says it doesn't find the file libphp5.so
odpověz na tento komentář karma: 0 Thursday, 01.12.05, 22:17:37Here'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