Just purchased Pro, but I can't make it work.
I've been through the install instructions a few times as scoured this forum, but I can't find a solution. File permission are correct.
I just get a dialogue box "Fatal error: Can't open log file" after posting the upload form. Seems like it takes longer to display this with larger files. The upload/temp directories are always empty.
Any suggestions?
XUpload - Fatal error: Can't open log file
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
No luck with 666
Tried that already and changing the owner/group to apache.
Where is the uploaded file?
If the upload worked, why can't I find the resulting file? Is it removed again because of the error? The progress bar doesn't progress while the upload is happening, it just pauses and then the log file error. The pause is proportional to the size of the file.
Fatal error: Can't open log file - caused by SElinux
If you have SElinux enabled then perl isn't able to write anywhere in the cgi-bin directory and Xupload will fail with "Fatal error: Can't open log file".
You can fix this by executing the follwing commands in the cgi-bin directory after installing Xupload:
chcon -t httpd_sys_script_rw_t logs.txt
chcon -R -t httpd_sys_script_rw_t uploads
chcon -R -t httpd_sys_script_rw_t temp
This might be a useful addition to your install instructions.
Can you tell me if the uploads and temp directories and the logs.txt file can be placed outside cgi-bin or html dirs? Are the paths in the config file relative to the web servers cgi-bin root or the file system root?
Thanks,
Graham
You can fix this by executing the follwing commands in the cgi-bin directory after installing Xupload:
chcon -t httpd_sys_script_rw_t logs.txt
chcon -R -t httpd_sys_script_rw_t uploads
chcon -R -t httpd_sys_script_rw_t temp
This might be a useful addition to your install instructions.
Can you tell me if the uploads and temp directories and the logs.txt file can be placed outside cgi-bin or html dirs? Are the paths in the config file relative to the web servers cgi-bin root or the file system root?
Thanks,
Graham
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm