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!! |
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 |
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... |
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!! |
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! |
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? |
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.... |
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.
|
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... |
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 |
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.,,.
|
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)
|
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 |
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 |
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 |
All times are GMT -5. The time now is 10:38 PM. |