How do I find out what are the current versions of Apache, MySQL and PHP installed under Panther?
What command(s) do I type in Terminal window to see current versions of these three?
Page 1 of 1
Apache, MySQL and PHP versions
#2
Posted 10 October 2004 - 01:18 AM
code:
httpd -v
code:
php -v
code:
mysqld -v
alternative:
save a file phpinfo.php in your Sites directory which contains the following code :
code:
<?php
phpinfo():
?>
and point your browser to http://localhost/~yo...ame/phpinfo.php
(Personal Websharing must be turned on for this to work)
Hope it helps
#3
Posted 21 October 2004 - 11:55 AM
Does PHP need any activation to work? (At the Macromedia web site, instructions were given to activate PHP under Jaguar, but Panther did not show the code needing to be altered.)
I believe I followed the instructions correctly:
In a blank TextEdit document, I typed in the code as directed, and saved it to my user's Sites folder as plain text under the name "phpinfo.php". (Note: TextEdit prefs were set to open new blank documents as Plain Text, not Rich Text, and the option to append extensions was unchecked.)
When I enter this URL (http://localhost/~UserName/phpinfo.php) the browser does not display info about PHP, but only the code I typed into the document.
This is a PowerBook 17" 1 GHz running OS X (10.3.5); PHP version 4.3.2 (via the Terminal php -v command).
I believe I followed the instructions correctly:
In a blank TextEdit document, I typed in the code as directed, and saved it to my user's Sites folder as plain text under the name "phpinfo.php". (Note: TextEdit prefs were set to open new blank documents as Plain Text, not Rich Text, and the option to append extensions was unchecked.)
When I enter this URL (http://localhost/~UserName/phpinfo.php) the browser does not display info about PHP, but only the code I typed into the document.
This is a PowerBook 17" 1 GHz running OS X (10.3.5); PHP version 4.3.2 (via the Terminal php -v command).
#4
Posted 21 October 2004 - 04:47 PM
Access your httpd.conf file using this command in terminal
Then page down using Ctl +V to the end of the file (can't use the scroll bar in pico)
Add this bit of code at the bottom
The restart apache with
I think most builds of Apache have the file type extension built-in to and IF statement but might reference and old PHP module and thus not working.
Also if you want PHP code into your .html or .htm extension files just add an additional line for each like above but with the .html and .htm... like this. or even .phps
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .phps
code:
sudo pico /etc/httpd/httpd.conf
Then page down using Ctl +V to the end of the file (can't use the scroll bar in pico)
Add this bit of code at the bottom
code:
AddType application/x-httpd-php .php
The restart apache with
code:
sudo apachectl restart
I think most builds of Apache have the file type extension built-in to and IF statement but might reference and old PHP module and thus not working.
Also if you want PHP code into your .html or .htm extension files just add an additional line for each like above but with the .html and .htm... like this. or even .phps
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .phps
Page 1 of 1



Sign In
Register
Help


MultiQuote