Phat Site Blog

Tag: wordpress

How to update PHP in CentOs 5.5?

by on Jul.01, 2011, under Server Maintenance

Hello. I’m trying to make my own website. and I have stuff such as moodle, PHPmyadmin, WordPress, etc.. asking me to upgrade my PHP.
I did yum update and it didn’t have an updated package for it.
apt-get doesn’t work.
My VPS runs Apache/2.2.3 (CentOS)
MySQL is installed. Though I have to use SSH.
Errors such as
Sorry, Moodle 2.0 requires PHP 5.2.8 or later (currently using version 5.1.6).
Please upgrade your server software or install latest Moodle 1.9.x instead.
PHPmyadmin = PHP 5.2 is required

FYI, I’m a linux newb.. So I’m new to this..

How to update PHP in CentOs 5.5?

Leave a Comment :, , , more...


Creating a MySQL 5.0 Database for your Web Application

by admin on Jan.25, 2009, under Server Maintenance

> mysql -u root -p
Enter password: <enter your password>
Welcome to the MySQL monitor.  Commands end with ; or \g.
Server version: 5.0.45 Source distribution

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database newdb;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON newdb.* TO newdbuser@localhost IDENTIFIED BY ‘password_for_newdbuser’;

To test if it’s created, run this command:
> mysql -u newdbuser -p
Enter password: <enter your password>
Welcome to the MySQL monitor.  Commands end with ; or \g.
Server version: 5.0.45 Source distribution

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> show databases;
+——————–+
| Database           |
+——————–+
| newdb              |
+——————–+
3 rows in set (0.00 sec)

mysql> use newdb;
Database changed
mysql> exit
Bye

Everything looks good!  Your database is created! Now you’re ready to create your Wordpress blog, just configure the settings with your database name, username, and password. ;-)

1 Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!