Author |
Message |
10/10/2002 18:00:01
|
Anonymous
|
I have never done anything with php before and really have done little on the net in the last 4 years. I multiple years back was pretty involved and actually put the first live cam online from the state of Missouri when there where less than 100 live cams listed in search engines on the entire Internet.
At our 35th High School reunion I was elected chairman of our reunion committee and have now created a class web site and want to use the Advanced Poll 2.0.2 on it. I have never done anything with php so am sort of at a loss.
I am currently using RedHat 7.3 and Apache and MySql to run a class database and web site.
My question is can someone tell me exactly what RPM's I need to install to make the Advanced Poll 2.0.2 work? This will be the only php application that I will run on this server. Due to the fact that this is the LAST web site I will ever build I only want to install absolute min that is required to make this script run.
I know there is the php-4.1-2.7.src.rpm but think this will install much more than I really need to make the Advanced Poll 2.0.2 work and due to the fact that I will not be using any other php applications it seems un-necessary to install everything.
On RedHats web site I found the following RPMS that I think might be needed but not 100% sure... php-4.1-2-7.i386.rpm, Php-pgsql-4.1.2-7.i386.rpm and php-mysql-4.1.2-7.i386.rpm Are all of these necessary? or can I get away with just installing 1 or 2 of them? And or do I need to install any others?
If you have any other suggestions as links that might help me get this setup I sure would appericate you posting them. From the reading I have done on Advanced Poll 2.0.2 it seems once I get the php working on my system the install program will do everything else I need.
Thanks in advance for you time!
ken
PS. I know these questions are pretty basic for lots of you but keep in mind I am pretty far over the hill so please cut me some slack in asking these question.
|
|
11/10/2002 16:18:05
|
Anonymous
|
Well seeing I did not get a response to my above question I thought I would just go ahead and compile the PHP and do the install that way instead of just doing individual rpms. I have used the link below as a guide in doing this.
http://www.opendeveloper.org/PHP/HowTo/How_To_Install_PHP_on_Linux/
I have NOT found a rpm with Client Libraries but have everthing else installed ... when I try and compile the PHP I get the flowwing
[root@lakecam php-4.1.2]# ./configure --with-apxs=/usr/sbin/apxs --with-mysql
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i586-pc-linux-gnu
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers
.
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up
[root@lakecam php-4.1.2]#
Any suggestions on what I am missing and where to get it?
Thanks again for you time and consideration in this issue
|
|
12/10/2002 18:32:05
|
Anonymous
|
Well I have been working this problem out and still need just a tad bit of help...
I am continuing this thead as perhaps it will help someone else at some point in time....
Seems do to the way I install a linux RedHat system with absolute mininum install I was missing some necessary RPMS like flex bison byacc autoconf automake and texinfo to mention a few. Once I got all these installed the make went fine with NO errors. I did the make then make install and then copied cp php.ini-dist /usr/local/lib/php.ini
when I do a /etc/rc.d/init.d/httpd restart I get the following error ... I cannot find any info on this error when I search the web... to get the web server working again I commented out line 261 and one more line about 100 down from it with the libphp4 in it.
I am running Apache 1.3.23-14
Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4
.so: undefined symbol: sapi_globals
I think once I get this figured out PHP will work.
------Please HELP with the error----
|
|
|