Re: [PHP] I can see my php code in browser?
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Wed, 27 Sep 2006 18:03:56 -0500 (CDT)
On Wed, September 27, 2006 2:53 pm, Robert Cummings wrote:
On Wed, 2006-09-27 at 21:45 +0200, afan@xxxxxxxx wrote:
hi,
I just installed suse se9 on one machine and didn't have a problem.
then
installed apache and works fine. installed php - didn't get any
error, but
when tested I was able to see my code (tested with <?php phpinfo();
?>) in
the browser. for installation used yast.
Didja start/stop Apache after installing PHP?
You need a line like one of the following in your Apache http.conf
file:
LoadModule php4_module /usr/local/php/phpWeb/.libs/libphp4.so
#LoadModule php5_module /usr/local/php/phpWeb/.libs/libphp5.so
The configure/install scripts will only dink with httpd.conf under
certain conditions, in my humble experience...
#1. They find it where they expect it to be
#2. It "looks" like what they expect inside -- If you've made changes,
or the Apache Dev Team made changes, then they can't automate their
changes to the file anymore.
You really do need to understand how that httpd.conf file works anway.
:-)
(you may not want all of them for your system):
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml .html
.htm
You forgot this:
..css .shtml .asp .cfm
[evil chuckle]
--
Like Music?
http://l-i-e.com/artists.htm
.
- References:
- I can see my php code in browser?
- From: afan
- Re: [PHP] I can see my php code in browser?
- From: Robert Cummings
- I can see my php code in browser?
- Prev by Date: Re: [PHP] Download files outside DocumentRoot Dir
- Next by Date: Re: [PHP] File Upload Security and chmod
- Previous by thread: Re: [PHP] I can see my php code in browser?
- Next by thread: Re: [PHP] I can see my php code in browser? [SOLVED]
- Index(es):