Solutionist's Blog

Tech | Health | Life | Travel

setup web server centos with apache

Install Apache, Mysql , PhP Web Server # yum install httpd mod_ssl #/etc/init.d/httpd start # yum install mysql mysql-server # chkconfig –levels 235 mysqld on # /etc/init.d/mysqld start configure mysql Set the MySQL service to start on boot chkconfig –levels 235 mysqld on Start the MySQL service service mysqld start Log into MySQL mysql -u root Set the […]

php53-common conflicts with php-common

php53-common-5.3.3-13.el5_8.x86_64 from installed has depsolving problems –> php53-common conflicts with php-common Error: php53-common conflicts with php-common   This issue normally happens when you have upgraded your PHP to new version 5.3 and try to install a old extension Solution:  find the extension which in the same version or install extension from source file  

php-tips-insert-href-link-in-a-php-code

If the link needs to be inside of the PHP you have two options. Option one is to end the PHP and then reopen it. Here is an example: <?php —– My PHP Code—- ?> <a href=”https://twitter.com/angela_bradley”>My Twitter</a> <?php —– My PHP Code—- ?> The other option is to print or echo the HTML code […]

html-tip-using-quotes-in-form-input-tags

In (X)HTML, attribute values should be enclosed by double or single quotes. But a common source of errors and confusion arises when those values themselves contain double or single quotes. This is especially common for form input fields, where the values might contain data obtained from a database or supplied previously by the user. Yes, […]

Display & Save Visitor’s Ip – PHP Code

found a blog post which tested and working very good PHP-Hypertext Preprocessor. PHP is a server side script language.Using php you can create a dynamic websites. This is the first lesson and on this lesson you will learn how to get visitors ip and save it on your server.(i wil learn you how add this […]

php script to show visitors IP

  Create a .php file   # vi  showip.php   <h1>My Ip Address</h1><hr> <br><br> Your Ip Address is: <strong><?php echo $_SERVER[‘REMOTE_ADDR’]; ?></strong><br><br>   Close the file and  done RESULT http://admin2.mweb.com.na/showip.php    

How Do I Parse HTML Pages As PHP?

You can tell apache to treat your .html pages as .php pages by adding the following line of code to your .htaccess file: AddHandler application/x-httpd-php5 .php .htm .html  The above code will parse your .html pages using php5, if you would like to use php4 instead, please use the line of code below: AddHandler application/x-httpd-php4 […]

How to Install Zpanel in Centos 5

The following are the steps to install CentOS 5.5+ 1. Download the source from the following Url using the command: #wget https://xsdou.googlecode.com/files/zpanel-6.1.1.tar.gz 2. Create a directory as below: #mkdir /etc/zpanel 3. Extract the source to /etc/zpanel: #tar -zxvf zpanel-6.1.1.tar.gz -C /etc/zpanel/ 4. Change mod using the following command: #chmod +x /etc/zpanel/lib/dev/zpinstall_centos.sh 5. Finally, run the following […]

How to Install PHP mbstring extension

On my redhat based server, I installed the PHP mbstring extension as: Connect the repository: wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh   yum –enablerepo=webtatic install php-mbstring /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]    

[solved] [fixed] Unable to load dynamic library ‘/usr/lib/php5/20090626/suhosin.so’

Reason why it happen: php5-suhosin depends on an obsolete version of phpapi-20090626+lfs so php5-suhosin is removed during the upgrade… but the PHP config snippet /etc/php5/conf.d/suhosin.ini isn’t purged… so PHP still try to load the module suhosin.so.   to fix this STEP 1 Connect the repository: wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh   STEP 2 […]

Secured By miniOrange