Category Archives: Web

How to Install PhPMyAdmin on Centos 7 from source

Dear Friends,

First of all we will install required repositories.

[root@itpings opt]# yum -y install epel-release
[root@itpings opt]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Now we will install apache, mariadb, mariadb-server and php56

[root@itpings opt]# yum -y install httpd mariadb mariadb-server php56w php56w-mbstring php56w-mysql php56w-soap unzip vim wget

Once installed we will download phpmyadmin from phpmyadmin.net

[root@itpings opt]# wget https://files.phpmyadmin.net/phpMyAdmin/4.7.2/phpMyAdmin-4.7.2-all-languages.zip

unzip the content and move it to /var/www/html and rename the unzipped content to phpmyadmin

[root@itpings html]# unzip phpMyAdmin-4.7.2-all-languages.zip
[root@itpings html]# mv phpMyAdmin-4.7.2-all-languages.zip phpmyadmin

Now Change the ownership of the folder

[root@red html]# chown -R apache.apache phpMyAdmin
[root@red html]# chmod -R 755 phpMyAdmin

Now we will copy config.sample file to config.ini.php

[root@itpings html]# cp config.sample.inc.php config.inc.php

Now we will edit config.inc.php and only add root user and password of mysql ( Make sure you have root user and password of mysql)

/* User used to manipulate with storage */
 $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controlport'] = '';
 $cfg['Servers'][$i]['controluser'] = 'root';
 $cfg['Servers'][$i]['controlpass'] = 'itpings123';

Now to visit phpmyadmin visit http://<your-ip-address>/phpmyadmin and provide the above user and password.

Done

Thanks,

Salman A. Francis
YouTube: Linuxking
Facebook: LZHProject, Linuxking77

Openstack dashboard gives error “Error: Unable to retrieve information”

So today i ran into one more issue with Openstack , the error showed up  when i logged in to the dashboard and clicked on Project–>Instances.

What i saw terrified me because is saw “NOTHING” !

A day before i had the same issue and i thought it’s related to RAM so i restarted and everything started and operated normally, but this time the reboot didn’t help.

So i started scratching my head and started wondering what might be the reason. I searched internet but no success. I searched log files but nothing made sense at that time, so i rebooted one more time and an Error appeared saying something like “Openstack glance-registry api error limit reached ” So that gave me a head start that it has something to do with system being low in space.

A df -h showed that / is 100% full. I removed some unnecessary files , rebooted the system and Viola !

All started to work Normally.

Conclusion:

Make Sure you have enough space with OpenStack

 

Trimming html tags with regular expression in Geany

Hey, Pingers!

Today I had some crazy amount of html generated by MS Word that I needed to post on our corporate website. The problem was that MS Word adds a dramatical ammount of shit to your page, when it comes to html. So pasted on a website this text was in multiple colors, multiple language tags and with different crap enclosed into attributes.

Editing this by hand was not a very nice option, because of the amount of the content and broken-MS-word-formatting.

So, take a look on my workaround… Continue reading

SSL Error with FireFox 31.0

So guys i was using Firefox 29.0 to access my Apache Server with personal SSL certificate. Everything

was working just perfect but then i upgraded my Firefox to 31.0 and fashhhaaam everything just went

bad, Firefox started rejecting the request for my personal SSL cert, I thought that the problem would

be solved if i just delete and reinstall the certificate but No, it was not the case. I took some time

Continue reading

My favorite web-based tools for web design

Hey guys,

Today I want to share the tools that I use for different purposes in my web design. Some of them seem abandoned and a little outdated now, but they still serve the purpose. The thing is that it’s web 3.0 and interactive web pages has turned into full blown applications and now you don’t even need most of the software you couldn’t live without in past (remember Dreamweaver or Flash? =)))) Continue reading