Hi. This is a followup to a pervious post titled "php and Oracle client on mac".
I had PHP and Apache which come with Mac OS X 10.5.2 both enabled and running
(a php page on my website renders correctly).
I tried to install Oracle Client 10g and recompile php to have oci working.
What I did:
1. Downloaded, unzipped Oracle client and set its environment varaibles
ORACLE_HOME, DYLD_LIBRARY_PATH, and TNS_ADMIN. Also had the correct connection
parameters in tnsnames.ora
2. downloaded Apache httpd-2.2.8.tar.gz, unzipped into /usr/local and then:
./configure --enable-layout=Darwin --enable-mods-shared=all
make
sudo make install
3. downloaded php-5.2.5.tar.gz, unzipped into /usr/local and:
./configure --enable-layout=Darwin --enable-mods-shared=all
--prefix=/usr --mandir=/usr/share/man --localstatedir=/var
--infodir=/usr/share/info --disable-dependency-tracking
--with-apxs2=/usr/sbin/apxs --with-kerberos=/usr --enable-cli
--with-oci8=/Applications/Oracle/ohome
make
sudo make install
Now, if I type http://localhost or http://localhost/index.html or
http://localhost/test.php (a page which I have created in my Website folder,
that is /Library/WebServer/Documents) I get:
Safari can’t open the page “http://localhost/” because it could not connect to
the server “localhost”.
If I go to /Library/WebServer/Documents, I still see the older Apache files
(which was working).
Can anyone please tell me what went wrong? Or perhaps suggest some way to go
because I'm quite new to Mac and php. Thank you for your time. Please inform me
if I need to provide more info (logs, etc...).
Best.
_________________________________________________________________
Great deals on almost anything at eBay.co.uk. Search, bid, find and win on eBay
today!
http://clk.atdmt.com/UKM/go/msnnkmgl0010000004ukm/direct/01/