installerHook: Could not find custom/install/install_hooks.php

Hello,
i need help, please
i can not install Suitecrm not on my my VM not on a hosted Server the same Error
Download SuiteCRM 7.3.2
Chmod 777 or 775 the same error
PHP Version 5.3.22
Linux localhost 2.6.18-406.el5 #1 SMP Tue Jun 2 17:25:57 EDT 2015 x86_64

The error:

2015-10-29 10:28:52…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 10:28:52…calling handleSugarConfig()
2015-10-29 10:28:52…calling handleHtaccess()
2015-10-29 10:28:52…calling handleDbCharsetCollation()
2015-10-29 10:29:33…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 10:29:35…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 10:29:40…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 10:29:44…Begin DB Check Process *************
2015-10-29 10:29:44…testing with mysql:mysqli
2015-10-29 10:29:44…Basic form info is valid, continuing Process.
2015-10-29 10:29:44…Testing user account…
2015-10-29 10:29:44…Connection made using host: localhost, usr: root
2015-10-29 10:29:44…Testing priviliged account…
2015-10-29 10:29:44…Connection made using host: localhost, usr: root
2015-10-29 10:29:44…DB not selected, will create suitecrm
2015-10-29 10:29:44…Passed DB install check
2015-10-29 10:29:44…SUCCESS:: no errors detected!
2015-10-29 10:29:44…End DB Check Process *************
2015-10-29 10:29:44…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 10:29:45…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 10:29:47…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 10:29:47…calling handleSugarConfig()
2015-10-29 10:29:47…calling handleHtaccess()
2015-10-29 10:29:47…calling handleDbCreateDatabase()
2015-10-29 10:29:47…looping through all the Beans and create their tables
2015-10-29 10:29:47…processing table acl_actions
2015-10-29 10:29:47…creating table acl_actions
2015-10-29 10:29:47…creating Relationship Meta for ACLAction
2015-10-29 10:29:47…processing table acl_roles
2015-10-29 10:29:47…creating table acl_roles
2015-10-29 10:29:47…creating Relationship Meta for ACLRole
2015-10-29 10:29:47…processing table relationships
2015-10-29 10:29:47…creating table relationships
2015-10-29 10:29:47…creating Relationship Meta for Relationship
2015-10-29 10:29:47…processing table leads

System Linux localhost 2.6.18-406.el5 #1 SMP Tue Jun 2 17:25:57 EDT 2015 x86_64
Build Date Feb 23 2013 11:21:36
Configure Command ‘./configure’ ‘–build=x86_64-redhat-linux-gnu’ ‘–host=x86_64-redhat-linux-gnu’ ‘–target=x86_64-redhat-linux-gnu’ ‘–program-prefix=’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘–datadir=/usr/share’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib64’ ‘–libexecdir=/usr/libexec’ ‘–localstatedir=/var’ ‘–sharedstatedir=/usr/com’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–cache-file=…/config.cache’ ‘–with-libdir=lib64’ ‘–with-config-file-path=/etc’ ‘–with-config-file-scan-dir=/etc/php.d’ ‘–disable-debug’ ‘–with-pic’ ‘–disable-rpath’ ‘–without-pear’ ‘–with-bz2’ ‘–with-exec-dir=/usr/bin’ ‘–with-freetype-dir=/usr’ ‘–with-png-dir=/usr’ ‘–with-xpm-dir=/usr’ ‘–enable-gd-native-ttf’ ‘–without-gdbm’ ‘–with-gettext’ ‘–with-gmp’ ‘–with-iconv’ ‘–with-jpeg-dir=/usr’ ‘–with-openssl’ ‘–with-zlib’ ‘–with-layout=GNU’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-magic-quotes’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-sysvmsg’ ‘–with-kerberos’ ‘–enable-ucd-snmp-hack’ ‘–enable-shmop’ ‘–enable-calendar’ ‘–without-sqlite’ ‘–with-libxml-dir=/usr’ ‘–enable-xml’ ‘–with-system-tzdata’ ‘–with-apxs2=/usr/sbin/apxs’ ‘–without-mysql’ ‘–without-gd’ ‘–disable-dom’ ‘–disable-dba’ ‘–without-unixODBC’ ‘–disable-pdo’ ‘–disable-xmlreader’ ‘–disable-xmlwriter’ ‘–without-sqlite3’ ‘–disable-phar’ ‘–disable-fileinfo’ ‘–disable-json’ ‘–without-pspell’ ‘–disable-wddx’ ‘–without-curl’ ‘–disable-posix’ ‘–disable-sysvmsg’ ‘–disable-sysvshm’ ‘–disable-sysvsem’
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
Additional .ini files parsed /etc/php.d/curl.ini, /etc/php.d/eaccelerator.ini, /etc/php.d/fileinfo.ini, /etc/php.d/gd.ini, /etc/php.d/imap.ini, /etc/php.d/json.ini, /etc/php.d/mbstring.ini, /etc/php.d/mcrypt.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/phar.ini, /etc/php.d/zip.ini
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS
PHP Extension Build API20090626,NTS
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib., bzip2., convert.iconv., string.rot13, string.toupper, string.tolower, string.strip_tags, convert., consumed, dechunk, mcrypt., mdecrypt.

Hi,

If the first install did not run correctly, likely due to a permissions issue, reruns seemingly produce the same issue.
Another forum post states that they resolved this issue by "clearing out the install folder followed by a clean install. "
If you do this, after Downloading & Extracting a new SuiteCRM Instance, Make sure to set the permissions before beginning the install process.

As you are running centOS, i’d recommend:
sudo chown -R apache:apache .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php

and run the permissions commands again after installing.

1 Like

Hello.

Many thanks is working.After step 8 from install i see the smae error but i cn loging and all works fine.
In the logs allways i have the error :slight_smile:
2015-10-29 11:51:00…insert defaults into config table
2015-10-29 11:51:00…Creating default users
2015-10-29 11:51:00…Creating default scheduler jobs
2015-10-29 11:51:00…Enable SugarFeeds
2015-10-29 11:51:00…Installation has completed ********* :slight_smile: :slight_smile: :slight_smile: :cheer: :wink: B) :slight_smile: :slight_smile: :woohoo:
2015-10-29 11:51:05…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 11:51:12…installerHook: Could not find custom/install/install_hooks.php
2015-10-29 11:51:14…installerHook: Could not find custom/install/install_hooks.php

Greetings from Bavaria

As far as I know, it’s not a critical error.
It’s simply stating that it could not find these custom install files.
These custom install_hooks files are used to perform custom work when installing, so if you don’t have these then it shouldn’t cause any issues at this point.

I had this issue with Windows and fixed it by adding the following lines of PHP scripting into the install.php file:

if(is_dir('custom')){
    chmod('custom', 0777);
}

Note, as I was using localhost then 0777 is fine; if you’re installing on a server that could be public facing, consider what file permissions to set.

Regards,

Shaun.