Re: PHP doesn't work with Apache2
| From: | BuildSmart | Date: | Sun, 25 Nov 2007 10:44:14 +0000 |
| Subject: | Re: PHP doesn't work with Apache2 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-18399@lists.php.net to get a copy of this message | ||
On Nov 25, 2007, at 03:06:10, ApplePro wrote:
BuildSmart <buildsmart <at> daleenterprise.com> writes:It appears that your compiler might not recognize the arch command or the arch's are non standard but since I don't have access to it to determine what is causing the failure let's also remove all "-arch x86_64" and try again.On Nov 24, 2007, at 18:31:52, ApplePro wrote:I'm getting this error when I'm trying to configure: creating cache ../config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-redhat-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc -arch i386 -arch x86_64 -pipe -no-cpp-precomp -arch i386 -arch x86_64) works... no configure: error: installation or configuration problem: C compiler cannot create executables. Knowing about your environment and tools helps you build software, since Idon't know what you have I can only guess and I guess your environment isn't as advanced as I had originally thought.Like I said, I'm not certain which arch's your compiler supports but I'mguessing that it doesn't support "-arch i386" so remove those and just use "-arch x86_64".I've deleted all -arch i386, but still get the error message: loading cache ../config.cache checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for egrep... (cached) grep -E checking for a sed that does not truncate output... (cached) /bin/sed checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-redhat-linux-gnu checking for gcc... (cached) gcc checking whether the C compiler (gcc -arch x86_64 -pipe -no-cpp-precomp -arch x86_64) works... no configure: error: installation or configuration problem: C compiler cannot create executables.
-- DaleI wanted you to type: /usr/sbin/apxs -q LIBEXECDIR The output is: /usr/lib64/httpd/modules try this in your httpd.conf file LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so stop and start apache.I get same error: Starting httpd: httpd: Syntax error on line 188 of /etc/httpd/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from [FAILED] Looks like I use wrong syntax, but I've checked this, syntax is correct.