alixerie - Nov 3, 2005 - 1:26 pm
I am trying to enable php_gd2.so so that I can view certain graphic files. I went into php.ini_dist and enabled this module, then copied the file and saved it as php.ini. I then moved it to /usr/bin and ran the executable php file which then gave me:
Alix:/usr/bin alix$ /usr/bin/php; exit
PHP Warning: Unknown(): Unable to load dynamic library './php_gd2.so' - (null) in Unknown on line 0
I am assuming that I need to add the corresponding file to my php library. So, I skimmed through acinclude.m4 in /library/php4/lib/php/build which seems to give a format for creating these files. However, I am very new at this and looking for some direction from you guys!
BjarneDM - Nov 3, 2005 - 2:33 pm
1) Which lines *exactly* did you modify in php.ini_dist ? And where on your filesystem did you find that file ?
2) Am I right in assuming that you've installed the ServerLogistics PHP4 ?
3) Please give me a reference to the PHP online documentation about the module you wish to enable.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 4, 2005 - 2:21 am
1) In php.ini-dist I did a search for "gd" and only found one instance of it. It is near the middle of the document and the section is titled "Dynamic Extensions." It is interesting to note that all of the following extensions are given in a format for Windows, although instructions are given to change the extensions to Mac format by replacing "dll" with "so." php.ini-dist is located in /Library/PHP4/dist.
2)No, I did not install Server Logistics PHP4. Actually, I am not even sure what that is.
3)I have been looking at many online documents but the one that I found mst helpful is at
http://developer.apple.com/internet/opensource/php.html.
4)Should I delete all instances of PHP on my computer and reinstall using a source distribution? I have already downloaded one from the link that is given on the page I gave you reference to in "3)." Though many of the files look like they are for Windows. I have also downloaded the zlib but some of those files look like Windows too.
BjarneDM - Nov 4, 2005 - 3:42 am
1a) gd is not present in the Apple builds of PHP4 in any way.
1b) you can't use that technique unless you compile PHP in a special way
1c) you can see which version of PHP4 is installed by executing this command in Terminal: php -v
1d) and this command will tell you what modules are available: php -m
2) OK - that was me being confused as Apple is now on Tiger using a folder that under Panther indicated that a version of PHP4 from Serverlogistics had been installed.
3a) As to compiling PHP4 the information in that document is rather dated.
4.3.4 Released: 03 November 2003
4.3.5 Released: 26 March 2004
source :
http://www.php.net/releases.php
Even though the copyright on the page says 2005, it's actually written somewhere between those two dates. The version of PHP installed in Tiger is 4.3.11, the current versions being 4.4.1 and 5.0.5
3b) you can use the example php code from the document
4a) The easiest way for you to get the required support for gd will be to use one of the packages you can get from
http://www.entropy.ch/software/macosx/php/
4b) When you download a source package, it will usually include all the information needed to compile it on as many platforms as possible. Therefore, the windows files will especially stand out, as Linux, Unix'es and Mac OS X are based on the same philosophy and thus only need one version.
4c) !don't! delete anything - let the entropy.ch packages take care of things.
5) If you are so inclined, I can give you the complete description on how to compile PHP5 using the port system from DarwinPorts instead of fink.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 4, 2005 - 7:05 am
The version installed on my system is PHP 4.3.11. I would certainly like to install PHP5. What is fink? So, what should I do next? I like using the terminal and I think it might be advantageous for me to compile using a source rather than binary package. That way if I ever want to change anything else with PHP I will know what to work with exactly.
BjarneDM - Nov 4, 2005 - 10:42 am
fink and DarwinPorts are two libraries of software. You install a foundation package which gives you some commands for administering traditional *nix software beyond what Apple supplies.
fink:
http://fink.sourceforge.net/
DarwinPorts :
http://darwinports.opendarwin.org/
You can use either of them or both. The irritating thing is that you can end up having up to three different copies of the same piece of software installed: the Apple supplied version and one from each of the others.
As to compiling PHP5 yourself, see the following threads in the discussion forums:
http://www.macosx.com/forums/showthread.php?t=257956 http://www.macosx.com/forums/showthread.php?t=257966
Good Luck - and happy hacking :-)
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 4, 2005 - 2:59 pm
1)Ok well I have been reading your reccomended documentation, but not before I downloaded and installed both Fink and DarwinPorts. Since it seems as though you are more fond of DarwinPorts I will use that for now and keep Fink around for later.
2)You gave instructions on installing DarwinPorts using source which I had to do anyway because I am using 10.3. However, I followed the directions at
http://darwinports.opendarwin.org/getdp/ before I realized that you gave instructions. In terminal I used:
Alix:~/desktop/DarwinPorts-1.1 alix$ ./configure && make && sudo make install
Everything worked fine. I then entered:
cd ../
rm -rf DarwinPorts-1.1.*
and then removed the tarball file from my desktop.
but when I tried to enter:
Alix:~/desktop alix$ sudo port selfupdate
Password:
sudo: port: command not found
2) Obviously I did not create the directory ~/WebServer/DarwinPorts in which to install it. So, I checked in /opt/local/etc/ports and and thats where the files are
3)When looking at the output from the installation in terminal there was this:
configure: WARNING: X11 not available. You will not be able to use dports that use X11
Although, listed in /usr is X11R6 which is designated in ports.conf
4)Well I guess I am getting a little bogged down in the details now and I will probably right more in a later post. But I guess my real problem right now is that I dont want to move any further without being able to use "sudo ports selfupdate," as it seems important.
BjarneDM - Nov 4, 2005 - 4:05 pm
1) In order for you just to write 'port' and have it execute, you'll have to add the bin install directory to your path. You do that temporarily for a single open Terminal window by typing:
export PATH=/opt/local/bin:/opt/local/sbin:${PATH}
You do it permanently by adding this command to your bash startup file. Otherwise you can use the full path: /opt/local/bin/port which is an option that's always available. Or you can 'cd' to the directory where the command is and then do ./[command]
2) My instructions for compiling PHP5 is dependent upon having the DarwinPorts stuff installed in /darwinports, but the change to use /opt/local instead is trivial and left as an exercise for the reader ;-)
3) If you are new to the whole Terminal thingy, I'ld really recommend that you read some books on this. A good - but very brief - introduction can be found online here:
http://www.informit.com/articles/art...50778&seqNum=6
and I'll recommend the following books:
http://www.oreilly.com/catalog/bash3/ http://www.oreilly.com/catalog/shellsrptg/
I find myself constantly reffering to these tomes when in doubt. Also, typing 'man [command]' will give you the quick and dirty about a command. And try typing 'help'. Going into major details about how to set the bash environment up is way beyond what I'll do here.
4) The 'port selfupdate' thingy initiates the whole thing by downloading all of the package descriptions.
5) I'll refer further discussion about the forum post to those instead of here.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 5, 2005 - 3:54 am
I was able to fix the problem with port selfupdate. Now I am trying to work with compiling PHP5. I created the file install.bash using pico. When I do:
Alix:~/desktop alix$ sudo ./install.bash
sudo: ./install.bash: command not found
Alix:~/desktop alix$ ./install.bash
bash: ./install.bash: Permission denied
Alix:~/desktop alix$ file install.bash
install.bash: a /bin/bash script text executable
Alix:~/desktop alix$ cc install.bash
ld: install.bash bad magic number (not a Mach-O file)
BjarneDM - Nov 5, 2005 - 7:36 am
see my addendum to the instructions
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 6, 2005 - 7:29 am
1) Ok great, things are going much more smoothly. I reinstalled DarwinPorts using your directions and no problems there. However, I have not yet uninstalled the first attempt into /opt/local. Should I do that? If so, how?
2) I executed install.bash with *almost* no problems. I will first mention that at the very end while I was in the other room the electricity and consequently my internet went out; although I don't think that has anything to do with my the errors. I will give you the output directly before, after and including all the errors/messages:
(a)---> Installing aspell 0.60.2_2
You must install one of the language dictionaries after installing
this port in order for it to work.
---> Activating aspell 0.60.2_2
(b)---> Activating XFree86 4.5.0_2
Error: Target com.apple.activate returned: Image error: /usr/X11R6/lib/libXpm.4.11.dylib already exists and does not belong to a registered port. Unable to activate port XFree86.
Error: The following dependencies failed to build: xrender XFree86 render
---> Unpacking tgz archive for zlib 1.2.3_0
(c)---> Applying patches to imap-uw
Error: Target com.apple.patch returned: shell command "cd "/darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g" && patch -p0 < "/darwinports/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/mail/imap-uw/files/patch-src-osdep-unix-Makefile"" returned error 1
Command output: patching file src/osdep/unix/Makefile
Hunk #1 FAILED at 525.
1 out of 1 hunk FAILED -- saving rejects to file src/osdep/unix/Makefile.rej
---> Applying patches to imap-uw
Error: Target com.apple.patch returned: shell command "cd "/darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g" && patch -p0 < "/darwinports/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/mail/imap-uw/files/patch-src-osdep-unix-Makefile"" returned error 1
Command output: patching file src/osdep/unix/Makefile
Hunk #1 FAILED at 525.
1 out of 1 hunk FAILED -- saving rejects to file src/osdep/unix/Makefile.rej
---> Applying patches to imap-uw
Error: Target com.apple.patch returned: shell command "cd "/darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g" && patch -p0 < "/darwinports/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/mail/imap-uw/files/patch-src-osdep-unix-Makefile"" returned error 1
Command output: patching file src/osdep/unix/Makefile
Hunk #1 FAILED at 525.
1 out of 1 hunk FAILED -- saving rejects to file src/osdep/unix/Makefile.rej
./install.bash: line 53: cd: /darwinports/var/db/dports/build/*/*/*/c-client: No such file or directory
cp: *.c: No such file or directory
cp: *.h: No such file or directory
cp: c-client.a: No such file or directory
ranlib: can't open file: libc-client.a (No such file or directory)
---> Applying patches to imap-uw
Error: Target com.apple.patch returned: shell command "cd "/darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g" && patch -p0 < "/darwinports/var/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports/mail/imap-uw/files/patch-src-osdep-unix-Makefile"" returned error 1
Command output: patching file src/osdep/unix/Makefile
Hunk #1 FAILED at 525.
1 out of 1 hunk FAILED -- saving rejects to file src/osdep/unix/Makefile.rej
Alix:~/WebServer/DarwinPorts alix$
(d) These are the contents of "Makefile.rej":
Alix:/darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g/src/osdep/unix alix$ more makefile.rej
***************
*** 525,533 ****
osx: # Mac OS X
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
- CRXTYPE=nfs \
SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
- BASECFLAGS="-g -O"
ptx: # PTX
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
--- 525,534 ----
osx: # Mac OS X
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
+ CHECKPW=osx CRXTYPE=nfs \
SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
+ BASECFLAGS="-g -O" \
+ EXTRALDFLAGS="-framework DirectoryService"
ptx: # PTX
$(BUILD) `$(CAT) SPECIALS` OS=$@ \
Alix:/darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g/src/osdep/unix alix$
(e) I have found that the folder c-client exists in a few places including /darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g/src in which there is a copy of c-client.h but not with extensions .c or .a
(f) libc-client.a exists in /Library/PHP4/lib. libc-client4.a is in two places: /darwinports/var/db/dports/software/cclient/2004g_0/darwinports/lib AND in /darwinports/lib.
(g) That's about it. Everything else was fine. When I get this cleared up I will move on to executing php5.bash.
; ) Alix
BjarneDM - Nov 6, 2005 - 8:35 am
1) just delete /opt/local: sudo rm -rf /opt/local
2a) doesn't matter. it's just a warning, and the english spell dictionary is also installed so it should work.
2b) have you installed the Apple X11 from the Tiger DVD ? Otherwise the XFree86 thingy shouldn't try to install. Let met get this question cleared up first, then we'll take it from there.
2c-f) these are all consequenses of imap-uw failing to patch. !WHY! it does that is a good question. I've had no problems with it on the three computers I've used this procedure on.
But lets start by cleaning the whole imap-uw situation up:
sudo port uninstall imap-uw (don't worry if this fails)
sudo port clean -all imap-uw
In the install.bash file you can see the steps needed to install imap-uw. Try executing these by hand (prefixed with sudo). If patching imap-uw fails once again, we'll try another tactic as we can get the libc-client.a file from another place.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 6, 2005 - 10:10 am
1) Well, since I am currently using Panther (10.3.9), no I have not yet installed Apple X11 from the Tiger DVD. I have checked and found that there is an "X11SDK.pkg" inside of XCode Tools. I have installed XCode but have found that this package is not automatically installed. Is this the same thing as Apple X11? And should I install it?
2) I am going to try and manually install imap-uw now.
alixerie - Nov 6, 2005 - 10:40 am
The patch failed manually too.
BjarneDM - Nov 6, 2005 - 11:26 am
1) Nope - the X11 Client is X11User.pkg. It should be somewhere on the 10.3 CD/DVD to find but during install you'll have to choose 'special install' (or something like that - I've got a danish system)
!Before! installing the Apple Xll, we'll just clean up:
For each of xrender , render , XFree86 (in that order) do both a 'sudo uninstall [package-name]' and a 'sudo clean -all [package-name]
Then install Apple X11
Finally, 'sudo port install xrender'
2) hmmm ... as you still are on 10.3.9 while I'm on 10.4.2 that might be the problem. They are applying some patches under 10.3.x that aren't applied under 10.4.x. But as we actually don't need imap-uw to install but just need the .c and .h files from them, we can do with the fetch and extract steps and some modifications to the rest:
port fetch imap-uw
port extract imap-uw
imapLib=/darwinports/var/db/dports/distfiles/imap-uw/lib
imapIncludes=/darwinports/var/db/dports/distfiles/imap-uw/include
cd /darwinports/var/db/dports/build/*/*/*/c-client
cp *.c ${imapLib}
cp *.h ${imapIncludes}
cp -v c-client.a ${imapLib}/libc-client.a
cd ${imapLib}
ln -s /Library/PHP4/lib/libc-client.a libc-client.a
That should do it so the imap thingy in PHP5 will work
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
BjarneDM - Nov 6, 2005 - 11:46 am
uppps ! that long cd thingy has to be different:
cd /darwinports/var/db/dports/build/*imap-uw/*/*/src/c-client
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 6, 2005 - 12:29 pm
I tried:
Alix:~ alix$ sudo uninstall [xrender]
Password:
sudo: uninstall: command not found
BjarneDM - Nov 6, 2005 - 1:36 pm
arrrgghhh forgot the 'port' : sudo port uninstall/clean
but by now you should have been able to discover that fault by yourself ;-)
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 6, 2005 - 1:47 pm
1a) ok great! things are looking up. I was able to uninstall and clean up those files using these commands (though you will notice that both xrender and render were NOT originally installed and I had to play with the commands fr clean a little):
Alix:~ alix$ port -f uninstall xrender
port uninstall failed: Registry error: xrender not registered as installed.
Alix:~ alix$ port -f uninstall render
port uninstall failed: Registry error: render not registered as installed.
Alix:/darwinports/var/db/dports/software alix$ sudo port -f uninstall XFree86
Password:
---> Uninstalling XFree86 4.5.0_2
Alix:~ alix$ sudo port clean --all xrender
---> Cleaning xrender
Alix:~ alix$ sudo port clean --all render
---> Cleaning render
Alix:~ alix$ sudo port clean --all XFree86
---> Cleaning XFree86
Alix:~ alix$ Alix:~
1b) I have downloaded a dmg of X11User.pkg from
http://www.apple.com/downloads/macos...formacosx.html since I am "in transit" and unfortunately do not have my installation cd on hand. Now I will take the necessary steps to installing it.
2)When I am done with that stuff I am going to bed! I will start again tomorrow with imap-uw .c and .h files
Many thanks
alixerie - Nov 7, 2005 - 3:07 am
When trying to install Xrender:
checking for X_CFLAGS...
checking for X_LIBS...
checking for X... no
configure: error: X is required, but it was either disabled or not found.
BjarneDM - Nov 7, 2005 - 4:20 am
hmmm - I think this might have something to do with the order in which we installed Apple X11 and DarwinPorts on your computer. My assumption is, that during installation DarwinPorts is looking for Apple X11 and if found sets the environment up accordingly. Now, you've installed X11 !after! DarwinPorts, so DarwinPorts seems to be a bit confused
Possible fix: re-compile the basic DarwinPorts installation. Hopefully, it's not necessary to start all over, but it might come to this (you should know how many times, I've had to do that due to some experiments!)
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 7, 2005 - 4:48 am
I ran without removing any files:
Alix:~/WebServer/DarwinPorts alix$ ./darwinports.bash 1.1
and got:
checking for X... no
checking for XOpenDisplay in -lX11... yes
Please install the X11 SDK packages from the
Xcode Developer Tools CD
configure: error: Broken X11 install. No X11 headers
Soooo...I installed X11SDK.pkg and reinstalled and got errors. Hopefully I dont have 3 copies of DarwinPorts now! LOL
Tried to install xrender and it worked!
BjarneDM - Nov 7, 2005 - 5:02 am
You don't have three copies. We've just installed on top of the excisting one each time, but each time we install it re-discovers the environment it has to work with. You can see that it got better and better at finding the parts needed.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 7, 2005 - 5:19 am
Now trying to install manually imap-uw. Everything worked fine until:
Alix:/darwinports/var/db/dports/build/file._darwinports_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pdate_dports_mail_im ap-uw/work/imap-2004g/src/c-client alix$ cp -v c-client.a ${imapLib}/libc-client.a
cp: c-client.a: No such file or directory
I did a search and found that the only instance of c-client.a is in /Lib/PHP4/lib.
BjarneDM - Nov 7, 2005 - 5:31 am
That's an error in my instructions :-( That line shouldn't have been there. It's a "left-over" from the original version.
I've posted a correct (and minimal) version in the php5 instructions thread.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 7, 2005 - 6:01 am
Also in /darwinports/var/db/dports/software/cclient/2004_g/darwinports/lib is libc-client4.a
alixerie - Nov 7, 2005 - 6:09 am
Great the alternative code worked. Now moving on to PHP5.bash
alixerie - Nov 8, 2005 - 11:13 am
Well PHP5 is up and running, and the GD library is there. However, the entire reason that I was trying to get the GD library in the first place is because it is supposed to define the function "imagecreatefromjpeg()" for PHP. But this function is still not working. (I have a php script that when i try to test it it returns the error: Fatal error: Call to undefined function: imagecreatefromjpeg() in /Users/alix/Sites/gallery/eyelash_xml_render.php on line 17).
I tried too do some research about it before coming back here, but I am just not sure what I should be doing. There are 4 documents in the GD folder that contain "imagecreatefromjpeg" : gd.c, php_gd.h, jpg2png.phpt, and jpeg2png.phpt. The last two are children of the test folder. I am assuming that I have to enable some of the scripting in one or both of the former two, but there is so much that seems to need enabling in those documents that I am getting confused.
BjarneDM - Nov 8, 2005 - 11:35 am
Well the lowdown on the GD library is here:
http://www.php.net/manual/en/functio...tefromjpeg.php http://www.php.net/manual/en/ref.image.php
OK - lets try to troubleshoot. My guess is that you are still using PHP4 and aren't accessing PHP5
How are you using those xml functions ? From a webpage script or a Terminal script ?
You'll find your new PHP5 in /Library/PHP5/bin.
Try these commands:
php -v -and- php -m
/usr/bin/php -v -and- /usr/bin/php -m
/Library/PHP5/bin/php -v -and- /Library/PHP5/bin/php -m
If you are using it on a webpage, try making a simple page on your webpage with just this line:
and load it into a browser. If you are still seing PHP4 you'll have to modify your httpd.conf
You can push the Apple PHP4 commandline utility aside in different ways.
1) defining a new completely new php:
cd /usr/bin ; mv php php4
ln -s /Library/PHP5/bin/php php
2) easily making PHP5 available:
ln -s /Library/PHP5/bin/php php5
3) making sure the PHP5 installation is before /usr/bin in your PATH:
export PATH=/Library/PHP5/bin:${PATH}
You'll have to put this line in you bash configuration files.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
BjarneDM - Nov 8, 2005 - 1:01 pm
hmmm -- seems I can't just post hmtl commands
Let me try it in another way:
<?php phpinfo(); ?>
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini
alixerie - Nov 15, 2005 - 8:39 am
Sorry it has taken me so long to reply. I have just returned home from a year in Asia.
1a) The php -v yeilded:
PHP 5.0.5 (cli) (built: Nov 5 2005 19:21:44)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
and php -m:
[PHP Modules]
bcmath
calendar
ctype
curl
dbx
dom
exif
filepro
ftp
gettext
iconv
imap
libxml
mbstring
mcrypt
mhash
odbc
openssl
pcre
posix
session
SimpleXML
SPL
SQLite
standard
tidy
tokenizer
wddx
xml
xmlrpc
xsl
zlib
[Zend Modules]
1b) I tried:
Alix:~ alix$ usr/bin/php -v
bash: usr/bin/php: No such file or directory
I am assuming that you meant to cd to that directory and do the commands, which outputted the same information about version and modules.
2) I opened Dreamweaver and created a Basic Page. I erased all of the content frm the script mode and pasted "." When I tested it in Safari I got nothing but a blank page. So I then erased "" and pasted "<?php phpinfo(); ?>" which upon testing produced a blank page that had "" at the top of the body. Since I am not seeing anything I will not try and modify my httpd.conf yet.
3)Since in the terminal I am seeing that my version is PHP5 should I go ahead and try and "push the Apple PHP4 commandline utility aside" anyway?
BjarneDM - Nov 15, 2005 - 10:45 am
It looks to me as if:
1) you've at some time installed a PHP 5.0.5 on top of the Apple 4.3.11 or gotten something from either fink or DarwinPorts.
2) you haven't activated PHP in httpd.conf:
http://dk2.php.net/manual/en/faq.ins...on.blankscreen http://dk2.php.net/manual/en/faq.ins...ion.processing
3) you haven't tried:
/Library/PHP5/bin/php -v -and- /Library/PHP5/bin/php -m
There's no need to post the results here, but they ought to be markedly different to what you've previously posted.
--------
Bjarne D Mathiesen ; København ; Danmark
Mac OS X 10.4.2 ; 2xTiBook + 15" iMac + MacMini