Difference between revisions of "Easy Plesk Install"
(→Configure your cron jobs) |
|||
(12 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
# Click back to the '''Websites & Domains''' tab in the top menu: <br>[[Image:Plesk-TopMenu.png]] | # Click back to the '''Websites & Domains''' tab in the top menu: <br>[[Image:Plesk-TopMenu.png]] | ||
# Click on the File Manager icon. <br/>[[Image:Plesk-FileManagerIcon.png]] | # Click on the File Manager icon. <br/>[[Image:Plesk-FileManagerIcon.png]] | ||
− | # | + | # In the directory listing click on the '''httpdocs''' link. ''(This tutorial assumes you are installing in the root of your site.)''<br/>[[Image:Plesk-httpdocs.png]] |
− | # Click on | + | # Click on the '''Add New File''' icon: <br/>[[Image:Plesk-AddNewFile.png]] |
− | # | + | # Make sure the '''Upload a File''' option is selected, Then click the '''Choose File''' button to browse for and select the AWBS Full install Zip you have downloaded from AWBS.<br/>[[Image:Plesk-UploadFile.png]] |
− | # | + | # In the Line Breaks option make sure '''do not modify''' is selected. Then click the '''Ok''' Button. |
− | # | + | # Once that is completed click the '''Add New File''' icon again and choose the license.dat file you got when you purchased AWBS. |
− | # When the | + | # In the Line Breaks option make sure '''do not modify''' is selected. Then click the '''Ok''' Button. |
− | # | + | # When the uploads are complete, click on the checkbox beside the AWBS full install zip. <br/>[[Image:Plesk-AWBSCheckboxFile.png]] |
− | + | # Then in the top options above the directory listing click the '''Extract Files''' link <br/>[[Image:Plesk-ExtractFilesIcon.png]] | |
+ | |||
+ | File upload is now complete. | ||
---- | ---- | ||
+ | |||
===Edit dbconfig.php file=== | ===Edit dbconfig.php file=== | ||
---- | ---- | ||
− | # | + | # From the same File Manager window used in the previous step navigate to the includes folder by clicking on the folder name.<br>[[Image:Plesk-SelectIncludes.png]] |
− | + | # Scroll down in the listing until you find dbconfig.php. You will most likely need to go ahead a few pages, or use the display all link.<br/>Click on the edit icon beside the file when you find it:<br> [[Image:Plesk-EditIcon.png]] | |
− | # Scroll down in the listing until you find dbconfig.php. <br/>Click on the | + | # Find and Remove the ''$needs_edit=1;'' line: <br/>[[Image:Plesk-NeedsEdit.png]] |
− | + | # Find the Database information lines. This is where you will need the Database Name, Username, and Password as previously noted in the [[#Create_Database|Create Database]] section.<br/>[[Image:Plesk-DBinfoPreedit.png]] | |
− | + | # Edit these lines with your database information:<br/>[[Image:Plesk-DBinfoPostedit.png]]<br/>(Enter your information between the quotes in each line, overwriting the sample data that is there) | |
− | + | # Find the Workdir information line:<br/>[[Image:Plesk-WorkdirPreedit.png]] | |
− | # Find and Remove the ''$needs_edit=1;'' line: <br/>[[Image: | + | # Edit this line with your correct path to your files:<br/>[[Image:Plesk-WorkdirPostedit.png]]<br>Most Plesk servers paths would be like this:''/var/www/vhosts/domain.com/httpdocs'' Substitute <nowiki>'domain.com'</nowiki> with your AWBS Domain. |
− | # Find the Database information lines. This is where you will need the Database Name, Username, and Password as previously noted in the [[#Create_Database|Create Database]] section.<br/>[[Image: | + | # Find the Cookie Domain information line:<br/>[[Image:Plesk-CookieDomainPreedit.png]] |
− | # Edit these lines with your database information:<br/>[[Image: | + | # Edit this line with your domain name preceded by a dot:<br/>[[Image:Plesk-CookieDomainPostedit.png]] |
− | # Find the Workdir information line:<br/>[[Image: | + | # In the Save Settings section make sure '''US-ASCII''' is selected in the '''Save in the following encoding:''' box.<br>[[Image:Plesk-SavingSettings.png]] |
− | # Edit this line with your correct path to your files:<br/>[[Image: | + | # '''Line break type''' should be set to '''do not modify'''. |
− | # Find the Cookie Domain information line:<br/>[[Image: | + | # Click the '''Save''' button. |
− | # Edit this line with your domain name preceded by a dot:<br/>[[Image: | + | |
− | # | + | |
− | # | + | |
---- | ---- | ||
Line 125: | Line 125: | ||
===Delete the install directory=== | ===Delete the install directory=== | ||
---- | ---- | ||
− | # | + | # Click back to the '''Websites & Domains''' tab in the top menu: <br>[[Image:Plesk-TopMenu.png]] |
− | # | + | # Click on the File Manager icon. <br/>[[Image:Plesk-FileManagerIcon.png]] |
− | # Click on the install directory name | + | # In the directory listing click on the '''httpdocs''' link. ''(This tutorial assumes you are installing in the root of your site.)''<br/>[[Image:Plesk-httpdocs.png]] |
− | # In the top | + | # Click on the checkbox beside the '''install''' directory name.<br>[[Image:Plesk-InstallFolder.png]] |
+ | # In the options at the top of the directory listing click the '''Remove''' option.<br>[[Image:Plesk-RemoveIcon.png]] | ||
+ | # On the following screen, check the '''Confirm removal''' box.<br>[[Image:Plesk-ConfirmRemoval.png]] | ||
+ | # Click on the '''Ok''' button. | ||
---- | ---- | ||
===Secure the admin, includes and tools directories=== | ===Secure the admin, includes and tools directories=== | ||
---- | ---- | ||
− | # | + | # Click back to the '''Websites & Domains''' tab in the top menu: <br>[[Image:Plesk-TopMenu.png]] |
− | # In the | + | # Click on the '''Show Advanced Operations''' link.<br>[[Image:Plesk-AdvancedOptions.png]] |
− | # Click on the | + | # In the new options box that opens, select the '''Password-protected Directories''' link.<br>[[Image:Plesk-PasswordProtect.png]] |
− | # | + | # Click on the '''Add Protected Directory''' icon. [[Image:Plesk-AddProtectedDirectoryIcon.png]] |
− | # Enter some text as desired in the Protected | + | # In the '''Directory Name''' box enter '''/admin''' for the admin directory.<br>[[Image:Plesk-ProtectedFolderSettings.png]] |
− | # Click the ''' | + | # Make sure the '''Document Root''' box is checked. |
− | # If successful you should see the following | + | # Enter some text as desired in the '''Title of the Protected area''' box. (This will display in browser's password mask) |
− | # | + | # Click the '''Ok''' button. |
− | # Enter | + | # If successful you should see the following:<br>[[Image:Plesk-AdminFolderAddUser.png]] |
− | + | # Click on the '''/admin''' folder link as shown above. | |
− | + | # You will then need to click on the '''Add New User''' icon.<br>[[Image:Plesk-ProtectedFolderUserAddIcon.png]] | |
− | + | # Enter the desired Username and Password for accessing this folder.<br>[[Image:Plesk-CreateUserForProtectFolder.png]] | |
+ | # Click the '''Ok''' button. | ||
'''Remember these logins will be needed by all who enter the protected directory. This will include any AWBS users who you give any admin rights to.''' | '''Remember these logins will be needed by all who enter the protected directory. This will include any AWBS users who you give any admin rights to.''' | ||
− | '''Repeat above for the includes and tools directories.''' | + | '''Repeat above for the /includes and /tools directories.''' |
---- | ---- | ||
===Configure your cron jobs=== | ===Configure your cron jobs=== | ||
---- | ---- | ||
− | # | + | # Click back to the '''Websites & Domains''' tab in the top menu: <br>[[Image:Plesk-TopMenu.png]] |
− | # | + | # Click on the '''Show Advanced Operations''' link.<br>[[Image:Plesk-AdvancedOptions.png]] |
+ | # In the new options box that opens, select the '''Scheduled Tasks''' link.<br>[[Image:Plesk-ScheduledTasksIcon.png]] | ||
+ | # Click on the user that you would like to run the crons under, typically this is your Plesk username.<br>[[Image:Plesk-CronSelectUser.png]] | ||
+ | # Click on the '''Schedule New Task''' icon.<br>[[Image:Plesk-ScheduleNewTaskIcon.png]] | ||
# Edit the Minute and Hour fields so that you have scheduled for once per day at a low traffic time on your server. Example: If you enter 0 for Minute and 5 for Hour, this will run the updtransfers.php cron at 5:00 AM each day. | # Edit the Minute and Hour fields so that you have scheduled for once per day at a low traffic time on your server. Example: If you enter 0 for Minute and 5 for Hour, this will run the updtransfers.php cron at 5:00 AM each day. | ||
− | # Enter ''php -f / | + | # Enter ''php -f /var/www/vhosts/domain.com/httpdocs/tools/updtransfers.php'' in the Command field. (Substitute your domain in place of 'domain.com' and do not paste the quotes)<br>[[Image:Plesk-Updtransfers.png]] |
− | # | + | # Set '''Day of the Month''', '''Month''', '''Day of the week''' to '''*''' to allow the cron to run everyday. |
− | # | + | # Click the '''Ok''' button. |
+ | # Configure ''updateexp.php'' also for once per day, but at a different time than the ''updtransfers.php'' cron. You can copy the command field from the original, then just edit the file name ''updtransfers.php'' to ''updateexp.php'' and change the Hour, then save. | ||
# Repeat for ''invoice_cron.php''.<br>NOTE: It is advised to run the ''invoice_cron.php'' after the ''updateexp.php'' and ''updtransfers.php'' files each day. | # Repeat for ''invoice_cron.php''.<br>NOTE: It is advised to run the ''invoice_cron.php'' after the ''updateexp.php'' and ''updtransfers.php'' files each day. | ||
− | # Repeat for ''master_cron.php'', however change the Minute field to */10 and the Hour field to *. This will run the ''master_cron.php'' every 10 minutes.<br>[[Image: | + | # Repeat for ''master_cron.php'', however change the Minute field to */10 and the Hour field to *. This will run the ''master_cron.php'' every 10 minutes.<br>[[Image:Plesk-MasterCron.png]] |
+ | # Once all cron jobs are added, click the '''Settings''' icon.<br>[[Image:Plesk-CronSettings.png]] | ||
+ | # Enter in an e-mail address to alert you at if a Cron job fails or creates an error.<br>[[Image:Plesk-CronSettingsInfo.png]] | ||
+ | # Click the '''Ok''' button when complete. | ||
Once you are satisfied your crons are functioning properly (after configuring and testing your AWBS install), you can remove your email address to minimize your incoming emails. | Once you are satisfied your crons are functioning properly (after configuring and testing your AWBS install), you can remove your email address to minimize your incoming emails. | ||
Installation is complete, now you can login as super admin and start configuring, customizing and testing. | Installation is complete, now you can login as super admin and start configuring, customizing and testing. |
Latest revision as of 00:00, June 24, 2011
Contents
Easy Plesk Install
(Note: this page is based on Plesk 10. Icons and links may have different but similar names/icons if you are using a different version of Plesk)
Login to Plesk
Create Database
- Click Websites & Domains tab in the top menu:
- Click the Databases Icon.
- Click the Add New Database on the Databases page:
- Enter the desired database name in the Database Name field, and Type is set to mySQL
- Click the Ok button.
- On the next page click on the Add New Database User icon.
- Enter the Database username you would like to use, as well as a password.
- Click the Ok button.
- Document your db name, username and password for future reference.
Upload files
- Click back to the Websites & Domains tab in the top menu:
- Click on the File Manager icon.
- In the directory listing click on the httpdocs link. (This tutorial assumes you are installing in the root of your site.)
- Click on the Add New File icon:
- Make sure the Upload a File option is selected, Then click the Choose File button to browse for and select the AWBS Full install Zip you have downloaded from AWBS.
- In the Line Breaks option make sure do not modify is selected. Then click the Ok Button.
- Once that is completed click the Add New File icon again and choose the license.dat file you got when you purchased AWBS.
- In the Line Breaks option make sure do not modify is selected. Then click the Ok Button.
- When the uploads are complete, click on the checkbox beside the AWBS full install zip.
- Then in the top options above the directory listing click the Extract Files link
File upload is now complete.
Edit dbconfig.php file
- From the same File Manager window used in the previous step navigate to the includes folder by clicking on the folder name.
- Scroll down in the listing until you find dbconfig.php. You will most likely need to go ahead a few pages, or use the display all link.
Click on the edit icon beside the file when you find it:
- Find and Remove the $needs_edit=1; line:
- Find the Database information lines. This is where you will need the Database Name, Username, and Password as previously noted in the Create Database section.
- Edit these lines with your database information:
(Enter your information between the quotes in each line, overwriting the sample data that is there) - Find the Workdir information line:
- Edit this line with your correct path to your files:
Most Plesk servers paths would be like this:/var/www/vhosts/domain.com/httpdocs Substitute 'domain.com' with your AWBS Domain. - Find the Cookie Domain information line:
- Edit this line with your domain name preceded by a dot:
- In the Save Settings section make sure US-ASCII is selected in the Save in the following encoding: box.
- Line break type should be set to do not modify.
- Click the Save button.
Run the install script
Open a new browser window. Surf to http://[your_AWBS_domain]/install/install.php (Substitute your domain name for [your_AWBS_domain])
Note: You must have read the AWBS license agreement and agree to abide by the terms to continue with the install.
Once you have read the license agreement, Check the box and click Begin Install
Welcome: (License Check)
The next step is to verify your license. You should see something like the following:
Once the license has been verified click the box at the bottom of the page labelled Continue With Install
Note: Error 5 indicates the license.dat file is missing. Be sure you have uploaded the license.dat file to the same directory that you uploaded the AWBS files.
Error 3 indicates your server cannot reach our license database via port 80. Ensure your server has internet access via port 80.
Step 1:
The next step is to check your php.ini configuration settings and make sure everything is ready to go.
You should see something like the following:
Once the above information has been tested, click the box at the bottom of the page labelled Continue to step 2
Step 2:
The next step is to check your database settings and make sure everything is ready to go.
You should see something like the following:
Once the above information has been tested, click the box at the bottom of the page labelled Continue to step 3
Step 3:
The next step is to check your database structure and make sure the database is ready to go.
You should see something like the following:
Once the above information has been tested, click the box at the bottom of the page labelled Continue to step 4
Step 4:
The next step is to populate the database with your company's information. Fill in the following info and then continue.
You will need to fill out the information shown below:
Server Settings
Edit the licensed urls if necessary. Add/Remove the www. as needed/desired, edit http and https as needed, and add any subdirectory information to the url. Do NOT add a trailing slash. If you don't have a secure site, use the same URL in both fields.
Do NOT enter a URL that does not contain your AWBS files! The URL must point to where you have uploaded the files.
If you alter the licensed domain name or subdomain, it will not match your license and you will have license errors.
Non-Secure URL: examples: http://[your_licensed_domain_name]/directory or http://[your_licensed_domain_name] or http://[your_licensed_subdomain]
Note: The URL above should reflect the URL you surf to to get to your AWBS site.
If making use of Portal Mode, select that option and enter the URL for your Front End site.
Server Admin
This is where you will establish the 'super admin' account and login. The password can be changed later.
Remember this login!
Once you have the above information filled out as needed, click the box at the bottom of the page labelled Continue to step 5
Step 5:
AWBS installation is complete!
At this point, the basic install is complete.
Click the box labeled "Finish Install"
Delete the install directory
- Click back to the Websites & Domains tab in the top menu:
- Click on the File Manager icon.
- In the directory listing click on the httpdocs link. (This tutorial assumes you are installing in the root of your site.)
- Click on the checkbox beside the install directory name.
- In the options at the top of the directory listing click the Remove option.
- On the following screen, check the Confirm removal box.
- Click on the Ok button.
Secure the admin, includes and tools directories
- Click back to the Websites & Domains tab in the top menu:
- Click on the Show Advanced Operations link.
- In the new options box that opens, select the Password-protected Directories link.
- Click on the Add Protected Directory icon.
- In the Directory Name box enter /admin for the admin directory.
- Make sure the Document Root box is checked.
- Enter some text as desired in the Title of the Protected area box. (This will display in browser's password mask)
- Click the Ok button.
- If successful you should see the following:
- Click on the /admin folder link as shown above.
- You will then need to click on the Add New User icon.
- Enter the desired Username and Password for accessing this folder.
- Click the Ok button.
Remember these logins will be needed by all who enter the protected directory. This will include any AWBS users who you give any admin rights to.
Repeat above for the /includes and /tools directories.
Configure your cron jobs
- Click back to the Websites & Domains tab in the top menu:
- Click on the Show Advanced Operations link.
- In the new options box that opens, select the Scheduled Tasks link.
- Click on the user that you would like to run the crons under, typically this is your Plesk username.
- Click on the Schedule New Task icon.
- Edit the Minute and Hour fields so that you have scheduled for once per day at a low traffic time on your server. Example: If you enter 0 for Minute and 5 for Hour, this will run the updtransfers.php cron at 5:00 AM each day.
- Enter php -f /var/www/vhosts/domain.com/httpdocs/tools/updtransfers.php in the Command field. (Substitute your domain in place of 'domain.com' and do not paste the quotes)
- Set Day of the Month, Month, Day of the week to * to allow the cron to run everyday.
- Click the Ok button.
- Configure updateexp.php also for once per day, but at a different time than the updtransfers.php cron. You can copy the command field from the original, then just edit the file name updtransfers.php to updateexp.php and change the Hour, then save.
- Repeat for invoice_cron.php.
NOTE: It is advised to run the invoice_cron.php after the updateexp.php and updtransfers.php files each day. - Repeat for master_cron.php, however change the Minute field to */10 and the Hour field to *. This will run the master_cron.php every 10 minutes.
- Once all cron jobs are added, click the Settings icon.
- Enter in an e-mail address to alert you at if a Cron job fails or creates an error.
- Click the Ok button when complete.
Once you are satisfied your crons are functioning properly (after configuring and testing your AWBS install), you can remove your email address to minimize your incoming emails.
Installation is complete, now you can login as super admin and start configuring, customizing and testing.