Got it!! Placed my test.php file into /usr/local/apache/htdocs, referenced it as a URL ie http://<host>/test.php ... and all is well. I'd been trying to open it as a file under my home directory. Doyhup, doyhup :-) Thank you for your previous responses. Regards, Eric Stahl In a message dated 2/10/01 6:00:36 PM Pacific Standard Time, ECStahl writes: << Greetings, As suggested in previous responses, I have downloaded and installed new copies of PHP and apache onto my SuSE 6.4 Linux. Still, when I open .php files, none of the PHP code is being processed. Shown below is a cut&paste of the actions I took. What have I missed?? Input appreciated - I would like to make use of PHP! Regards, Eric Stahl >>
Greetings, As suggested in previous responses, I have downloaded and installed new copies of PHP and apache onto my SuSE 6.4 Linux. Still, when I open .php files, none of the PHP code is being processed. Shown below is a cut&paste of the actions I took. What have I missed?? Input appreciated - I would like to make use of PHP! Regards, Eric Stahl bombur:/home/eric/php # uname -a Linux bombur 2.2.14 #1 Fri Mar 17 11:59:50 GMT 2000 i586 unknown bombur:/home/eric/php # rpm -q netscape netscape-4.72-6 bombur:/usr/local/apache # /etc/rc.d/init.d/apache stop Shutting down service httpd bombur:/usr/local/httpd # rm -r * <--- Original SuSE Apache install bombur:/usr/local/apache # rm -r * <-- My previous Apache install attempts bombur:/usr/local/src # rm -r * <-- PHP and Apache source previously used bombur:/usr/local/src # ll <-- Here's the new source I downloaded total 4072 drwxrwxrwx 2 root root 4096 Feb 10 11:20 . drwxr-xr-x 12 root root 4096 Feb 9 00:55 .. -rw-r----- 1 eric root 1709589 Feb 10 11:20 apache_1.3.12.tar.gz -rw-r----- 1 eric root 2439189 Feb 10 11:20 php-4.0.4pl1.tar.gz bombur:/usr/local/src # gzip -d *.gz bombur:/usr/local/src # tar -xf apache_1.3.12.tar bombur:/usr/local/src # tar -xf php-4.0.4pl1.tar bombur:/usr/local/src/apache_1.3.12 # ./configure --prefix=/usr/local/apache <completed with no errors> bombur:/usr/local/src/php-4.0.4pl1 # ./configure --with-apache=../apache_1.3.12 --enable-track-vars <completed with no errors> bombur:/usr/local/src/php-4.0.4pl1 # make <completed with no errors> bombur:/usr/local/src/php-4.0.4pl1 # make install <completed with no errors> bombur:/usr/local/src/apache_1.3.12 # ./configure --activate-module=src/modules/ php4/libphp4.a <completed with no errors> bombur:/usr/local/src/apache_1.3.12 # make <completed with no errors> bombur:/usr/local/src/apache_1.3.12 # make install <completed with no errors> ** I then uncommented the php AddType line shown below: bombur:/usr/local/src/apache_1.3.12 # vi /usr/local/apache/conf/httpd.conf <SNIP> # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # For example, the PHP 3.x module (not part of the Apache distribution - see # http://www.php.net) will typically use: # #AddType application/x-httpd-php3 .php3 #AddType application/x-httpd-php3-source .phps # # And for PHP 4.x, use: # AddType application/x-httpd-php .php #AddType application/x-httpd-php-source .phps AddType application/x-tar .tgz <SNIP> bombur:/usr/local/src/apache_1.3.12 # /usr/local/apache/bin/apachectl start /usr/local/apache/bin/apachectl start: httpd started bombur:/usr/local/src/apache_1.3.12 # ps -ef | grep httpd root 18045 1 1 18:30 ? 00:00:00 /usr/local/apache/bin/httpd nobody 18046 18045 0 18:30 ? 00:00:00 /usr/local/apache/bin/httpd nobody 18047 18045 0 18:30 ? 00:00:00 /usr/local/apache/bin/httpd nobody 18048 18045 0 18:30 ? 00:00:00 /usr/local/apache/bin/httpd nobody 18049 18045 0 18:30 ? 00:00:00 /usr/local/apache/bin/httpd nobody 18050 18045 0 18:30 ? 00:00:00 /usr/local/apache/bin/httpd bombur:/usr/local/src/apache_1.3.12 # httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_access.c mod_auth.c mod_setenvif.c mod_php4.c suexec: disabled; invalid wrapper /usr/local/src/apache_1.3.12/bin/suexec *** I next restarted Netscape... and opened the following file: bombur:/home/eric/php # cat test.php The date at the moment is <?php echo gmdate("D"); $alpha="Hello"; $beta="World"; echo $alpha; PHPinfo(); ?> All I saw was "The date at the moment is", and then verified what was sent through View;Page Source.
-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]