Please Help with php4 Apache2 for phpBB2 migration
Group,
I have done quite a bit of searching but I am now thoroughly lost. My phpBB2 forum has been developed under IIS and MySQL on an XP laptop. I have now found hosting and will need to upload the BB to a linux/Apache server. Now, I am new to most of this side - but I have been using Linux long enough to be able to get around. Please allow me to set out the problem... I cannot seem to get a test phpinfo.php page to give me the information a book tells me it will once all is correctly installed: <? phpinfo.php ?> is in a file under /var/www/html/ in which my index.html (the home page from the migrating site) resides and loads correctly - even descending into the forum/ path to find the logos etc... when I direct my browser to 127.0.0.1/phpinfo.php nothing comes up - but when I examine the source I can see the text from the file. Which tells me that PHP4 is not being called. So I went through the install very carefully and ensured that I had the full PHP paths available and Apache configured thus: LoadModule php4_module /usr/local/php4.3.2/libs/libphp4.so but this returns the message in my logs/error_log [warn] module php4 module is already loaded skipping and yet prior to adding lines to httpd.conf there was no mention of php* anywhere in the file - I even had to add (as directed) the AddType lines: AddType application/x-httpd-php .phtml .php AddType application/x-httpd-php-source .phps which the book seemed to think should have already been in the conf file (but commented out). Now my Apache 2 was loaded as an RPM at install and I have become confused since downloading and installing 1.3 because I couldn't find the apachectrl file which I now have and which is working because it is stopping the service that is serving the page in the /var/www/html directory. This is getting too involved for me to tackle I need some pointers as to why in this case things are not firing so I can get onto the database stuff and get the forum running under Linux/Apache before attempting to upload and go live with the site. Please Help. :newbie: |
The php code should be:
<?php phpinfo(); ?> |
THANK YOU
David, thanks for your reply - it works of course!:scratch:
:rolleyes: I have rechecked the book and I was right in the code it listed <? phpinfo.php(); ?> . So I assume that it must be another version or configuration of Apache that reads the <? as the opening string for PHP or an earlier version of PHP????? Because the book goes on to list the following as "Opening Tags": <?php <? <script language="php"> Thank you anyway for picking this up - I really appreciate it!:) |
Quote:
The <? and ?> only work if "Register_Globals" is set to "On" in either httpd.conf or php.conf (I forget which). But I've never seen "<script language=php>". I'm pretty sure that's how it works... |
All times are GMT -5. The time now is 10:14 PM. |