Devam Ediyor

Upload Form (perl) not working after Server Upgrade

[url removed, login to view]

The uploader no longer works - it appears as if it is but the process is not completing and no progress bar and messages appear in the popup like before. This has been working without a problem until a recent server upgrade. The uploader works with PERL - when we asked the host they gave us the below explanation:

We tried to upload the file "[url removed, login to view]" using "[url removed, login to view]". However, we were not able to upload the file.

We suspected that the issue related to uploading files was due to "SELINUX". Please note that Security-Enhanced Linux (SELinux) is a mandatory access control (MAC) security mechanism implemented in the kernel. We checked the server "[url removed, login to view]" and could see that "SELINUX" is disabled in the server. Please refer the snippet provided below.

===========

root@oxygen [~]# cat /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

# enforcing - SELinux security policy is enforced.

# permissive - SELinux prints warnings instead of enforcing.

# disabled - SELinux is fully disabled.

SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:

# targeted - Only targeted network daemons are protected.

# strict - Full SELinux protection.

SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes

SETLOCALDEFS=0

root@oxygen [~]# sestatus

SELinux status: disabled

===========

Further checking, we have found the following error from the Apache error logs. Please refer the snippet provided below.

===========

root@oxygen [/home/bakerstr/public_html/cgi-bin/old]# tail -100 /usr/local/apache/logs/error_log | grep [url removed, login to view]

[Mon Apr 01 13:32:01 2013] [error] [client [url removed, login to view]] [Mon Apr 1 13:32:01 2013] [url removed, login to view]: CGI open of tmpfile: No such file or directory, referer: [url removed, login to view]

root@oxygen [/home/bakerstr/public_html/cgi-bin/old]#

===========

From our investigation, we could see that the error occurs due to the variable name "$CGITempFile::TMPDIRECTORY" in the "[url removed, login to view]" file. We checked the "[url removed, login to view]" file in the directory "/home/bakerstr/public_html/upload2/" and found that the upload directory of the domain "[url removed, login to view]" is "/home/bakerstr/public_html//cgi-bin/old/[url removed, login to view]". Please verify the same from the snippet provided below.

===========

root@oxygen [/home/bakerstr/public_html/upload2]# cat [url removed, login to view] | grep form

root@oxygen [/home/bakerstr/public_html/upload2]#

===========

Further, we checked the "/home/bakerstr/public_html//cgi-bin/old/[url removed, login to view]" file for the variable "$CGITempFile::TMPDIRECTORY". Please verify the same from the snippet provided below.

===========

root@oxygen [/home/bakerstr/public_html/upload2]# cat /home/bakerstr/public_html//cgi-bin/old/[url removed, login to view] | grep CGITempFile::TMPDIRECTORY

$CGITempFile::TMPDIRECTORY = $TempFile::TMPDIRECTORY = $temp_dir;

root@oxygen [/home/bakerstr/public_html/upload2]#

===========

We believe that the issue is with the path of the variable "$CGITempFile::TMPDIRECTORY". Hence, we request you to contact your developer to verify whether the path of the variable "$CGITempFile::TMPDIRECTORY" is set correct or not. Moreover, we have found that the use of the module "CPAN module CGI::UploadEasy" can also fix this issue. Please verify the same with your developer.

Please check this update and let us know if you have any further concerns.

Beceriler: CGI, Perl, PHP

Daha fazlasını görün: cgi open tmpfile file directory, php developer full form, linux kernel developer, index php cat, developer perl, 4 bar mechanism, full form of php developer, upload form, before after, apache network, php file upload form, linux check domain, upload http request, php popup pdf, update form access, system upgrade html, issue checking, server upgrade php, linux snippet, mac linux client, linux php upgrade, linux home server, set server 2013, apache contact form, fix system path

İşveren Hakkında:
( 291 değerlendirme ) London, United Kingdom

Proje NO: #4394810

Seçilen:

lepoitr

I'm interested in that project. I'm experienced (15+) perl web developer and linux administrator. I've read your description. Looks like a simple job for an hour or two to fix this perl script.

0 gün içinde 34$ USD
(1 Değerlendirme)
1.0