Forum Moderators: coopster
Build Date May 15 2007 12:13:56
Configure Command './configure' '--prefix=/usr/local/' '--with-apxs=/etc/httpd/bin/apxs' '--disable-cgi' '--enable-versioning' '--enable-pic' '--disable-posix-threads' '--enable-memory-limit' '--with-pear=/usr/local/lib/php' '--with-openssl=/usr/local/ssl' '--disable-debug' '--enable-magic-quotes' '--disable-rpath' '--with-bz2=/usr' '--with-zlib' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-exif' '--with-curl=/usr' '--enable-dba' '--with-gdbm=/usr' '--with-flatfile' '--with-inifile' '--enable-dbase' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr/local' '--with-freetype-dir=/usr' '--with-gettext=/usr' '--with-gmp' '--with-imap=/usr/local' '--with-imap-ssl=/usr/local/ssl' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt=/usr' '--with-mhash=/usr' '--with-unixODBC=/usr/local/unixODBC' '--with-mysql=/usr/local/mysql' '--enable-sockets' '--with-regex=system' '--enable-wddx' '--with-expat-dir=/usr' '--enable-xslt' '--with-xslt-sablot=/usr' '--enable-inline-optimization' '--with-pspell=/usr/local' '--with-dom=/usr' '--with-zlib-dir=/usr'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlibp
Thanks for any help!
addtype application/x-httpd-php .php
to parse .html files like this:
addtype application/x-httpd-php .php .html
Once you do that restart your server and you should be good. :)
test.php A green apple
Warning: main(vars.php) [function.main]: failed to open stream: No such file or directory in /home/mysite/testingphp1.html on line 23Warning: main(vars.php) [function.main]: failed to open stream: No such file or directory in /home/mysite/testingphp1.html on line 23
Warning: main() [function.include]: Failed opening 'vars.php' for inclusion (include_path='./:/usr/local/lib/php') in /home/mysite/testingphp1.html on line 23
A green apple
Does the line need to be at the very top of the file, it's down a couple lines.
Your browser is a different matter, so try removing all cookies, sessions, history anything else that you can easily get rid of then try again. As once the htaccess is uploaded it will either break the server and give you a nice 500 error or you it will work.
This is from one of my htaccess files, so defiantly works.
AddType application/x-httpd-php .html
If you want to test if the htaccess is working then put a line of junk in and if that doesnt break the server then it is not working :)
(Just dont start the line of junk with #)
From this information is seems that php is properly being parsed for that file now, its just that you have errors in your code. Check your code and try again or try something simple:
phpinfo();
[edited by: eelixduppy at 4:42 pm (utc) on Aug. 15, 2007]
phpinfo();returned
phpinfo();
That what it's supposed to do?
Well, did you surround it with the php tags <?php and?>
And it just gives you information about php. ;)