|
|
| Author |
Message |
some_bob
Joined: 14 Apr 2003 Posts: 3
|
Posted: Mon Apr 14, 2003 9:11 pm Post subject: startup problems |
|
|
I installed the latest on a Linux box running Apache 1.3.27 and PHP4.3.0
Everything seemed okay, except that when I try:
http://localhost/cacti/
I just get a the code, instead of the execution. This is what shows up <snippet>:
*/?>
<? $section = "Console Access"; include ('include/auth.php');
include ('include/config.php');
include ("include/database.php");
include_once ('include/form.php');
include_once ("include/top_header.php");
DrawMatrixTableBegin("97%");
DrawMatrixRowBegin();
DrawMatrixCustom("<strong>raXnet cacti (<a href=\"about.php\">about</a>)</strong>");
DrawMatrixRowEnd();
DrawMatrixTableEnd();
include_once ("include/bottom_footer.php"); ?>
No doubt, it has something to do with a misconfiguration of Apache or something... can anyone point me in the right direction? |
|
| Back to top |
|
 |
shraga
Joined: 13 Apr 2003 Posts: 3
|
Posted: Tue Apr 15, 2003 2:26 am Post subject: |
|
|
its look like php isn't configure correctly
try to create test.php and put there
<? phpinfo(); ?>
try to execute this file.
what system are you running ? how did you build php ?
shraga. |
|
| Back to top |
|
 |
bulek Cacti Pro User
Joined: 20 May 2002 Posts: 852 Location: Poland
|
Posted: Tue Apr 15, 2003 4:02 am Post subject: |
|
|
Set in your php.ini:
| Code: | | short_open_tag = on |
- bulek |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Apr 15, 2003 3:43 pm Post subject: |
|
|
shraga:
I tried your test php and this was the result:
<? phpinfo; ?>
show, it showed me the contents of the file, as if it were a text file.
bulek:
check /etc/php4/php.ini and short_open_tag is set to On.
I am running a Gentoo Linus system. I normally use perl cgi though, this is the first time I have messed with php though. I just "emerged" php from the Gentoo sources. |
|
| Back to top |
|
 |
bulek Cacti Pro User
Joined: 20 May 2002 Posts: 852 Location: Poland
|
Posted: Wed Apr 16, 2003 2:55 am Post subject: |
|
|
It seems PHP is not interpreting the page sent to your browser. Check php integration settings in httpd.conf (you will find required entries on www.php.net).
- bulek |
|
| Back to top |
|
 |
|