How do I compress PHP files in cPanel?

Category: Phpbb

Wisar
Asked:
2011-12-30 12:30 pm EST

Hits: 4,937
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?

Cheers,
Will

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

0

Tim S.
Staff
9,967 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.

Thanks!

Tim S

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

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!