On 9.2.2007, at 13.49, Conrad Taylor wrote:
Hi, I have performed the following:
sudo port install php5 +apache2 +mysql5
Also, I have performed the instructions that were outputed to the screen. At this point, I cannot successfully execute a php script and it seems that I need to perform some additional manual steps. I have done the following after the install and these needs to get automated in the order given:
START STEPS:
cd /opt/local/apache2/conf
sudo cp httpd.conf.sample httpd.conf
cd /opt/local/apache2/modules
sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
cd /opt/local/etc
sudo cp php.ini-recommended php.ini
END STEPS:
Now, I'm at a point where I'm not 100% sure as to what I need to update to get it going but my script is as follows:
index.php: [ /opt/local/apache2/htdocs/index.php ]
<?php phpinfo(); ?>
If you require any additional information, please feel free to get into contact with me.
Thank you,
-Conrad Hi, what happens? Do you write the URL yourself, or do you expect the server to put that in for you (guess based on 'index')? Basically things look ok, but make sure that you have something like the following in your httpd.conf (grepped from mine, separate lines, look at the keywords): ===== LoadModule php5_module modules/libphp5.so DirectoryIndex index.html index.php index.php5 AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps =====
If this doesn't help, I'll expect we can look further… ! ! Jyrki Wahlstedt ! skype:jyrkiwahlstedt ! http://www.wahlstedt.fi/jyrki/ ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386