Loading...
 
Architecture / Installation

Architecture / Installation


PHP file permissions and blank page displays intermittently - tiki-setup_base.php error, v. 1.8.3

posts: 6 Canada

A couple of weeks ago my ISP did some Apache and mod_php upgrades. During this process I lost access to my Tiki 1.8.3 site. I initially thought the problem had to do with the fact that all the PHP files had their User/Group/Other "x" permission removed. The ISP is not sure why or how this could have happened during the upgrade, but it definitely wasn't anything I did. I've spent several long wasted hours trying to figure out what's going on and have currently rolled the site back by reinstalling version 1.8.2.

The PHP mising "x" issue is the least of my worries. But that is something I want to get cleared it. It seems that everything I now extract a tar.gz file, none of the PHP files have the "x" permission set on U/G/O, whereas previously before mid-June 2004 they did. Weird, I know.

During my quick analysis of the situation, I looked at the Apache error log. There's a consistent PHP fatal error regarding a /tmp path not being available as coded in tiki-setup_base.php. The site will work for a while, then at some unpredictable point only blank pages will be presented. And that's when this Apache error starts showing up.

My ISP says there's plenty of space in /tmp and that they can see Apache creating new Tiki session files there.

posts: 2881 United Kingdom

Hi,

Only directories should have the x attribute set. Apart from those directories like templates_c need to be rw along with all content. which is probably the problem. The directory and content needs to be writable by apache.

Not sure what installation method you can do, if you have SSH they run ./setup.sh with suitable parameters.

Damian


posts: 6 Canada
Thanks Damian. What bothers me about this is that the site was working fine until my ISP did whatever they did and knocked it offline. It's still only working intermittently. I wiped out the 1.8.3 installation and reinstalled to 1.8.2, but same problem. The templates_c directory and content is writeable by the server, and I had run the setup script as ./setup.sh owner www 0277. Because this is shared hosting, I do end up with a lot of directory permission errors and have to make some changes by hand, but things have worked well up till a couple of weeks ago. I'll wait for final release of 1.9 and try that and hope it works ok.

posts: 6 Canada
Thanks again for this invaluable clue Damian. The templates_c directory and its contents are not writeable by www (Apache). Although, as I said, I've had no problems up till a couple of weeks ago, even when the setup.sh script returned "Operation not permitted" or "Permission denied," I think the root of the problem may be that the setup.sh may no longer works with my hosting provider. I'll ask them to change the permissions on those directories/subdirectories and files and see if that gets me back on track.