Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Getting Started > Installing (WEC Starter Package) > Problem with install - mod_rewrite/folder access
Total Posts: 12 - Pages (2): [1] 2
Author: Dave Partridge
Posted: Jul 12 2008 - 04:20 AM
Subject: Problem with install - mod_rewrite/folder access
I'm trying to install WEC on my host but have come across a problem. I can install the software and run the back end but if I try to look at the front end I just get 500 internal server errors.

I've run the server checker and this is the result:

-= PHP Scripting Test =-
OS Linux Passed
Version 5.2.5 Passed
Server API cgi Passed
Max Execution Time 30 Passed
Memory Limit 128M Passed
Max Upload Filesize 20M Passed
Required Functions success Passed
max_traversal success Passed

-= Email Test =-
email sending via mail() info Passed

-= MySQL Database Test =-
Status Running Passed
Client Version 5.0.51a Passed
SQL Safe Mode Passed
Persistent connection Success Passed
Server Version 5.0.51a-community Passed
Host Info Localhost via UNIX socket Passed

-= File Permissions Test =-
777 Permissions allowed Yes Passed
Minimum write permissions 0755 Passed
Symlinks Success Passed

-= Apache Web Server Test =-
Version 2 Passed
mod_rewrite unable to determine this setting due to the server configuration Warning
mod_security can't determine Warning
Allow Override Failed Failed
Overriding Apache settings with .htaccess files is not allowed.
Rewrite URLs Failed Failed
Rewriting URLs failed.

-= Graphics Test =-
GD library found Passed
GraphicsMagick library failed Failed
GraphicsMagick not installed
ImageMagick library found Passed

-= TYPO3 Test =-
Base Tag Failed
The base tag is empty and needs to be changed
to the address of your TYPO3 installation.
.htaccess file found Passed
RealURL failed Warning
Test couldn't run. The page we're checking for doesn't seem to exist anymore.
Please report this issue on the WEC Support forums.
TYPO3 index.php Success Passed
fileadmin Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.
uploads Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.
typo3temp Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.
typo3conf Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.


It seems that mod_rewrite doesn't work but also that it can't access the folers. I've set the folder permissions using chmod (as per the install guide) and it still doesn't want to play.

Any suggestions?
Author: Jeff Segars
Posted: Jul 14 2008 - 09:42 AM
Subject: re: Problem with install - mod_rewrite/folder access
Dave,
From the server checker output, it appears that AllowOverride isn't turned on in your server. This is the Apache setting that makes anything within an .htaccess file work. Since we ship an .htaccess file as part of the Starter Package, I'm guessing that its presence is generating the Internal Server Errors. Can you rename that file from .htaccess to .htaccess.bak and see if that clears things up?

In the best case scenario, your front page will still work but links between pages won't work because the .htaccess file is missing. We can help you change the configuration is this does turn out to be the case.

Thanks,
Jeff
Author: Dave Partridge
Posted: Jul 14 2008 - 12:07 PM
Subject: re: Problem with install - mod_rewrite/folder access
Cheers Jeff. I renamed the htaccess file as suggested but it doesn't seem to have fixed the problem.

By removing that it now seems to suggest that I haven't got PHP5 installed (even though I've set up a php5.ini file to ensure that it is, and I've also ensured that the memory is above the limit). I didn't change anything other than rename the .htaccess file to .htaccess.bak and it's gone even more belly up!

-= PHP Scripting Test =-
OS Linux Passed
Version 4.4.8 Passed
Server API cgi Passed
Max Execution Time 30 Passed
Memory Limit 8M Failed
The memory limit is too low.If you have access to the php.ini configuration file, please set the memory_limit
to at least 32M or ask your hosting company to do so.
Max Upload Filesize 2M Warning
Max upload file size is lower than the TYPO3 default. Consider raising
upload_max_filesize to at least 10M. This can be set in the php.ini configuration
file if you can access it, or ask your hosting company to do so.
Required Functions success Passed
max_traversal success Passed

-= Email Test =-
email sending via mail() info Passed

-= MySQL Database Test =-
Status Running Passed
Client Version 5.0.51a Passed
SQL Safe Mode Passed
Persistent connection Success Passed
Server Version 5.0.51a-community Passed
Host Info Localhost via UNIX socket Passed

-= File Permissions Test =-
777 Permissions allowed Yes Passed
Minimum write permissions 0755 Passed
Symlinks Success Passed

-= Apache Web Server Test =-
Version 2 Passed
mod_rewrite unable to determine this setting due to the server configuration Warning
mod_security can't determine Warning
Allow Override Failed Failed
Overriding Apache settings with .htaccess files is not allowed.
Rewrite URLs Failed Failed
Rewriting URLs failed.

-= Graphics Test =-
GD library found Passed
GraphicsMagick library failed Failed
GraphicsMagick not installed
ImageMagick library found Passed

-= TYPO3 Test =-
Base Tag Failed
The base tag is empty and needs to be changed
to the address of your TYPO3 installation.
.htaccess file not found Failed
The .htaccess file could not be found in your TYPO3 root directory. Please make sure
you copied it correctly from the WEC Starter Package to your web host.
RealURL failed Warning
Test couldn't run. The page we're checking for doesn't seem to exist anymore.
Please report this issue on the WEC Support forums.
TYPO3 index.php Success Passed
fileadmin Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.
uploads Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.
typo3temp Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.
typo3conf Could not access file over HTTP. Warning
File couldn't be read. Please check file permissions.
Author: Jeff Segars
Posted: Jul 14 2008 - 01:47 PM
Subject: re: Problem with install - mod_rewrite/folder access
Dave,
Thanks for the extra info. As I got to thinking about this a little more, I realized that it wouldn't be and issue with the .htaccess file. It can cause similar issues as to what you're seeing, but it would make both the frontend and backend inaccessible. I think there may be some other issues we can focus on instead.

When you did your initial install, did you start from the tar.gz package (that includes symlinks) or the zip package (no symlinks)? Can you also let us know where the site is hosted, as that may jog our memories from past experiences.

Thanks,
Jeff
Author: Dave Partridge
Posted: Jul 14 2008 - 05:15 PM
Subject: re: Problem with install - mod_rewrite/folder access
I installed from the tar.gz file by directly downloading to my hosting and extracting (using SSH, which I have to admit I hadn't ever used before!).

My hosting is with Heart Internet (http://www.heartinternet.co.uk/) - I have a Home Professional account there. If you need any more info then let me know.
Author: Jeff Segars
Posted: Jul 14 2008 - 06:53 PM
Subject: re: Problem with install - mod_rewrite/folder access
Thanks David! Looks like I might have been better off going with my gut feeling from my first post, but we'll see

Many hosts run php in a more secure environment called phpsuexec. phpsuexec has some limits on file ownership and permissions and we've seen this cause issues with the main index.php file that TYPO3 uses in the frontend. This index.php in your main directory is actually a symlink to typo3_src-4.2.1/index.php (or whatever version of TYPO3 you're running). If you rename the symlinked file and copy the actual file in it place, then that might do the trick for you.

Thanks,
Jeff
Author: Dave Partridge
Posted: Jul 16 2008 - 01:46 PM
Subject: re: Problem with install - mod_rewrite/folder access
Sorry it's taken a couple of days to reply - I had to re-do what I'd already done because I messed it up. I've done what you suggested by replacing the index.php and I'm a little closer. Instead of getting a 500 error, I'm getting something like:
Fatal error: Out of memory (allocated 3591372 (tried to allocate 1245184 bytes) in /home/sites/troikamusic.co.uk/public_html/test/typo3conf/temp_CACHED_psc976_ext_tables.php on line 2942

or
Fatal error: Out of memory (allocated 35651584) (tried to allocate 19456 bytes) in /home/sites/troikamusic.co.uk/public_html/test/typo3_src-4.2.1/t3lib/class.t3lib_tceforms.php on line 3367

or something else similar. It's no one particular file which is causing a problem. I've set the server memory to 256Mb and it's recognising this, so I'm not sure where the problem now lies.
Author: Dave Partridge
Posted: Jul 16 2008 - 01:57 PM
Subject: re: Problem with install - mod_rewrite/folder access
Also, I've noticed that if I try to edit a page in the backend it says:
A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.'

I've got the relevant folders set to 777 as the install guide says.

I've tried switching it to 770 but then I get
Forbidden

You don't have permission to access /typo3conf/ext/templavoila/mod1/index.php on this server.
Apache/2 Server at test.troikamusic.co.uk Port 80

I'm a little confused!
user picture Author: Mark Stephenson
Posted: Jul 16 2008 - 02:10 PM
Subject: re: re: Problem with install - mod_rewrite/folder access
Dave Partridge wrote:
Also, I've noticed that if I try to edit a page in the backend it says:
A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.'

I've got the relevant folders set to 777


Dave,

Do you also have these same permissions set for all the files and subfolders in the relevant folders?

In Him,
Mark
Author: Dave Partridge
Posted: Jul 18 2008 - 12:59 PM
Subject: re: Problem with install - mod_rewrite/folder access
I've double checked by changing all of the permissions again and ensuring it propogates to subfolders and files.

I'm still getting a fatal error (out of memory) when trying to view the frontend. In the back end, if I try to edit a page then it attempts to open/save index.php and when I open this file it is a php file which just says 'A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.'
Total Posts: 12 - Pages (2): [1] 2
You must login to post a message to this conference.