Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

scottlewis1978

macrumors newbie
Original poster
Aug 31, 2009
2
0
Good afternoon MacRumors Forums,

I need some help here. I've foolishly upgraded a production reporting machine and I'm now having issues with localhost.

I'm able to access MySQL via terminal and I'm able to ping localhost (resolving to 127.0.0.1) successfully. The issue I'm having is when I try and use Safari to browse to http://localhost, I get a "Safari can't connect to the server" error.

In the past when I've done an OS upgrade I will use the following commands to reinstall PHP and Apache:
* cd /var/src/php-5.2.5/
* sudo make install
* sudo apachectl restart

* cd /var/src/httpd-2.2.8/
* sudo make install
* sudo apachectl restart

PHP 5.2.5 is not displaying any errors on the install. httpd 2.2.8 is showing the following errors:

Here is the output for the PHP install:
macbook-air:~ $ cd /var/src/php-5.2.5/
macbook-air:php-5.2.5 $ sudo make install
Installing PHP SAPI module: apache2handler
/usr/share/httpd/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1/build-1/libtool' libs/libphp5.so /usr/libexec/apache2
/usr/share/apr-1/build-1/libtool --mode=install cp libs/libphp5.so /usr/libexec/apache2/
cp libs/libphp5.so /usr/libexec/apache2/libphp5.so
Warning! dlname not found in /usr/libexec/apache2/libphp5.so.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/libexec/apache2/libphp5.so
[activating module `php5' in /private/etc/apache2/httpd.conf]
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Console_Getopt: upgrade to a newer version (1.2.3 is not newer than 1.2.3)
[PEAR] Archive_Tar: upgrade to a newer version (1.3.2 is not newer than 1.3.2)
[PEAR] Structures_Graph: upgrade to a newer version (1.0.2 is not newer than 1.0.2)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR: upgrade to a newer version (1.6.1 is not newer than 1.7.2)
Installing PDO headers: /usr/local/include/php/ext/pdo/
macbook-air:php-5.2.5 $ sudo apachectl restart
Here is the output for Apache install:
macbook-air:php-5.2.5 $ cd /var/src/httpd-2.2.8/
macbook-air:httpd-2.2.8 $ sudo make install
Password:
Making install in srclib
Making install in pcre
Making install in os
Making install in unix
Making install in server
Making install in mpm
Making install in prefork
/usr/share/apr-1/build-1/libtool --silent --mode=link gcc -L/usr/lib -o libmain.la -static test_char.h config.lo log.lo main.lo vhost.lo util.lo util_script.lo util_md5.lo util_cfgtree.lo util_ebcdic.lo util_time.lo connection.lo listen.lo mpm_common.lo util_charset.lo util_debug.lo util_xml.lo util_filter.lo util_pcre.lo exports.lo scoreboard.lo error_bucket.lo protocol.lo core.lo request.lo provider.lo eoc_bucket.lo core_filters.lo
ranlib: archive member: .libs/libmain.a(exports.o) cputype (16777223) does not match previous archive members cputype (7) (all members must match)
ranlib: archive member: .libs/libmain.a(exports.o) cputype (16777223) does not match previous archive members cputype (7) (all members must match)
ranlib: for architecture: i386 file: .libs/libmain.a(util_ebcdic.o) has no symbols
ranlib: for architecture: i386 file: .libs/libmain.a(util_charset.o) has no symbols
make[2]: *** [libmain.la] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
macbook-air:httpd-2.2.8 $ sudo apachectl restart

Thanks in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.