Re: Confused about the PHP5 Installation Process
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
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 =====
I really think the PHP5 ui_msgs should be modified so they work. At some point they did, but now extra steps are required to enable php5 that aren't in the messages. I have some Howtos and I've updated the ones that use PHP5 with the correct instructions, for example this one. http://homepage.mac.com/duling/halfdozen/NeDi-Howto.html Mark
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thank you for the howto link. Quick typo fix. In your example under 2.3. Install Apache 2 and PHP 5, you wrote the command: sudo cp httpd.sample.conf htpd.conf when it should be sudo cp httpd.sample.conf httpd.conf I was mulling around with the apache2 and php5 configuration myself, until you emailed your howto along. Thank you. Your Howto helped me configure my php5 installation. After reading your howto, I am strongly considering reinstalling my setup to be configured to use Nedi, also! It looks like THE program to have! - -Altoine Mark Duling wrote:
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 =====
I really think the PHP5 ui_msgs should be modified so they work. At some point they did, but now extra steps are required to enable php5 that aren't in the messages. I have some Howtos and I've updated the ones that use PHP5 with the correct instructions, for example this one.
http://homepage.mac.com/duling/halfdozen/NeDi-Howto.html
Mark
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFzsNvS0foIafBdlkRAuQsAJ0YRlEpJd0f58lFy/3gZlDICx6rtgCfWlJJ Pj3+IoxuGkxbzodiaq6gjVM= =6T6R -----END PGP SIGNATURE-----
Altoine Barker <ndiscreet@gmail.com> on Saturday, February 10, 2007 at 11:19 PM -0800 wrote:
Thank you for the howto link. Quick typo fix. In your example under 2.3. Install Apache 2 and PHP 5, you wrote the command: sudo cp httpd.sample.conf htpd.conf when it should be sudo cp httpd.sample.conf httpd.conf
Thanks for letting me know. I'm going to correct a few minor typos like that this weekend.
I was mulling around with the apache2 and php5 configuration myself, until you emailed your howto along. Thank you. Your Howto helped me configure my php5 installation. After reading your howto, I am strongly considering reinstalling my setup to be configured to use Nedi, also! It looks like THE program to have!
It is very cool and helpful. Mark
participants (3)
-
Altoine Barker
-
Jyrki Wahlstedt
-
Mark Duling