InMotion Hosting Support Center

How do I compress PHP files in cPanel?

Category: Phpbb

2011-12-30 12:30 pm EST

Hits: 5,008
I can't seem to add a .PHP file to a ZIP archive while I can add files of other types with the same permissions from the same directory. Is this a security feature that can be disabled?


You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by InMotion Hosting staff


Tim S
13,821 Points
2011-12-30 1:25 pm EST
Hi Wisar,

Thanks for posting your question. I'm more than happy to assist you. I'm not aware of any security measure that would prohibit adding a PHP file to a ZIP archive. I went into my own VPS and attempted to add a test PHP file into a ZIP archive. It succeeded in creating a ZIP file with the PHP in it.

I did this through cPanel. Once in cPanel went to file manager and right clicked on the file. Then selected the "compress" option from the dropdown. At the prompt select "add to ZIP archive" and it will automatically compress the file for you.

If you need further assistance please feel free to contact us.


Tim S

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!