1. Rebuild Apache under EasyApache and enable PDO support in you're php configuration.
OR
I just tried the terminal install:
pecl install pdo
pecl install pdo_mysql
and restarted Apache and it works fine.
Tuesday, March 15, 2011
Sunday, March 13, 2011
How to reset Joomla Admin password
1. Login to cPanel
2. Access the phpMyAdmin
3. Select the database
4. Find the jos_user table, and go to browse
5. Find the Super Administrator user and go to edit
6. Select the password function to MD5, enter your new password, and change the user name to admin, than click GO to proceed.
2. Access the phpMyAdmin
3. Select the database
4. Find the jos_user table, and go to browse
5. Find the Super Administrator user and go to edit
6. Select the password function to MD5, enter your new password, and change the user name to admin, than click GO to proceed.
Wednesday, March 9, 2011
FTP error >>> 421 Sorry, cleartext sessions are not accepted on this server. Login failed
When you receive the above error while trying to connect to FTP then follow the below steps :
Login to WHM
Go To : Service Configuration
Then click on : FTP Server Configuration
and then check that :
TLS Encryption Support : is set to “Optional”
if not then set it to “Optional”
That’s all this will do it.
Login to WHM
Go To : Service Configuration
Then click on : FTP Server Configuration
and then check that :
TLS Encryption Support : is set to “Optional”
if not then set it to “Optional”
That’s all this will do it.
Configure Outlook?
1.Click on the tools menu then accounts
2. Click Add on the right side at the top and select mail
3. Display Name: Your Name
4. Click Next
5. E-mail Address: address@yourdomain.com
6. Click Next
7. My incoming mail server is a POP3 server.
8. Incoming mail server (POP3): yourdomain.com
9. Outgoing mail server (SMTP): yourdomain.com
10. Click Next
11. Acount Name: address@yourdomain.com; If you are setting up for your Main Account you would use your hosting account user name.
12. Password: This will be the password you set for the email address when you set it up in your hosting account control pan el. If you are setting up for your Main Account, this will be your hosting account password.
13. Check Remember password if you don't want to enter your password each time.
14. DO NOT CHECK \"Log on using Secure Password Authentication (SPA)\"
15. Click Next then Finish
16. Click on the account you just created then click Properties
17. Click the Servers tab
18. CHECK \"My server requires authentication\" at the bottom
19. Click the Advanced tab
20. Under Server Port Numbers Incoming server (POP3): 110
21. Under Server Port Numbers Outgoing server (SMTP): 25; If your ISP blocks access to port 25 you can use port 26.
22. Click OK to close that window. 23. Click Close to close that window.
2. Click Add on the right side at the top and select mail
3. Display Name: Your Name
4. Click Next
5. E-mail Address: address@yourdomain.com
6. Click Next
7. My incoming mail server is a POP3 server.
8. Incoming mail server (POP3): yourdomain.com
9. Outgoing mail server (SMTP): yourdomain.com
10. Click Next
11. Acount Name: address@yourdomain.com; If you are setting up for your Main Account you would use your hosting account user name.
12. Password: This will be the password you set for the email address when you set it up in your hosting account control pan el. If you are setting up for your Main Account, this will be your hosting account password.
13. Check Remember password if you don't want to enter your password each time.
14. DO NOT CHECK \"Log on using Secure Password Authentication (SPA)\"
15. Click Next then Finish
16. Click on the account you just created then click Properties
17. Click the Servers tab
18. CHECK \"My server requires authentication\" at the bottom
19. Click the Advanced tab
20. Under Server Port Numbers Incoming server (POP3): 110
21. Under Server Port Numbers Outgoing server (SMTP): 25; If your ISP blocks access to port 25 you can use port 26.
22. Click OK to close that window. 23. Click Close to close that window.
530 Login authentication failed ? Can access cpanel but not ftp?
The problem was due to demo mode enabled for that domain. Disable it via WHM >> demomode
/usr/bin/curl: Cron error : Permission denied ?
Check the permission of /usr/bin/curl it should be 755 if its correct then check the script files permission
Thursday, January 27, 2011
How to Clear Your /tmp Folder Automatically?
Is your /tmp directory simply getting overrun with SESS files? If so, try this:
make a file in scripts called cleantmp, put the following in it:
************
# This script cleans out /tmp of empty, root, cpanel
# and nobody session files in /tmp
# rev 2.0b by Darren - 8.19.07
# if --test is passed, we just show the results
if [ "$1" == "--test" ]
then
CMD="-exec ls -la"
echo "$0: test mode"
else
CMD="-exec rm -rf"
fi
if [ "$1" == "--help" ]
then
echo ""
echo "cleantmp will clean out your tmp directory for you"
echo ""
echo "Parameters:"
echo "--test to run in test mode"
echo "--help display this file"
echo "-a accountname to remove all files owned by account name"
echo "-e cleans out all empty (zero length) files"
echo ""
exit 0
fi
if [ "$1" == "-a" ]
then
echo ""
echo "Removing session file for account $2"
find /tmp -name "sess*" -user $2 -maxdepth 1 $CMD {} \;
echo "completed"
echo ""
exit 0
fi
if [ "$1" == "-e" ]
then
echo ""
echo "Cleaning out empty files from /tmp"
find /tmp -name "sess*" -empty -maxdepth 1 $CMD {} \;
echo "completed"
echo ""
exit 0
fi
# remove empty session files that are over 2 hours old
find /tmp -name "sess*" -empty -mmin +120 -maxdepth 1 $CMD {} \;
# remove root owned session files
find /tmp -name "sess*" -user root -maxdepth 1 $CMD {} \;
# remove nobody session files
find /tmp -name "*sess*" -user nobody -maxdepth 1 $CMD {} \;
# remove cpanel owned session files
find /tmp -name "sess*" -user cpanel -maxdepth 1 $CMD {} \;
# remove any session file over 5 hours old
find /tmp -name "sess*" -mmin +300 -maxdepth 1 $CMD {} \;
# remove any spamassassin file over 4 hours old
find /tmp -name ".spamassassin*" -mmin +240 -maxdepth 1 $CMD {} \;
************
Now save, and chmod it so it can be run (use your discretion for perm level):
chmod 755 /scripts/cleantmp
Run it as /scripts/cleantmp --test to view which files will be removed or /scripts/cleantmp -a accountname to remove all files owned by account name. And running it with "-e" will remove all empty session files.
What we do on most boxes is have it run in cron.hourly so that it purges session files. It cleans empties that are over 2 hours old, and normal ones that are over 5 hours old. Keep in mind, this may break software that uses "Keep Me Logged In Indefinitely" option for users. But the script could be easily modified to skip some session files if needed.
So, go to /etc/cron.hourly and create a file called cleantmp. Put this into it:
****************
#!/bin/bash
/scripts/cleantmp -e >/dev/null 2>&1
/scripts/cleantmp >/dev/null 2>&1
****************
and save it, then do the same permissions procedure as above. Now every hour, the script wil clean out empty and older SESS files and keep your sites up. Modify this and the other script as needed.
Hope this helps! Suggestions, questions are welcome.
make a file in scripts called cleantmp, put the following in it:
************
# This script cleans out /tmp of empty, root, cpanel
# and nobody session files in /tmp
# rev 2.0b by Darren - 8.19.07
# if --test is passed, we just show the results
if [ "$1" == "--test" ]
then
CMD="-exec ls -la"
echo "$0: test mode"
else
CMD="-exec rm -rf"
fi
if [ "$1" == "--help" ]
then
echo ""
echo "cleantmp will clean out your tmp directory for you"
echo ""
echo "Parameters:"
echo "--test to run in test mode"
echo "--help display this file"
echo "-a accountname to remove all files owned by account name"
echo "-e cleans out all empty (zero length) files"
echo ""
exit 0
fi
if [ "$1" == "-a" ]
then
echo ""
echo "Removing session file for account $2"
find /tmp -name "sess*" -user $2 -maxdepth 1 $CMD {} \;
echo "completed"
echo ""
exit 0
fi
if [ "$1" == "-e" ]
then
echo ""
echo "Cleaning out empty files from /tmp"
find /tmp -name "sess*" -empty -maxdepth 1 $CMD {} \;
echo "completed"
echo ""
exit 0
fi
# remove empty session files that are over 2 hours old
find /tmp -name "sess*" -empty -mmin +120 -maxdepth 1 $CMD {} \;
# remove root owned session files
find /tmp -name "sess*" -user root -maxdepth 1 $CMD {} \;
# remove nobody session files
find /tmp -name "*sess*" -user nobody -maxdepth 1 $CMD {} \;
# remove cpanel owned session files
find /tmp -name "sess*" -user cpanel -maxdepth 1 $CMD {} \;
# remove any session file over 5 hours old
find /tmp -name "sess*" -mmin +300 -maxdepth 1 $CMD {} \;
# remove any spamassassin file over 4 hours old
find /tmp -name ".spamassassin*" -mmin +240 -maxdepth 1 $CMD {} \;
************
Now save, and chmod it so it can be run (use your discretion for perm level):
chmod 755 /scripts/cleantmp
Run it as /scripts/cleantmp --test to view which files will be removed or /scripts/cleantmp -a accountname to remove all files owned by account name. And running it with "-e" will remove all empty session files.
What we do on most boxes is have it run in cron.hourly so that it purges session files. It cleans empties that are over 2 hours old, and normal ones that are over 5 hours old. Keep in mind, this may break software that uses "Keep Me Logged In Indefinitely" option for users. But the script could be easily modified to skip some session files if needed.
So, go to /etc/cron.hourly and create a file called cleantmp. Put this into it:
****************
#!/bin/bash
/scripts/cleantmp -e >/dev/null 2>&1
/scripts/cleantmp >/dev/null 2>&1
****************
and save it, then do the same permissions procedure as above. Now every hour, the script wil clean out empty and older SESS files and keep your sites up. Modify this and the other script as needed.
Hope this helps! Suggestions, questions are welcome.
Subscribe to:
Posts (Atom)