LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-13-2003, 10:04 PM   #1
vbp6us
Member
 
Registered: Sep 2002
Location: Redding, CA
Distribution: SuSE
Posts: 253

Rep: Reputation: 30
[PHP] How do I view PHP pages??


I installed php4, mysql, apache2 but when i try to open a file, sm_install.php, it opens it but it looks like its in source code view. In fact, i know it is. Im just opening it through the browser. Any suggestions? Im using SuSE 8.1.

Some said this when i asked them else where:

"PHP needs to be installed and setup through Apache, otherwise it wont parse correctly."

Is that true? If so, How would i do this?
 
Old 04-14-2003, 12:04 AM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Code:
LoadModule php4_module        lib/apache/libphp4.so
AddType application/x-httpd-php .php
Make sure you have the lines above in your httpd.conf and restart httpd.
 
Old 04-16-2003, 03:03 PM   #3
vbp6us
Member
 
Registered: Sep 2002
Location: Redding, CA
Distribution: SuSE
Posts: 253

Original Poster
Rep: Reputation: 30
That didn't really work for me so i reinstalled the OS. I like it now. I went back to apache 1.3.x and php4 and it works really nice now. Ive heard apache2 is in experimental phases right now.

Thanks for the help.
 
Old 04-16-2003, 03:26 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
Ive heard apache2 is in experimental phases right now
I think it's a bit farther than experimental...but the php webpage warns against using the 2.x series apache. I use the 1.3 myself and it works great with php.
 
Old 04-16-2003, 06:29 PM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by vbp6us
That didn't really work for me so i reinstalled the OS. I like it now. I went back to apache 1.3.x and php4 and it works really nice now. Ive heard apache2 is in experimental phases right now.

Thanks for the help.
I have run apache 2.0.4x series with PHP ( for about 8-9 months, if I remember right ) and haven't found a single hitch. Inorder for PHP to work with Apache 2.x, you have to configure it with the corresponding apache extenstions. Are you sure you enabled it?

Here's my PHP config.

./configure \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/usr/com \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-apxs2 \
--enable-so \
--enable-discard-path \
--enable-force-cgi-redirect \
--with-config-file-path=/etc/ \
--enable-libgcc \
--with-zlib \
--with-bz2 \
--with-dom=/usr/lib \
--with-dom-xslt=/usr/lib \
--with-dom-exslt=/usr/lib \
--enable-ftp \
--with-mysql=/usr \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-share \
--enable-openssl \
--enable-trans-sid
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
php 5.0 blank pages (fedora) spacy2003 Linux - Software 2 02-06-2005 01:34 PM
How can I view php pages in Konqueror? yoshitec Mandriva 2 09-11-2004 12:03 PM
PHP pages doesn't want to open in browser holdika Linux - Newbie 7 08-12-2004 11:32 AM
can't view php pages allan_y Linux - Software 2 07-23-2004 11:48 PM
loading html pages with php BaudRacer Programming 3 12-03-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:33 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
Open Source Consulting | Domain Registration