[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php5 not running



abdelkader belahcene <abelahcene@gmail.com> writes:

> hi,
> I just install php5  and the list of software apache2, mysql ( the LAMP). (
> last version on wheezy )
>
> apache2 run nice , same for mysql,  but wwhen I try  a simple file  containning
> for example phpinfo(),  it is not executed.
>
> the module php for apache is enabled. I tryed the files I ve done before but
> failed !!
>
> Is there a special  new config ?? for apache2 or for php ??

The two places I would look first are to make sure there are symbolic
links:

new-snowball:210$ ls -l /etc/apache2/mods-enabled/php5.*
lrwxrwxrwx 1 root root 27 Oct 19 16:25 /etc/apache2/mods-enabled/php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 Oct 19 16:25 /etc/apache2/mods-enabled/php5.load -> ../mods-available/php5.load

and (assuming the script you're trying to run is in a user directory)
that .../mods-available/php5.conf has been edited:

    # Running PHP scripts in user directories is disabled by default
    # 
    # To re-enable PHP in user directories comment the following lines
    # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
    # prevents .htaccess files from disabling it.
    #<IfModule mod_userdir.c>
    #    <Directory /home/*/public_html>
    #        php_admin_value engine Off
    #    </Directory>
    #</IfModule>


Reply to: