LinuxQuestions.org
Help answer threads with 0 replies.
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 03-27-2003, 10:58 PM   #1
sheryco
Member
 
Registered: Feb 2003
Location: FTWorth, TX
Distribution: Gentoo, Debian, CentOS, FreeBSD, NetBSD & OpenBSD
Posts: 55

Rep: Reputation: 15
Unhappy php issues


i cannot seem tp bring up any php pages on my web server. my httpd.conf has the index.php directive. Everytime i bring up a browser it gives me only the text form not the web format. What i'm actualy doing wrong i discovered it trying to install phpmyadmin. Someone please help
 
Old 03-28-2003, 12:23 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Did you actually
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php
in your httpd.conf? (assuming you're running
apache 1.3.x and php4)

Cheers,
Tink
 
Old 03-28-2003, 09:31 AM   #3
sheryco
Member
 
Registered: Feb 2003
Location: FTWorth, TX
Distribution: Gentoo, Debian, CentOS, FreeBSD, NetBSD & OpenBSD
Posts: 55

Original Poster
Rep: Reputation: 15
Thumbs up

Thank you for replying.
okay i got the AddType application/x-httpd-php .php
in the httpd.conf. so I guess the modules are not installed.
I was also wondering why the index.php is giving out the text format on the browser but i tried another script with a .php file in it pull it fine. I will look for the modules install it and tell you the results.
Thanbk you again
 
Old 03-28-2003, 10:03 AM   #4
iJasonT
LQ Newbie
 
Registered: Mar 2003
Posts: 29

Rep: Reputation: 15
there are three places within httpd.conf that you need to remove the "#" from
# LoadModule php4_module libexec/httpd/libphp4
# AddModule mod_php4.c

# AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps

You need to remove all the # from these to tell apache the you want to active these modules.

If you are not sure if you have PHP installed run

tail /var/log/httpd/error_log

you should see something like Apache/1.3.20 PHP/4.0.6 configured -- resuming normal operations

hope this helps
 
Old 03-30-2003, 07:12 PM   #5
sheryco
Member
 
Registered: Feb 2003
Location: FTWorth, TX
Distribution: Gentoo, Debian, CentOS, FreeBSD, NetBSD & OpenBSD
Posts: 55

Original Poster
Rep: Reputation: 15
Talking

Thank you very much it worked, i also had to add php-mysql and mod-php on my server. My phpMyAdmin is now functioning.
Thank you again.
 
  


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
apache2 , php, squirrelmail config issues cp0ff Linux - Software 0 10-18-2005 01:36 PM
php.ini / .htaccess memory issues rioguia Linux - Software 2 11-19-2004 02:41 PM
PHP compiling issues turbo_acura Linux - General 6 10-15-2004 12:17 PM
Apache 2, PHP and MYSQL Issues. carpediem Linux - Distributions 3 04-17-2004 09:11 AM
PHP 4.2 and Apache Issues Peejay Linux - Software 2 06-17-2002 12:22 PM


All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration