Re: [suse-security] mySQLl on Apache web server
Derik Whittaker wrote:
If you are saying that PHP does not work on a SuSE 7.3 box, you are wrong. I have one running right now, I used the PHP that comes with the install disks (4.06) and I have no problems.
I have been using SuSE since 6.4 so I am not new to this great distro. I installed 7.3 on a server at home and a laptop and upgraded from 7.1 to 7.3 at work and PHP does not work on any of them. When apache loads it shows the PHP4 module loading but when accessing the php docs it only wants to download the page to ny harddrive. So this tels me it does not work with 7.3 stock install. I installed phpgroupware for the test. -- Ken Schneider Senior UNIX Administrator Network Administrator
I am not new to this great distro either, and I have about 10 servers anywhere from 7.0-7.3 running PHPgroupware just fine, even after recent php4 update. Your problem seems to originate from an error in your /etc/httpd/httpd.conf Check if you have these lines in your config file. <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule> On Thursday 14 March 2002 11:35, Ken Schneider wrote:
Derik Whittaker wrote:
If you are saying that PHP does not work on a SuSE 7.3 box, you are wrong. I have one running right now, I used the PHP that comes with the install disks (4.06) and I have no problems.
I have been using SuSE since 6.4 so I am not new to this great distro. I installed 7.3 on a server at home and a laptop and upgraded from 7.1 to 7.3 at work and PHP does not work on any of them. When apache loads it shows the PHP4 module loading but when accessing the php docs it only wants to download the page to ny harddrive. So this tels me it does not work with 7.3 stock install. I installed phpgroupware for the test.
-- Alex Levit Senior Network Engineer Kel-Tek Inc. TEL: 626-571-6927 FAX: 626-571-8794 'Alex@kel-tek.com'
On Thursday, March 14, 2002, at 11:35 AM, Ken Schneider wrote:
Derik Whittaker wrote:
If you are saying that PHP does not work on a SuSE 7.3 box, you are wrong. I have one running right now, I used the PHP that comes with the install disks (4.06) and I have no problems.
I have been using SuSE since 6.4 so I am not new to this great distro. I installed 7.3 on a server at home and a laptop and upgraded from 7.1 to 7.3 at work and PHP does not work on any of them. When apache loads it shows the PHP4 module loading but when accessing the php docs it only wants to download the page to ny harddrive. So this tels me it does not work with 7.3 stock install. I installed phpgroupware for the test.
Hmmm...if your browser wants to download the file to your disk, then it sounds like you need to set your browser to display files that end in ".php". But that sounds very odd that it would do that...are you using a weird php extension like ".php4" or something? If it's just displaying the page with the PHP code, then apache probably doesn't know it's supposed to send that file through PHP. Compare your PHP file extensions with the ones specified in httpd.conf. It's possible the upgrade overwrote your previous httpd.conf. --Jeremy
Hi! I've also experienced on a SuSE 7.0 server, that apache + PHP upgrade does'nt work (it was about 10 months ago, so I don't remember the error messages).... But it was a hard problem for me, so in the end I've downloaded the sources (Apache, PHP), and compiled my own "webserver". But the SuSE 7.3 - as I see - does'nt have such a problem. (I've upgraded few weeks ago my PHP successfully!) Ferenc
On 14 March 2002, Ken Schneider wrote:
I have been using SuSE since 6.4 so I am not new to this great distro. I installed 7.3 on a server at home and a laptop and upgraded from 7.1 to 7.3 at work and PHP does not work on any of them. When apache loads it shows the PHP4 module loading but when accessing the php docs it only wants to download the page to ny harddrive. So this tels me it does not work with 7.3 stock install. I installed phpgroupware for the test.
Well I am new to SuSE, but not to web programming. When a browser attempts to "save" an HTML response to disk that means that the web server sent a content-type header that told the browser it was receiving a file that should be saved rather than one which should be displayed. Others have already suggested checking your httpd.conf to be sure your webserver is configured properly. I'm running a fresh stock install of SuSE 7.3 Pro on my laptop and on two servers at work, and both PHP and MySQL operate just fine. If you want to see what your webserver is returning when you request a page through your browser it is very easy. Just telnet to port 80 and type in the request. The webserver response including headers will be displayed in your console. The headers should help you determine why the browser is trying to save the file. For example (the -K says not to try to "log in"): telnet -K 10.64.85.11 80 GET / HTTP/1.0 <enter> <enter> The two empty CR are necessary to tell the webserver you have finished your request. The response will be displayed below the request. Daniel Hallmark
participants (5)
-
Alex Levit
-
Daniel Hallmark
-
Jeremy Buchmann
-
Ken Schneider
-
Ősz Ferenc