i tried
elgg 1.8.0.1
on windows XP and it installed successfully but when i tried on fedora 12 it is not able to install. here is what happens i extracted the zip file for elgg 1.8.0.1 in/var/www/html
now when i usefirefox
to go to the urlhttp://localhost/elgg-1.8.0.1
it asks me whether i want to open or saveinstall.php
,but when i open it with a text editor or if i save it and then open it its an empty file. The size of file is 0 bytes.
And when i use Konqueror to do the above it displays a timeout error instantly(at the moment i press enter).i checked the error log of apache and it displays the following line
child pid 2147 exit signal Segmentation Fault(11)
I was able to install elgg 1.7.11 on fedora successfully,also i am able to run other php files nicely.I wonder what can go wrong *because elgg 1.8.0.1 installs successfully in windows XP. (Note:I have the appropriate permissions for reading writing and executing scripts in the elgg 1.8.0.1 directory)
UPDATE:
i triedstrace php install.php
and i got a long trace of which i am only showing the last few linesmmap2(NULL, 11905, PROT_READ, MAP_SHARED, 3, 0) = 0xb77cb000 munmap(0xb77cb000, 11905) = 0 close(3) = 0 getdents(4, /* 0 entries */, 32768) = 0 time(NULL) = 1317422887 access("/usr/share/zoneinfo/Asia/Calcutta", R_OK) = 0 access("/var/www/html/elgg-1.8.0.1/engine/settings.php", R_OK) = -1 ENOENT (No such file or directory) --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped)
Now any idea why there is this segmentation fault? I have read that infinite recursive function calls can cause seg faults but if that was the problem it wouldnt have run on windows. If i try to include a lot of files with
include
orrequire
orrequire_once
can it lead to php causing a segmentation fault?
Answer
There was a bug in my php version. Updating to a later version solved the issue.
Attribution
Source : Link , Question Author : lovesh , Answer Author : lovesh