php files not being displayed

Discussion in 'Installation/Configuration' started by jeffc, Oct 22, 2008.

  1. jeffc

    jeffc New Member

    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: Oct 22, 2008
  2. make-fun

    make-fun Member

    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
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.xhtml
    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?

  3. till

    till Super Moderator Staff Member ISPConfig Developer

  4. jeffc

    jeffc New Member

    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.
  5. jeffc

    jeffc New Member

    here is my Vhosts.ispconf file
    ServerAdmin [email protected]
    DocumentRoot /srv/www/web3/web
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi 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
    RewriteRule .* - [F]

    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.
    Last edited: Oct 24, 2008
  6. make-fun

    make-fun Member

    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
    #<IfModule mod_rewrite.c>
    #RewriteEngine on
    #RewriteRule .* - [F]
    and then do a /etc/init.d/apache2 reload
    Maybe you can get a little closer to the prob this way…

Share This Page