Re: I can see my php code in browser?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux