#1  
Old 22nd October 2008, 17:40
jeffc jeffc is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default php files not being displayed

I have a Suse 10/ Apahce2 box i installed ISPconfig, the site seems to be working with html files, however, trying to open index.php invokes the save or open dialog, i can only imagine the php engine is not running, Im a windows admin changing to linux, so im kind anoobish. I cant seem to find an answer after a few hours of google searching. any ideas?
ill post config files, just let me know

Last edited by jeffc; 22nd October 2008 at 17:43.
Reply With Quote
Sponsored Links
  #2  
Old 23rd October 2008, 11:59
make-fun make-fun is offline
Member
 
Join Date: Jan 2008
Posts: 92
Thanks: 8
Thanked 8 Times in 7 Posts
Default

Welcome ;-)

Well to start with you could check for errors in:
  • /var/log
  • /var/log/httpd
  • /var/log/apache2
  • /root/ispconfig/httpd/logs

Then maybe check in
/etc/apache2/mods-available/dir.conf
for
Code:
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
</IfModule>
Did you follow a "The Perfect Set Up Howto"?
On SuSE there are sometimes issues with apparmor — have you removed it — do you know what to do and look out for there?

Cheers
Reply With Quote
  #3  
Old 23rd October 2008, 12:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

You will have to reconfigure the php setting in ISPConfig for SuSE:

See ISPCOnfig first steps guide, chapter 2.4.3:

http://www.howtoforge.com/ispconfig-2.x-first-steps-p2
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 24th October 2008, 15:52
jeffc jeffc is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the replys guys,
make-fun: i checked all the logs and none show any errors, i went to this path, /etc/apache2/mods-available/dir.conf and there is no mods-availible folder

Till, i followed your link and could not find anything on php, i turned it off and back on for the site, still no luck.

i cant post the link because of the content (adult), but will send in priv tell if you need it.
loading the site by ip shows the html, but typing in index.php prompts me to save or open.
__________________
http://www.surferweb.com
Rates are by the hour, most of the time, unless I'm in a bad mood!
Every child has many dreams. Mine included a wallet, two chicks and a cigar, but that's another story
Reply With Quote
  #5  
Old 24th October 2008, 17:47
jeffc jeffc is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

here is my Vhosts.ispconf file
<VirtualHost 69.38.58.195:80>
ServerName www.site.com:80
ServerAdmin webmaster@site.com
DocumentRoot /srv/www/web3/web
ServerAlias site.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /srv/www/web3/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/www/web3/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/srv/www/web3/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web3/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>


like i said, i cant for the mods_available file.
this is turning into a nightmare, i almost wanna get rid of ispconfig!
heh.. just realized ispconfig page is php, so it must be serving php just not for the site.
__________________
http://www.surferweb.com
Rates are by the hour, most of the time, unless I'm in a bad mood!
Every child has many dreams. Mine included a wallet, two chicks and a cigar, but that's another story

Last edited by jeffc; 24th October 2008 at 18:12.
Reply With Quote
  #6  
Old 25th October 2008, 05:56
make-fun make-fun is offline
Member
 
Join Date: Jan 2008
Posts: 92
Thanks: 8
Thanked 8 Times in 7 Posts
 
Default

1) ispconfig runs it's own Apache on port:81, so it's got nothing to do with this
2) mods_available: not sure how it's done on SuSE 10.??
3) You have checked "ErrorLog /srv/www/web3/log/error.log"?

Maybe comment this part in
Code:
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
#RewriteRule .* - [F]
#</IfModule>
and then do a /etc/init.d/apache2 reload
Maybe you can get a little closer to the prob this way…
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 09:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.