Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-12 14:21:10

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

apache2 problems

Hello everyone.

I’ve moved our textpattern system from apache1.3 to apache2 and I’m struggling to get the configuration of apache2 setup correclty.

Here’s the symptoms

I go to the home page and the page is blank, there’s no error and there’s no code in the view source.

I create a php.php file and browse to that and it displays all the php5 and apache2 configuration using echo phpinfo()

So it’s serving php files as it should be.

I’m wondring if I’m missing any apache modules that I need, here’s the list, if anyone could offer any suggestions I’d be grateful.

core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status

Offline

#2 2008-03-12 14:57:19

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: apache2 problems

Here’s a bit more information from apaches’ logs

This is me going to the home address of the site in the access log
193.63.135.79 – - [12/Mar/2008:14:30:46 +0000] “GET / HTTP/1.1” 200 – “-” “Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-GB; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12”

So that get’s a 200 so as far as apache knows it’s doing what it should be doing.

When you restart apache2, /etc/init.d/apache2 restart, there is an error

[Wed Mar 12 14:30:26 2008] [error] [client 127.0.0.1] File does not exist: /htdocs

Now I’ve gone through my apache2.conf file, my /sites-enabled/000-default file and my conf.d file and there is not mention of /htdocs anywhere, only as part of the DocumentRoot in the 000-default file like this.

DocumentRoot /www/htdocs/

and then for some Directory definitions like this

<Directory /www/htdocs/>

The .htaccess file in the htdocs directory looks like this

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

Can anyone shed any light on this or point me in the right direction to look for errors?

Offline

#3 2008-03-12 15:24:17

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: apache2 problems

Bit more information

If I put this code into the top of the index.php file

<? echo ‘balls’; ?>

It prints balls if I browse to the domain name without adding index.php, so it looks like the rewrite in .htacess is working properly.

Getting closer now

:-)

Offline

#4 2008-03-12 17:20:04

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: apache2 problems

OK, I“m tracking it down

It seems like this section is failing in publush.php, it is being called in

if (!defined(“txpinterface”)) die(‘If you just updated and expect to see your site here, please also update the files in your main installation directory.’. ‘ (Otherwise note that publish.php cannot be called directly.)’);

I haven’t updated, I’ve simply moved them to another server running a newer version of apache and php, can anyone tell me what is going on?

Offline

#5 2008-03-12 18:07:59

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: apache2 problems

Can you still log in on the admin side (/textpattern) and view the diagnostics tab?

Offline

#6 2008-03-13 07:54:26

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: apache2 problems

Hi ruud

No mate, same response, a blank page with no code in the source.

I’m going to try and install a fresh textpattern install on the machine, see if I spot what’s wrong whilst doing that.

Offline

#7 2008-03-13 08:39:55

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: apache2 problems

I solved it

I hadn’t installed the php5-mysql. :-)

Thanks for helping Ruud.

Offline

Board footer

Powered by FluxBB