You are not logged in.

#1 2009-09-04 23:14:31

TomB17
Member
Registered: 2009-09-02
Posts: 102

httpd not processing php correctly

I have a weird issue with a Jooma CMS.

Mysqld is up, httpd is up, php is installed.  I've updated php.ini to include the vhost directories.

The sites actually come up but they don't display perfectly.  Joomla's header, sidebar menu, and several modules display perfectly.  One of the news items is corrupt.  Jumping to Joomlaboard, I can read perfectly but can't post.

Clearly, php is mostly working.  I wouldn't see Joomla if it wasn't.

I originally thought the issue was a corrupted database so I restored from two different database backups.  All copies of the database function identically.

The system was running perfectly on Ubuntu four days ago when I shut it down.  I haven't formatted the drive that holds the mysql and web content.  I just mounted them and pointed the respective servers to the old data.

This is weird.  Any ideas?  Any suggestions on where to start looking?

Last edited by TomB17 (2009-09-04 23:15:28)

Offline

#2 2009-09-04 23:22:31

TomB17
Member
Registered: 2009-09-02
Posts: 102

Re: httpd not processing php correctly

By the way, I couldn't find anything interesting in the logs.

The site error log shows a whole lot of this type of thing:

[Fri Sep 04 17:02:39 2009] [error] [client 65.87.244.151] File does not exist: /usr/local/data/server/www/CarlsonSpeed.com/".$mosConfig_live_site.", referer: http://www.carlsonspeed.com/index.php?o … e&Itemid=1

Offline

#3 2009-09-05 05:46:15

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: httpd not processing php correctly

Are the paths to the site the exact same on both this and the Ubuntu setup? (/srv/vhosts/yourdomain vs /usr/local/data/server/www/yourdomain) Joomla does have some paths coded into its config, so they would need to be updated if the paths have changed. Or, duplicate the old setup so Joomla finds all the files it needs where it is looking for them.

Offline

#4 2009-09-05 12:55:32

TomB17
Member
Registered: 2009-09-02
Posts: 102

Re: httpd not processing php correctly

Thank you for the reply.

Paths are identical.  Oddly, most of the site renders properly but a couple of news items on the front page don't render and I can't post in the forums or read a thread.

At first, I thought the database was corrupt so I restored from two different backups taken on previous days.  Each time, the result is the same.

If you want to see the behavior, have a look at the site http://www.CarlsonSpeed.com/.

Offline

#5 2009-09-05 13:37:56

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: httpd not processing php correctly

Looks like Joomla uses short open tags (<? instead of <?php), which are disabled by default in Arch's php package. Edit /etc/php/php.ini and set short_open_tag to "On". Also, make sure that the open_basedir setting is configured correctly to include any directories that you're using.

Offline

#6 2009-09-05 18:30:28

TomB17
Member
Registered: 2009-09-02
Posts: 102

Re: httpd not processing php correctly

Thanks, fourtrelis.

That was it.  The site is rendering perfectly now.

Unfortunatley...  the forums are still not functioning correctly but that is clearly a different issue.

Offline

Board footer

Powered by FluxBB