Question

I have a DreamHost server, and I would like to install the fileinfo extension.

I managed to create a custom php.ini file that's cool, but I'm totally stuck at this part in their documentation:

Please make sure to run 'dos2unix fileinfo_ext.sh' from the shell if you use a Windows-based editor to create this file.

So I am on Windows and running PuTTY and I have no clue about this part.

I copied fileinfo_ext.sh to my cgi-bin directory where my custom php.ini file is, but how do I go further? I'm totally lost how to run this command.

How can I do it?

Was it helpful?

Solution

"dos2unix" is a utility used to convert file from Windows line endings (CR+LF) to Unix line endings (LF).

So if you use Notepad to edit the file it will have Windows line endings. So dos2unix should be used on your computer (for that file) before sending it by FTP (or executing it on the host if you have ssh access and they have dos2unix).

But if you already use an editor which supports converting to Unix line endings, like UltraEdit or Notepad++ then all you need is to do a "convert to Unix" before saving the file.

OTHER TIPS

You run the command as explained in the message. SSH to the server and login. Then cd to the location of the file, something like cd /path/to/your/site/cgi-bin and then run dos2unix fileinfo_ext.sh.

I hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top