Results 1 to 2 of 2

Thread: PHP files wont execute?

  1. #1

    Default PHP files wont execute?

    So I installed PHP, MYSQL and Apche 2 and when I run a2enmod php5 i get php 5 already present. So I try and run a .php file and fire fox wants to download it and not execute it....What am I doing wrong? yes apache is running because I am going through local host

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: PHP files wont execute?

    Edit /etc/sysconfig/apache2, add php5 to the value assigned to the variable on the line starting APACHE_MODULES=, then restart apache2.

    You can check if it's really loaded by: /usr/sbin/httpd -M

    That sysconfig edit can also be done in YaST.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •