apache + php

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
Macross
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 152
Joined: 01 May 2007, 16:00
16
Contact:

apache + php

Post by Macross »

So i have installed apache2 + php5 on my ubuntu server box, but now theres is a problem. When i try to open index.php i get blank page... Tested php by creating a file in /var/www phpinfo(); and when i browse i get version and all sort of stuff. So it seems that php5 is working but why i don't see the page? only blank...

Edit: it seems that it works aslong as you don't mix php with html. Tryed to open <?php echo "hello"?> it worked. But when you try to mix it then it shows blank page... strange any ideas?

P.S /var/log/apache2/error.log

[Tue May 04 22:11:26 2010] [error] [client ****** File does not exist: /var/www/favicon.ico, referer: http://*******/lop.php
Last edited by Macross on 04 May 2010, 14:01, edited 1 time in total.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

anything to find in /var/log/syslog? :-k
Image

User avatar
Macross
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 152
Joined: 01 May 2007, 16:00
16
Contact:

Post by Macross »

Only some pulseaudio stuff nothing more...
I think that it has to do some with refering.

Code: Select all

[Tue May 04 22:51:07 2010] [error] [client -------] File does not exist: /var/www/favicon.ico, referer: http://--------/index.php
Why does it always says that it's looking for some kind of favicon...

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

nope, that's not a fatal error, happens on every site that is not using a favicon.
best post your apache config and php.ini on http://code.suck-o.com :wink:
Image

User avatar
Macross
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 152
Joined: 01 May 2007, 16:00
16
Contact:

Post by Macross »

Thanks for help but i have managed to solve the problem. It was my fault i forgot to install php-mysql module so when i tried to run scripts that interact with the database it showed blank pages. :)

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

ahhh.....ok, that would have been my next question (database interactivity).. :lol: :)
Image

Post Reply