LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with the .php files on linux slackware 12 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-the-php-files-on-linux-slackware-12-a-597339/)

alinextre 11-05-2007 03:52 PM

problem with the .php files on linux slackware 12
 
I have installed linux slackware 12.0 and i started the httpd , all is working well but when i upload a .php file to my http of the localhost it apears like a .txt file example: i uploaded a index.php but when i enterd in the internet explorer it looks like a txt file a index.txt . what should i do ? can u help me ?

complich8 11-05-2007 04:01 PM

You need to add a handler for php (either using the php module or as a cgi).

See also: http://www.php.net/manual/en/install.unix.apache2.php for how to install php (including enabling module support at config-time on apache).

llathrop 11-06-2007 01:36 PM

enable the php module
 
PHP is turned off by default in Slackware.

To turn on, see the end of the file /etc/httpd/httpd.conf, and uncomment the line concerning php

cobain 07-09-2008 03:10 AM

i've just install slackware 12,
my apache is already run,
i can see the page "it works" in localhost,
n then i uncomment
Include /etc/httpd/mod_php.conf in /etc/httpd/httpd.conf
to enable php.
on /etc/httpd/php.ini i use
magic_quotes_gpc = On,
the problem is,
why my php did not show in my browser when i access page of php,
ex: localhost/xxx.php
the php page did not show,
but when i use console like this,
#php -r 'echo "Hello\n";'
the php was show,
why my php not show in my browser ???
i use konqueror and mozilla firefox for my browser.

please help me.....!!!!


All times are GMT -5. The time now is 09:18 PM.