Installing new php from dreamhost wiki

hi. i’ve followed the dreamhost php wiki fully and when i get to step 6, i get this error:

Parse error: syntax error, unexpected T_FOREACH in /home/name/php/php-update.php on line 170

does anyone know what i’m doing wrong?

That’s a syntax error in the script, but I can’t tell what exactly it might be, as you only indicated that you “followed the dreamhost php wiki fully”, and there are several different wiki pages/scripts you might have used.

Could you provide the link to the instructions you are following, so we can take a look and maybe help you identify the problem?


i found my error. it was a typo after all. i was thinking i was in a different directory in the wrong domain. thanks for your help though!

You’re welcome, and I’m glad to hear you got it working. :slight_smile:


I am having the same problem, but I’m fairly certain that I am in the right domain/directory…do you still remember any further details as to what was wrong in your case?