1

I can not make my magento reindexing it gives me this error:

X-Powered-By: PHP/4.4.9 Content-type: text/html


Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/Darlin/www/shell/indexer.php on line 43

I connect in SSH via the terminal utility (mac)

10
  • What's the script look like around line 43 there (for example, lines 35-50)?
    – Mike
    Commented Apr 24, 2015 at 18:45
  • Line 43 protected function _getIndexer() { return $this->_factory->getSingleton($this->_factory->getIndexClassAlias()); } Commented Apr 24, 2015 at 18:47
  • Am I not mistaken? You are trying to run magento on php v.4.4.9 ?
    – zhartaunik
    Commented Apr 24, 2015 at 18:49
  • 1
    magento.com/resources/system-requirements better use php 5.4 or 5.5
    – zhartaunik
    Commented Apr 24, 2015 at 19:05
  • 4
    I'm voting to close this question as off-topic because it is about server setups specifically and not about Magento. The user needs to figure out how to setup a server correctly before even attempting to setup Magento.
    – kab8609
    Commented Apr 24, 2015 at 21:19

1 Answer 1

1

Update your PHP to 5.3 or Magento will not work.

8
  • How to update php? Commented Apr 24, 2015 at 19:04
  • 1
    Contact your server administer. PHP 4.4.9 came out in 2008. You might as well get a new server as most likely it is ancient.
    – kab8609
    Commented Apr 24, 2015 at 20:06
  • It is necessary that I contact my host who mean ovh? I'm at ovh Commented Apr 24, 2015 at 20:43
  • Yes it is necessary. You also need to make sure you have a host that caters to Magento as well. Don't expect to run Magento on a $5/month hosting plan. You can spend weeks just optimizing the server for Magento.
    – kab8609
    Commented Apr 24, 2015 at 21:05
  • On my server there is a file (.ovhconfig) I set the php5. but when I go to my ssh it still shows me the same error Commented Apr 24, 2015 at 21:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.