Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old May 6th, 2001, 05:35 PM
cindy_lens cindy_lens is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 28 cindy_lens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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,

Reply With Quote
  #2  
Old May 6th, 2001, 07:05 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old May 6th, 2001, 09:07 PM
cindy_lens cindy_lens is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 28 cindy_lens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old May 7th, 2001, 08:03 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>

Reply With Quote
  #5  
Old May 7th, 2001, 08:55 PM
cindy_lens cindy_lens is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 28 cindy_lens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old May 8th, 2001, 12:13 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #7  
Old May 8th, 2001, 01:25 AM
cindy_lens cindy_lens is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 28 cindy_lens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you and have a good night
Cindy

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > php mysql apache on Redhat 7.1


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway