Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cpanel:enable-suphp [2010-02-13 00:41:52] garrett.plasky |
cpanel:enable-suphp [2012-10-24 00:18:47] shaun.reitan |
||
---|---|---|---|
Line 6: | Line 6: | ||
* Slightly more secure: Set directory permissions to 0770 and the owner to user: | * Slightly more secure: Set directory permissions to 0770 and the owner to user: | ||
- | What SuPHP allows is for the directory to remain owned by user: | + | What SuPHP allows is for the directory to remain owned by user: |
Sound good? If so, let's get started! | Sound good? If so, let's get started! | ||
+ | |||
+ | ==== Building SuPHP Support==== | ||
- Log into the WHM. Ensure you're running the latest build else if you are not you will be prompted to upgrade when running the next step. | - Log into the WHM. Ensure you're running the latest build else if you are not you will be prompted to upgrade when running the next step. | ||
Line 16: | Line 18: | ||
- Step 5 will have a screen with quite a few options on it, the one we are concerned about is the second option **SuPHP**. Tick the checkbox here, scroll down, and click **Save and Build**.\\ :!: For additional security, we also recommend enabling Suhosin on this screen as well. [[http:// | - Step 5 will have a screen with quite a few options on it, the one we are concerned about is the second option **SuPHP**. Tick the checkbox here, scroll down, and click **Save and Build**.\\ :!: For additional security, we also recommend enabling Suhosin on this screen as well. [[http:// | ||
- | Apache and PHP will now rebuild automatically for you, and you will not have any service downtime while this transpires. | + | Apache and PHP will now rebuild automatically for you, and you will not have any service downtime while this transpires. |
+ | |||
+ | ==== Enabling SuPHP as the Default Handler ==== | ||
- In the WHM, go to //Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration//, | - In the WHM, go to //Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration//, | ||
This setting is not retroactive for any files/ | This setting is not retroactive for any files/ | ||
+ | |||
+ | ==== Converting to suPHP Tips and Tricks ==== | ||
+ | |||
+ | === Fixing Permissions on files and folders === | ||
+ | |||
+ | When converting to suPHP one of the common problems admins see is customer websites showing " | ||
+ | |||
+ | <code console> | ||
+ | / | ||
+ | cd / | ||
+ | for i in *; find ./ -iname " | ||
+ | </ | ||
{{tag> | {{tag> |