LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2003, 09:37 AM   #1
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Rep: Reputation: 15
Apache 2.0.45


i've got a problem when i'm trying to install apache with php and mysql.

i've written this code that i saw somewhere:

../configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a

but the problem is that "--activate" don't seem to be an option, what is the meaning of "--activate-module" and what can i do instead? is this parameter in configure not found because of that it's missing in Apache 2.0.45 or in RedHat 8.0?

this is the error message i get:

configure: error: unrecognized option: --activate-module=src/modules/php4/libphp4.a
Try `./configure --help' for more information.

thanks for all answers!!
 
Old 05-15-2003, 09:49 AM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
I think if you look at ./configure --help, you'll see that the option you are looking for is --enable-modules=MODULE-LIST. Try:

./configure --prefix=/usr/local/apache --enable-modules=src/modules/php4/libphp4.a
 
Old 05-15-2003, 09:58 AM   #3
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
Did you choose that version of Apache for a specifc purpose? Would another version do?

I have heard of a lot of bumps with the new version of Apache and PHP...

I use the 1.3.27 Apache version with my PHP and I didn't have a glitch during the implementation.

PS: I also have SuSE 8.1 which comes out-of-the-box with the whole L.A.M.P. install stack, and I'm pretty sure RedHat would have something similar....it'll save you a couple of minutes if your internet connection is not fast and you have to download all the stuff...
 
Old 05-15-2003, 10:07 AM   #4
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Original Poster
Rep: Reputation: 15
bentz: okay, i tried that and it seemed to work this long anyway,.,. thanks!!


vous: okay, i'll change to the version 1.3 if i can't get this one to work but i'll give it a try first,.,. i'm not sure i understand what you mean with "comes out-of-the-box with the whole L.A.M.P. install stack" but i think it works better if I compile the files myself.,. thanks!!
 
Old 05-15-2003, 10:22 AM   #5
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
L.A.M.P. is a name that caught on because of how many users were using this stack...

L.inux
A.pache
M.ySQL
P.hp

Out of the box, I really meant out of the CD case...my distro comes with all the software in the CDs and you can just have your (I don't know if RedHat has it) YaST Control Center install the packages...but then again, you'd rather compile your own, so it doesn't apply to your case...

Good Luck!
 
Old 05-15-2003, 11:07 AM   #6
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Original Poster
Rep: Reputation: 15
I've got a new problem, can't be to hard to figure out, but i don't know how.
when i try to browse my server and tries a .html page it works perfect, but when i try a .php file my browser thinks that i want to download the page,.,. why? how can i make the .php file work correctly?
 
Old 05-15-2003, 11:23 AM   #7
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
Well, first things first....

can you get the phpinfo.php page to work? If you can't get that going then the modules are not installed properly....

From there on in, we can see what is going on....
 
Old 05-15-2003, 11:35 AM   #8
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Original Poster
Rep: Reputation: 15
no, i haven't even got that file, so something must be wrong then,,..,., but the installation didn't give any error.,.,I write all my commands here, maybe you or someone else know whats wrong.
 
Old 05-15-2003, 11:41 AM   #9
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
Cool, do that, probably we can figure out what went wrong....

In the meantime....

I'm a believer of the easy way first, and then the good 'ol fashioned way....

Have you considered installing it (LAMP stack) first from the CDs you got from RedHat, at least to get a taste of it and THEN going for the "from scratch" you are trying to do now...? Just a thought...
 
Old 05-15-2003, 11:41 AM   #10
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Original Poster
Rep: Reputation: 15
1.MySQL
# ./configure --prefix=/usr/local/mysql
# make
# make install

2.Apache
# ./configure --prefix=/usr/local/apache

3.PHP
#./configure --with-apache2=../httpd-2.0.45 --with-mysql=/usr/local/mysql
# make
# make install

4.Apache again
#./configure --prefix=/usr/local/apache --enable-module=src/modules/php4/libphp4.a
# make
# make install

Last edited by cyber; 05-15-2003 at 11:46 AM.
 
Old 05-15-2003, 11:46 AM   #11
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Original Poster
Rep: Reputation: 15
vous: yes, i've tried the easy way, but I couldn't get it to work, and then I read somewhere that it was better to compile it yourself, but the instructions wasn't that new, but i thought hopefully it would work, but my knowledge in linux isn't to good.,,.
 
Old 05-15-2003, 03:01 PM   #12
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Original Poster
Rep: Reputation: 15
have someone managed to get Apache 2.0.45 to work with php? or should I try the 1.3.27 instead? ( I use RedHat 8.0)
 
Old 05-15-2003, 04:53 PM   #13
cyberskye
Member
 
Registered: Feb 2003
Location: The City by the Bay
Posts: 116

Rep: Reputation: 15
Compile php as a DSO.

./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql

Modify paths as needed. You just need to add the LoadModule statement above (again, check paths) and the AddType bit (to have php parse *.php) to your httpd.conf - maybe apxs adds those two entries, I can't remember.

Skye

Last edited by cyberskye; 05-15-2003 at 04:55 PM.
 
Old 05-15-2003, 04:59 PM   #14
cyberskye
Member
 
Registered: Feb 2003
Location: The City by the Bay
Posts: 116

Rep: Reputation: 15
Packages make initial install/config issues a little harder to troubleshoot, IMO. Packages do make administration easier, though, especially when you are administering a lot of boxes.

I think that if you have the time it is worthwhile to understand all the configuration options by rolling your own. Will help you decide which functionality should be handled by apache vs. php.

Have fun,

Skye
 
Old 05-15-2003, 05:29 PM   #15
cyber
Member
 
Registered: Feb 2003
Location: Sweden
Distribution: RedHat Linux 8.0
Posts: 43

Original Poster
Rep: Reputation: 15
I tried this in PHP:
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql

The configuration seemed to go fine, but when i tried "make" it gave an error, what went wrong? maybe I have to do an uninstall before? how do I do that in that case?

thankful for answers!!


/bin/sh libtool --silent --mode=compile gcc -Imain/ -I/usr/local/src/php-4.3.1/main/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.1/include -I/usr/local/src/php-4.3.1/main -I/usr/local/src/php-4.3.1 -I/usr/local/apache/include -I/usr/local/src/php-4.3.1/Zend -I/usr/local/mysql/include/mysql -I/usr/local/src/php-4.3.1/ext/xml/expat -I/usr/local/src/php-4.3.1/TSRM -g -O2 -prefer-pic -c main/internal_functions.c -o main/internal_functions.lo
/bin/sh libtool --silent --mode=link gcc -g -O2 -prefer-pic -rpath /usr/local/src/php-4.3.1/libs -avoid-version -module -L/usr/local/mysql/lib/mysql -R /usr/local/mysql/lib/mysql ext/ctype/ctype.lo ext/mysql/php_mysql.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo
ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/apache2filter/sapi_apache2.lo sapi/apache2filter/apache_config.lo sapi/apache2filter/php_functions.lo main/internal_functions.lo -lmysqlclient -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o libphp4.la
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

Last edited by cyber; 05-15-2003 at 06:24 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 01:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 05:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 08:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration