thegreekrow
Trekkie

Offline
Posts: 16
|
 |
« on: April 19, 2006, 03:25:24 PM » |
|
I am moving from my POS host to a dedicated Lunarpages server (yay!), but I just found out that i am running the CGI version of php 4: []# php --version PHP 4.3.9 (cgi) (built: Nov 10 2005 20:38:14) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
I am certain someone has upgraded to PHP5 (module), and if so, I was wondering if they could provide some tips before I go through the motions. I looked through Webmin (not familiar with that interface yet) and there is an option Servers > Apache > Re-Configure Known Modules to enable mod_php5. What does that do?!
To the LP employees: how much would it cost me for you guys to do it?
|
|
|
|
|
Logged
|
|
|
|
thegreekrow
Trekkie

Offline
Posts: 16
|
 |
« Reply #1 on: April 19, 2006, 10:35:29 PM » |
|
Well, since no one answered, here is the run down:
I am using the php4 base configuration provided by LP, with some extra addons for php5:
./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd=shared --enable-gd-native-ttf --without-gdbm --with-gettext --with-ncurses=shared --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-xml --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-xmlrpc=shared --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mbstring=shared --enable-mbstr-enc-trans --enable-mbregex --with-mime-magic=/usr/share/file/magic.mime --with-apxs2=/usr/sbin/apxs --with-mysqli
download php-5.xxx.tar.gz and unzip
install the following packages: # yum install libjpeg-devel # yum install libpng-devel # yum install freetype-devel # yum install mysql-devel # yum install postgresql-devel # yum install pspell-devel # yum install net-snmp-devel # yum install unixODBC-devel
run the configure command above. then make/make install.
If you think i did something stupid, please reply here, since I am subscribed to this thread.
Note that this configure lacks two things i want that i will take care of later: mcrypt and imap. yum install imap-devel turned up nothing.
|
|
|
|
|
Logged
|
|
|
|
|
|
thegreekrow
Trekkie

Offline
Posts: 16
|
 |
« Reply #3 on: April 20, 2006, 09:49:11 AM » |
|
Yeah, I didnt install mcrypt because I was too lazy to do the install right now. I just need my server up and running!
As for imap, I tried using the flag --with-imap=/usr which failed. I then tried to get the imap -devel packages using yum, but that failed, so I figured I would research it more later. Any input on why the imap wouldnt work out of hte box?
|
|
|
|
|
Logged
|
|
|
|
Eric B.
Newbie
Offline
Posts: 5
|
 |
« Reply #4 on: May 11, 2006, 11:35:37 PM » |
|
This is exactly what I'm trying to do, so I'm quite pleased to find this posting. As it turns out, I had to make a few tweaks to some paths for my server, and install pcre, but that was it to get the config working.
However, the make is failing at link time with this error:
grep: /usr/lib/mysql/libz.la: No such file or directory /bin/sed: can't read /usr/lib/mysql/libz.la: No such file or directory libtool: link: `/usr/lib/mysql/libz.la' is not a valid libtool archive make: *** [libphp5.la] Error 1
Can anyone give me some pointers here? Do I have a different mysql install? I did the yum install mysql-devel, so I would assume things are set up the way the example above shows, but who knows?
thanks
-e
|
|
|
|
|
Logged
|
|
|
|
thegreekrow
Trekkie

Offline
Posts: 16
|
 |
« Reply #5 on: May 12, 2006, 05:10:40 PM » |
|
Dumb question: is the file there? =)
|
|
|
|
|
Logged
|
|
|
|
Eric B.
Newbie
Offline
Posts: 5
|
 |
« Reply #6 on: May 13, 2006, 10:14:54 AM » |
|
Dumb question: is the file there? =)
Nope, it sure isn't. -e
|
|
|
|
|
Logged
|
|
|
|
thegreekrow
Trekkie

Offline
Posts: 16
|
 |
« Reply #7 on: May 13, 2006, 11:45:00 AM » |
|
yeah, i dont know. sorry... I would recommend trying to run the entire process without mysql, just to make sure it isnt something else causing the trouble. if that works, then ... yeah. thank god for google? =)
|
|
|
|
|
Logged
|
|
|
|
Eric B.
Newbie
Offline
Posts: 5
|
 |
« Reply #8 on: May 15, 2006, 10:40:29 AM » |
|
The slim bit of info google's given me is to try and build mysql on the machine first, instead of getting it via yum. I suppose I'll give it a go, when I get the time.
|
|
|
|
|
Logged
|
|
|
|
thegreekrow
Trekkie

Offline
Posts: 16
|
 |
« Reply #9 on: May 15, 2006, 11:36:27 AM » |
|
Wait... you dont have mysql already on there? You are just getting the libraries from yum. Check your webmin/cpanel to make sure mysql is installed and running, then try again. That might be the cause. If not, get the mysql src and make install it.
|
|
|
|
|
Logged
|
|
|
|
Eric B.
Newbie
Offline
Posts: 5
|
 |
« Reply #10 on: May 15, 2006, 12:59:21 PM » |
|
Wait... you dont have mysql already on there? You are just getting the libraries from yum. Check your webmin/cpanel to make sure mysql is installed and running, then try again. That might be the cause. If not, get the mysql src and make install it.
MySQL was on there when lunarpages set it up. I used yum (as in the example above) to make sure it was up to date. I wonder if that could have tweaked something. -e
|
|
|
|
|
Logged
|
|
|
|
|