XUpload - Fatal error: Can't open log file

XUpload related questions

Moderator: admin

Message
Author
gsingle
Posts: 4
Joined: Apr 17, 2008 10:05 pm

Fatal error: Can't open log file

#1 Postby gsingle » Apr 17, 2008 10:10 pm

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?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Apr 18, 2008 6:23 am

chmod logs.txt to 666. It can't write into it after upload.

gsingle
Posts: 4
Joined: Apr 17, 2008 10:05 pm

No luck with 666

#3 Postby gsingle » Apr 18, 2008 8:10 am

Tried that already and changing the owner/group to apache.

gsingle
Posts: 4
Joined: Apr 17, 2008 10:05 pm

Where is the uploaded file?

#4 Postby gsingle » Apr 18, 2008 8:13 am

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.

gsingle
Posts: 4
Joined: Apr 17, 2008 10:05 pm

Fatal error: Can't open log file - caused by SElinux

#5 Postby gsingle » Apr 18, 2008 5:27 pm

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

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#6 Postby PilgrimX182 » Apr 21, 2008 7:50 am

Yes, log file and temp and uploads folders could be outside cgi-bin. I reccomend full path from system root.

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#7 Postby PilgrimX182 » Apr 22, 2008 8:16 am

Thanks for investigating this SELinux troubles, today faced these problems on new server. Totally weird! With is perl wasn't even able to resolve hostname IP. Will add info about this to troubleshooter.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests