17452 Posts in 4473 Topics by 1971 members
Page: 1 2
|Go to End||Next >|
5 February 2008 at 1:44pm Last edited: 7 February 2008 3:33am
I have been hacking through the install, solving various problems and now this:
My host normally runs php4 and tells me I should add the following line to enable php5 in the .htaccess file:
AddHandler application/x-httpd-php5 .php
At the moment it is the ONLY thing I am adding (and indeed the only line present in .htaccess). The requirements tell me I should use php5 so I add the line in and hit the 'Re-chack requirements' button.
The site hangs after several minutes with a '500 Internal Server Error'.
If I remove the entry in .htaccess, it works fine (or rather, the installer page reappears). Any ideas? (I don't have access to the httpd.conf file, it's a shared hosting account).
6 February 2008 at 11:04am
Is there anything in an error log somewhere?
6 February 2008 at 1:47pm
Afraid not. The error_log in the root comes up with nothing. Does Silverstripe log anything anywhere?
7 February 2008 at 3:15am
Seems like I'm not the only one having Problems with PHP5 while installing SilverStripe. My Webhoster (1und1) supports PHP4 and 5, but 5 only with file-extension *.php5. Is there any chance to easily fix this than manually renaming every php file and editing source-code?
Thanks in advance
7 February 2008 at 3:28am
Is there no '.htaccess' file you can change?
7 February 2008 at 3:32am
With regard to my original issue, this site was a test site with no url forwarded to it (yet), so I was using the host's resolved server name with the account name '/~myaccname' appended to the end to access it. This appears to have been the issue in the reply to the support ticket I submitted:
"php5 will not function correctly when using the userdir extension to preview the site. This is due to a limitation on how this module works, and it cannot be avoided. You will need some sort of domain pointing to the account in order to preview php5 sites. You can, for example, park a sub domain on the primary domain and use that subdomain for testing."
I have parked a spare domain on the webspace and it seems quite happy now, so this one is solved.
7 February 2008 at 4:32am
I saw on another cms this line to use in 1and1 .htaccess files:
'AddType x-mapp-php5 .php'
Hope that helps.
7 February 2008 at 5:09am
it works! thanks for the hint.
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
to .htaccess in the root-directory.
Page: 1 2
|Go to Top||Next >|