LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-23-2004, 08:50 AM   #1
ararag
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware 9.1
Posts: 3

Rep: Reputation: 0
php scripts return empty pages


I have just installed Slackware 9.1.
During install I decided to install apache, and it does work quite well. I get the "Hey, it worked !
The SSL/TLS-aware Apache webserver was
successfully installed on this website" - page when surfing to my machine.

The problem, however, is that php-pages won't show anything.
There's no error, the pages are just empty.
Running "php -f <filename>" works just fine, but through apache there's no output at all.
What's wrong?
Any help is appreciated.
 
Old 02-23-2004, 10:46 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Make sure you have this in your httpd.conf file in which you might need to either add or uncomment:

Code:
    # For example, the PHP 3.x module (not part of the Apache distribution - see
    # http://www.php.net) will typically use:
    #
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    #
    # And for PHP 4.x, use:
    #
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
And this:

Code:
# ==> mod_php configuration settings <==
#
# PACKAGES REQUIRED:  ossllibs.tgz (A series), mysql.tgz (AP series),
#                     gmp.tgz (GTK series), and apache.tgz (N series)
#
Include /etc/apache/mod_php.conf
And make sure that last portion that you do have a mod_php.conf file in your /etc/apache/ directory along with the httpd.conf file...

Cheers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return variables in scripts Elec490 Programming 8 08-22-2005 09:10 AM
My Apache2 fails to parse php-scripts in html pages 3-1415 Linux - Software 6 10-21-2004 05:59 AM
Php to return a binary not html logicdisaster Programming 3 10-07-2004 01:25 PM
php4 & apache installed but will not run web pages with scripts oberon-ken-obi Linux - Newbie 5 07-06-2004 08:00 AM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM


All times are GMT -5. The time now is 11:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration