Author: Antonie Potgieter

Xampp phpMyAdmin Problem

I started XAMPP today and tried to open phpMyAdmin (http://localhost/phpmyadmin/) in my browser in order to do some database management. Unfortunately I was presented with the following error message : cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly After playing around a bit, managed to figure out that there was a problem with the way PHP sessions are saved. Because of new security measurements in the Mac OS Leopard operating system, there was no way for PHP to save sessions. So I edited the PHP configuration file and uncommented the line which specifies the path where sessions logs are saved. Here comes the solution. This is for Mac OS X. Open up "/Applications/xampp/etc/php.ini" with Textedit or any other text editor for that matter. Search for the phrase "session.save_path" or simply just go immediately to line #839 where this is located. You’ll see : ;session.save_path = /tmp Now uncomment it by making it : session.save_path = /tmp And that’s it! Restart XAMPP by clicking the "Restart" button. You really just need to restart PHP for that matter so that the new configuration values can be loaded. Good...

Read More

Linux : Change file/folder owner

On a Unix based system, all files and folders belong to a group and a owner. Or rather, an owner and a group has specific permissions to read, write and execute files. So you might need to change the owner of certain files and folders so that you’ll be able to open them, edit them and write to them again. I’ll show you how to do this via SSH. You’ll need a login and password in order to access the shell. ssh -lroot domain.com Once logged in, change the directory to the one where the files/folders are located. cd /var/www/vhosts/domain.com/httpdocs/myfolder/ Then you might want to recursively change the owner for all files and folders inside that directory to another user. Lets set the owner of the files and folders to “peter” chown -R peter * That is all there is to it. You have just changed the owner of all files and folders recursively inside the specified directory to “peter”. You can now open the files (for example via FTP), edit them and write back to them again. Good...

Read More

MySQL : Transfer database from server to another server

In this article, I will show you how to dump a mysql database from one server to another remote server without having to export and import your SQL structure and data. We’ll dump a database directly to another empty database on another, remote server. In order to do this, you’ll need shell access to both servers and also create an empty database (with a valid login) on the remote server. Below is the command. mysqldump -v -uxxxxx -pxxxxx database_name | ssh root@remoteserver.com mysql -uxxxxx -pxxxxx database_name So in the command above, we first execute a mysqldump to create an SQL dump of the current database. You’ll need to replace “xxxxx” with the actual username and password of the current database. Lastly, we specify the name of the database to dump. Immediately, we connect to the remote server via SSH and execute a mysql command which will import the SQL dump which was just created, into the remote database. Same as with the current database, you’ll need to replace “xxxxx” with the username and password and of course the name of the remote database. You will be prompted for password once the current database has been dumped. The password is the ROOT password for connecting to the remote server via SSH. You’ll also notice that I used the “-v” option which executes the command in verbose mode. This prevents all...

Read More

Server to server file transfers

Server to server file transfers are relatively easy on a dedicated or virtual private server running Unix. I’ll quickly show you how to use the scp command which acts just about exactly the same as the cp command. It copies all files from a specified source path to a destination path on the remote server and uses via SSH. Lets say that I wanted to transfer all the files and folders of a single domain on Plesk, inside the httpdocs folder to another Plesk server into the public html directory of another domain, I would first change directory to where the source files lie. cd /var/www/vhosts/domain.com/httpdocs Quickly check the current path that you are in. pwd Now execute the scp command together with the username of a user whom has shell access on the remote server. After the username, we append the path to which the source files will be copied to the destination server. You’ll also notice that I used -r which is the recursive option. It will recursively copy all files folders, subfolders, etc… scp -r * root@domain.com:/var/www/vhosts/domain.com/httpdocs/ And that’s it! You’ll have all the specified source files copied from one server to another. I’m going to post another tutorial shortly on how to dump an entire MySQL database directly from one server into the database of another, remote server. Check the RSS feed if you are...

Read More

Mac OS .OGG to .MP3

There are probably other ways to convert OGG format to MP3, including some opensource/freeware command line scripts, but I managed to achieve this with an application called EasyWMA which is most definitely worth the $10 for a full license. Not only does it convert OGG to MP3, but it encodes/decodes many other formats as...

Read More

contridfx Live Stream

Watch me play live game streams!

Sorry, there’s no live stream at the moment. Please check back later or take a look at all of my videos.

Subscribe/like me on YouTube, Facebook, Mixer or Twitch to be notified when I go live! Thank you for your support!

banner-rotatorjpg
shopping-cartjpg
newsletterjpg
slideshow-galleryjpg
questionsjpg
bundlejpg

Stay up to date

Get one email per month with latest news. You can unsubscribe at any time

Fill in a valid email

captcha

banner-rotatorjpg
shopping-cartjpg
newsletterjpg
slideshow-galleryjpg
questionsjpg
bundlejpg

Pin It on Pinterest

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!