Re: I think I messed up by Apache/PHP install...
"Jason Judge" <[email protected]> Sat, 7 Aug 2004 01:04:21 +0100
| Newsgroups | gmane.comp.cms.xaraya.curiosa |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
"mikespub" <[email protected]> wrote in message news:[email protected]... > In article <[email protected]>, "Jason Judge" <[email protected]> wrote: > >....and need to get it working again. So far as I can see, the PHP4 module is > >not loading, but I don't know why. I have tried enabling all the Apache log > >files (debug level) and can't see any errors anywhere. Any ideas? > > > >When I try to run a PHP page through a browser, it just downloads the file > >instead of executing it on the server. There are PHP directives in my > >httpd.conf, that used to work, but now give a syntax error (disabling those > >directives allows the httpd to start, but then PHP does not work). > > > >Basically, I don't know where to look next, as I have no errors to act on. > > > >Any PHP4/Apache experts out there? All I wanted was to enable libcurl > >support, and now my server is useless :-( > > > >-- JJ > > If you recompiled PHP with curl and recompiled Apache with that, then you > should probably re-compile a clean PHP version. You can check the > compiled-in Apache modules with httpd -l > > If you didn't recompile Apache and load PHP dynamically in your httpd.conf > file, then you can check the syntax of your httpd.conf file with httpd -t > > If your httpd.conf file gives errors like it doesn't understand php_value or > some other PHP directive, then PHP is not loaded and is probably buggy. > > Not much help, but it's a start :) Thanks - I think I'm getting there. The server uses some kind of templating system to generate the configuration files, and I think it is that system which is broken (some new templates are using some features which aren't properly implemented). One day I'll get around to reinstalling the latest server version from scratch and migrating the data...(now, I wish I had started down that track two days ago - the cost of a few new disks would have have been well worth it to save several days of trying to work out what is going wrong). Ah well, live a learn... -- JJ PS I've got the php module to load now, just need to get it to handle PHP-extension scripts.