Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-23-2004, 09:50 AM   #1
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, 11:46 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

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

    # For example, the PHP 3.x module (not part of the Apache distribution - see
    # 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:

# ==> 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...



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 10:10 AM
My Apache2 fails to parse php-scripts in html pages 3-1415 Linux - Software 6 10-21-2004 06:59 AM
Php to return a binary not html logicdisaster Programming 3 10-07-2004 02:25 PM
php4 & apache installed but will not run web pages with scripts oberon-ken-obi Linux - Newbie 5 07-06-2004 09:00 AM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 03:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:51 PM.

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