Why makes simple changes after loading my site?

Whenever I modify (or even just save unchanged) the Perl file, it completely removes our server. I have no idea what the problem is. Permissions are correct. The encoding is correct. Encoding - UTF-8. The transmission mode was ASCII.

I'm not very experienced with Perl, but I have no idea what the problem is. The network administrator hosting our website does not know what the problem is.

Text editors I've tried: Dreamweaver, TextMate, Vim Operating systems I've tried: Mac OS X, Linux (Ubuntu) FTP clients I've tried: Transfer (Mac), Filezilla (Linux (Ubuntu))

It's not that this is bad code, I even tried to open and only save, and my backend still goes down.

The network administrator told me that he ran the files through the dos2unix converter and it worked immediately. I have of course tried this and it doesn't, especially since it doesn't make any sense as I've tried it in some of the most respected editors and I don't think it will make such drastic changes to the file type without some- either user login. (when I say respected Dreamweaver editors are not included in this mood).

I personally think this is some kind of server side problem, because I crossed my t and dotted mine with me regarding any possible client side problem, but I tried everything. Any opinions as to what is the root of this problem and any possible solutions? Thanks in advance.

+1


source to share


5 answers


Try setting binary mode in your FTP client. This will allow you to experiment with different line endings (dos2unix) on the client side without worrying about them being translated during transmission.



+4


source


I've had this problem in the past and the finalists were indeed the culprit. Your editor and / or FTP program may mangle lines. Running dos2unix on the server is a good test of the problem, but not the cause.



Generate an MD5 hash of the file after each save and transport step to find where it changes.

+3


source


You don't say which framework / server you are using.

Perhaps the server is reloading the file while it is still being written FTP or something? (For example, the file is incomplete when the server is reading it?)

Will restarting the server fix the problem after downloading the file?

+1


source


It looks like you are using dos2unix before the transfer, but the network admin is using it after. Perhaps in this case he is doing something different.

How many lines are there in the file? What is the size of the file before and after saving it after transferring it and after migrating and running dos2unix?

If it's just a line ending issue, you can point your network administrator at http://www.perlmonks.org/?node_id=586942 .

+1


source


Rebra's answer: No frameworks are used and I don't know which server this works on. This is basically a one person project on a shared host that has been pretty badly supported and I'm trying to clean up the house.

Yes it makes sense and I asked the server people about it, one of my first questions actually, but even if it does, I cannot restart Plesk (like cPanel). But thanks for that, you introduced the technical words / explanations that I've been thinking about all this time.

0


source







All Articles