|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
php mysql apache on Redhat 7.1
Hi
Anyone has instruction on installing mysql,apache,PHP on Redhat 7.1, please let me know. I installed mysql3.23.37 OK, but having a real tough time installing Apache and PHP. Thank you, |
|
#2
|
|||
|
|||
|
There are tons of tutorials all over you can follow, just Devshed here had quite a few. I already gave you a tip for Apache couple weeks ago, that was about not inventing a non-standard dir path as your PREFIX, just use /usr/local. I guess you didn't follow my suggestion.
|
|
#3
|
|||
|
|||
|
not working
Hi freebsd
Thank you for the previous instruction on /usr/local. It worked and thank you. This time, however, the set up is on RedHat, not on Solaris. I tried the installation on the old RedHat and it worked. Now, I'm upgrading to RedHat 7.1 and cannot get it to work. I notice that Red Hat 7.1 has gcc2.96 as opposed to gcc2.95. I don't know if this is causing the problem. Cindy |
|
#4
|
|||
|
|||
|
gcc could be cause of the problem, but without seeing the error message, we can't have a clue.
Since you are on Redhat, you can check the config.layout file (from root dir of your Apache src) and see the layout specifically for Redhat. Here is a sample for Redhat 5.x <Layout RedHat> prefix: /usr exec_prefix: $prefix bindir: $prefix/bin sbindir: $prefix/sbin libexecdir: $prefix/lib/apache mandir: $prefix/man sysconfdir: /etc/httpd/conf datadir: /home/httpd iconsdir: $datadir/icons htdocsdir: $datadir/html cgidir: $datadir/cgi-bin includedir: $prefix/include/apache localstatedir: /var runtimedir: $localstatedir/run logfiledir: $localstatedir/log/httpd proxycachedir: $localstatedir/cache/httpd </Layout> |
|
#5
|
|||
|
|||
|
error output
Hi
Followed is the error ouput when compiling Apache_1.3.19 with PHP4.0.5 on RedHat 7.1 The error is produced when I uses this to make Apache ./configure --with-layout=Apache --prefix=/usr/local/apache --sysconfidir=/usr/local/apache/conf --activate-module=src/modules/php4/libphp4.a --enable-module=status -enable-module=rewrite /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(text+0x12a): undefined reference to 'compress' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory '/home/download/apache_1.3.19/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory '/home/download/apache_1.3.19' make: *** [build] Error 2 For PHP_4.0.5, I used this configure: ./configure --with-apache=/usr/local/apache --with-config-file-path=/usr/local/apache/conf --enable-ftp --enable-track-vars --with-xml --enable-trans-sid --with-mysql=/usr/local/mysql I also did this: ln -s /home/download/apache_1.3.19 /usr/local/apache ln -s /home/download/php_4.0.5 /usr/local/php Thank you Cindy Last edited by cindy_lens : May 7th, 2001 at 08:57 PM. |
|
#6
|
|||
|
|||
|
I thought you followed my suggested PREFIX to /usr/local but you are still using the very non-standard PREFIX of /usr/local/apache.
>> ./configure --with-layout=Apache --prefix=/usr/local/apache --sysconfidir=/usr/local/apache/conf If you defined --with-layout=Apache, you don't need any --prefix nor --sysconfidir at all. As I said, take a look at config.layout. >> >> --activate-module=src/modules/php4/libphp4.a --enable-module=status -enable-module=rewrite There are two methods to build PHP: 1) Compile in statically 2) DSO method People think (1) is more reliable and faster, it might be faster, but Apache is highly configurable ( i.e. add additional modules in the future without recompile Apache), so choice (2) is the best and only way to go these days. To go for (2): 1) Your mysql was installed to a non-standard location (/usr/local/mysql), so add the lib path (export LD_LIBRARY_PATH=/usr/local/mysql/lib) manually. Check the message you posted back in Feburary mod_auth_mysql. I already told you dozen times not to use non-standard path and I am getting tired now. 2) Install Zlib 3) Append the following layout to config.layout like so: <Layout UNIX_STANDARD_LAYOUT> prefix: /usr/local exec_prefix: $prefix bindir: $exec_prefix/bin sbindir: $exec_prefix/sbin libexecdir: $exec_prefix/libexec/apache mandir: $prefix/man sysconfdir: $prefix/etc/apache datadir: $prefix/share/apache iconsdir: $datadir/icons htdocsdir: $datadir/htdocs cgidir: $datadir/cgi-bin includedir: $prefix/include/apache localstatedir: /var runtimedir: $localstatedir/run logfiledir: $localstatedir/log proxycachedir: $localstatedir/proxy </Layout> 4) Run the configure script like so: ./configure --with-layout=UNIX_STANDARD_LAYOUT --enable-module=most -enable-module=auth_db --without-confadjust --enable-shared=max --disable-module=auth_dbm 5) Fire up Apache and test it accordingly 6) Install php4: - extract the tarball and cd to it - ./configure --with-config-file-path=/usr/local/etc/apache --with-apxs=/usr/local/sbin/apxs --with-system-regex --enable-track-vars --disable-pear --disable-debug --enable-ftp --with-mysql=/usr/local/mysql You really need to follow the standard, that is to use /usr/local for all manually-compiled programs. If you look at the <Layout RedHat> I posted last time, you should see the PREFIX of /usr, which is also a standard for software the comes with your system by default (Redhat assumed all RPMs including Apache are the default and should be installed to /usr, which is absolutely misleading). Redhat sucks, whoever runs Redhat is immature. Similarily, AOL users are always computer newbies. I am always wondering who was the smart *** for inventing a prefix of /usr/local/apache causing other linux newbies to follow his non-standard path instructions. When you are ready to ditch Linux and go for BSDs, you will not see this kind of errors again simply because BSDs follow standard layout path. Re-read your old message (mod_auth_mysql) back in Feburary again. Last edited by freebsd : May 8th, 2001 at 12:29 AM. |
|
#7
|
|||
|
|||
|
Thank you and have a good night
Cindy |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > php mysql apache on Redhat 7.1 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|