Not able to populate dummy data in phosphorum initial install

Hi,

Installed phosphorum successfully on my WHM server. But when populating database using command usr/bin/php /home/xxxx/public_html/forum/forum seeder:populate , I am getting this message in command prompt

Start X-Powered-By: PHP/5.6.31 Content-type: text/html; charset=UTF-8

But no entries in database. When i check app/logs/application.log, it says,

[04-Aug-2017 17:53:34][DEBUG] [boot] Parsed options: ["seeder:populate"] [04-Aug-2017 17:53:34][DEBUG] [boot] Task definition: {"task":"seeder","action":"populate","params":[]} [04-Aug-2017 17:53:34][ERROR] Whoops\Exception\ErrorException: fwrite() expects parameter 1 to be resource, string given in file /home/xxxx/public_html/forum/forum on line 28 Stack trace:

Whoops\Exception\ErrorException->() /home/xxxxx/public_html/forum/forum:28
fwrite() /home/xxxx/public_html/forum/forum:28

I googled, did not get any solution. Tried different ways to my knowledge without success. Did anyone get this kind of error while installing? if so, any solutions?



3.0k
edited Aug '17

check your app/logs folder authorizations

He must be attribued to www-data group and have write access for this group

@phil67000: app/logs folder has read/write access. I did not get what www-data group?

If anybody has sql dummy data, can you please share the .sql file with me or is there any other way to import dummy data into database directly/manually ?



3.0k
edited Aug '17

See your apache.conf file

i have this in mine

# Utilisateur et Group sous lesquels les processus du serveur seront lanc├ęs
User www-data
Group www-data

when you create a folder acceded by apache ou have to do chown www-data:www-data folderName or at least chown xxxxxx:www-data folderName xxxxxx = the user owner of the files