The dedicated servers at SANGKRIT.net offer you the option to configure your object caching system in the way that suits you best.
The lesson will guide you on how and why configuring Memcached PHP Libraries on your Linux-based dedicated server benefits you.
Memcached is one free object caching system that can be installed on your server for improving the performance of your website. It only works when you install the daemon, install the PHP libraries and configure your PHP application correctly.
You can easily do all that by following these steps:
From the Software section on the left, select EasyApache 4
Click the Customize button present in the Currently Installed Packages section.
Click PHP Libraries on the left
Type Memcached in the search box
Click the button to install Memcached on the desired versions of PHP
Click the Review button on the left,
Click the Provision button at the bottom of the page
The installation should be complete now.
Apart from this, you should also know that the same modules can also be installed with yum in SSH. But be very conscious about the naming convention i.e. ea-php72-php-memcached. It must be installed on each version of PHP.
The next coming lesson will help you in the process of installing and managing the Memcached Daemon.
The easiest way to upgrade PHP is through EasyApace which you can find in the software section of WHM:
Lookup for EasyApache using the search box on the left section of WHM
Click to open it then click EasyApache (ApacheUpdate) option
This will open the present time Apache Configuration Profile
Click the gear icon for a customized profile option
You will see Apache wizard guiding you through various steps
Here, select the Apache version
Then, select your PHP versions
Next, from the Short Options List, select the features you like to include in your Apache
You can enable the modules you like to add and you can also disable the modules which you don’t want
For more configuration options you may click the Exhaustive Options List
Finally, select the Save and Build option
In the Exhaustive Options List, you can select or deselect various other modules. There is also an option called Save Only that only saves your profile and doesn’t starts the building process.
To start building you will need to click Save and Build option as explained above. Once you click this option, do not close your browser window and wait for the process to complete.
This may take some time depending on the options you have selected and the power of your server. If you are using a small server with limited resources then you should not enable many options at once and instead enable a few options first and then repeat the process for enabling more modules.
Every version of PHP has its own php.ini file which is found in:
Every time you edit this file, the changes are not transferred to other PHP versions you upgrade to or switch to. Hence, after an upgrade, you also need to change your php.ini file to match it with your newer version of PHP.
Navigate to the File Manager interface via cPanel -> Home -> Files -> File Manager
Make sure that hidden files are visible to you or you can enable them via Settings, by ticking the Show hidden files checkbox option
Navigate to the target directory.
Create a new file – click New File / + File button
Enter .user.ini filename
Click Create New File button
Select the new file from the list of files and click Edit
Now enter the PHP directives you wish to adjust for the present directory
Click the Save button
INI files can be configured on per-directory basis and are processed only by the CGI/FASTCGI SAPI. This functionality obsoletes the PECL htscanner extension. If you are running PHP as an Apache module then the .htaccess file will do your thing.
In addition to the main INI file, PHP scans each directory for its INI file. In a case where the PHP file has been kept outside the document root, only its directory is scanned.
PHP initialization files are read when PHP starts up, these files can manage forms, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging. The directives these files can control can be found in PHP’s documentation.
I welcome you Fahad at SANGKRIT.net, please tell our netizens about yourself, your story. Hi, I am Fahad Mahmood (A WordPress Mechanic) the developer of a few famous WordPress Plugins like Keep Backup Daily, Alphabetic Pagination, jQuery Post Splitter, RSS Feed Widget and a recently launched WordPress Plugin WP Header Images. My journey started from a HTML tag <marquee></marquee> which I learned very first even before <html> and <body>. It was really inspiring for me when text was moving from right to left. As notepad was available everywhere so i did a number of experiments in my college’s computer lab during my ICS session 2001. My interest became a passion when I learned about click event of a button in visual basic 6.0. It was purely a magic when I played with it and successfully changed document title, button text, label captions and text in textboxes.
Code Igniter is a popular web application among PHP programmers and web developers. It is an Application Development Framework – a toolkit – for those who build PHP websites.
It allows you to develop projects must faster and easier than starting code from from scratch. It provides you rich set of libraries for commonly needed tasks, and easy interface with logical structure to access these libraries.
Yes, you can easily insert custom PHP function in the functions.php file of your child theme but today in this lesson you will learn about a more easy way of inserting and activating PHP hacks directly from your admin area dashboard.
Default WordPress plugin uploader crashes whenever you try uploading plugin zip files of size exceeding maximum PHP memory. For instance, some default PHP installations have 2MB memory and when you try uploading plugin zip bigger than 2MB, the uploader crashes showing some PHP error.
I welcome you Subin at SANGKRIT.net, please tell our netizens about yourself.
At what age what actually brought you up to programming and consequently programming WordPress? Why do you enjoy it?
I started programming when I was 11 years old. I only got into WordPress in 2013 and I created and published my first plugin “Blogger 2 WordPress” in 2014. I enjoy programming, because it relaxes my mind. When I code, I enter into a new world. A world where I forget all my problems in life and focus on the task in hand. Coding makes errors and I try and try to find solutions to those errors. When I find the solution, it is stuck on my mind and I’ll never forget it. Programming is a lot like Maths. You won’t like it first, but when you get around it you will find it enjoyable.
Tell us about the plugins and apps you have created so far?
By far, I have created 2 WordPress Plugins – Blogger 2 WordPress & Code Blocks. Blogger 2 WordPress makes it easy to set redirections from old blogger posts to new WP posts (and pages) after you moved your blog to WP. I have created a lot of web apps. Some of them are online and some of them in localhost. My first online app was Subins which I made it online in 2012. It was just a test app of mine. Nothing serious. I didn’t know much about hacking & cracking when I created it. So, it was vulnerable to Cracking. Soon after 1 year, my friend (Facebook) cracked it. I deleted the data on Subins just a day after it was cracked. Now I’m working on my blog (subinsb.com) and an open source social network called Open (open.subinsb.com). I’m also working on a new project which I can’t say about it now.
Suppose if you were reviewing any new plugin then what are the most important things you look for that indicate a well-designed program?
The most important thing is that the plugin shouldn’t contain any errors. A simple semicolon (;) can make a big error in plugins. Syntax Errors is the main error, plugin developers must notice. Also, plugin developers must make sure the plugin work on almost every versions of the language and server. A well designed plugin will work flawlessly at great speed. If you are running the plugin even on low memory CPUs, it should work well. So there are 3 main factors (maybe more) in a well designed executed plugin :
Your website shows a project section with links to Open & Demos? Tell us about them?
Open is an Open Source Social Network. Anyone can edit the source code of the site. There are no ads, no tracking stuff and anything else on Open. It’s clean, simple and have the ability to post to Facebook & Twitter at one place. Demos is the sub site of my blog. This site contains the demos of the tutorials, code or projects seen on the blog.
You have no Advertisements on your blog? Do you have any plans to go pro in blogging and earn money?
When I started blogging, all I could think about was money ! I placed ads at first. But when I went through the blogging, programming and contributing to Open Source Softwares, I understood that Ads are a distraction to the users. Ads make the site slow too. No one likes ads. So Why put it in a info blog ? Information should be passed free of charge. So, I removed the ads and put on the “Donate” button (subinsb.com/donate). If people really like my content, they will donate. Also, the revenue from ads are low. Google Adsense rejected my application when I had 2 $. That made me angry and it’s also a reason why I’m not putting ads anymore.
How much time you spend working on your domain and writing programs? What philosophy drives you doing this?
When I return home from school and after I finish all the home works and stuff, I turn on the computer and start coding. I make up ideas of posts and projects on the free periods of my school and write it down. Then I do it when I reach home. On holidays, I use the computer from morning to noon (about 2 PM) and from evening (6.30 PM) to night (11.30 or more if I got an error). WP plugins help users to do big tasks with just a plugin. Open Source minded programmers always help people. I’m an open source minded person. WP philosophy “Code Is Poetry” and StackOverflow (http://goo.gl/kCKBGs) helped me into doing this.
How about your parents? Is either of them involved in programming fields?
My parents are normal Kerala persons. My dad is the “Assistant Secretary” of Ayiloor Panchayat, Palakkad, Kerala and my mom is an house wife. She worked as a computer teacher before teaching Windows 98 and stuff. I’m sure that the coding & computer stuff came from my mom. My dad always supported in coding and always made me walk through the right path. He scolds me when I say “I hacked someone / website”. Hacking is wrong and he made me understand about it.
What are you working on today? Any new plugin?
I’m now working on a project like WordPress, but not entirely like it. I can’t say more about it now. When I release my new project, I will certainly invite you. I created about 5-6 plugins. 2 of them WP and others jQuery & PHP. It’s hard to maintain all of them. I’m very very busy in maintaining blog, plugins and school stuff. I will improve my existing plugins and when I get a new idea, I will make another plugin.
Tell us something about your city and your favorite hangout spots there?
I’m from Kerala , a state in India. I’m living in Kunnamkulam, a town (muncipality). Nothing big here. I don’t go out much. But my favourite places are the paddy fields and the streets where I could walk or ride a bicycle peacefully.
What is your ultimate message for netizens?
Never stop working hard. If you work hard, you will certainly accomplish your task. Never copy content from others. Always make your own stuff. Don’t hack / harass any person on the Internet. Always be a good netizen and speak up when you find something illegal or bad behaviour. Never fear. There are millions of nice people in this world who can help you. Don’t hesitate to ask for answers on disucssion forums and Q & A sites (stackexchange.com). Stay safe and simple.
[note color=”#FFCC00″]Interview is ongoing live…[/note]
Shardul Pandey Talks is international program for promoting those individuals, who register their domain to create virtual wealth in webspace so if you too want to get interviewed, simply email to firstname.lastname@example.org considering any conversation upon this as subject to publication here.
Serendipity is a PHP and Smart (PHP Template Engine) based contnet management system specially for webloggers. Using this application one can easily maintain an online diary, weblog or a complete homepage. Its default package is designed for casual bloggers, It offers you a flexible, expandable and user friendly framework with the power for professional applications.
Increasing PHP limit is easy. The most popular method of increasing PHP limit is by editing the PHP.ini file which is present on your site’s root directory. But here are few more menthods you can use for increasing PHP memory limit in your WordPress site.
What is PHP.INI File ? PHP.INI is a configuration file which is read when PHP starts up. For server module versions of PHP, it only happens once when the webserver is started. For the CGI and CLI versions, it happens on every invocation.
Its easy to convert HTML code to PHP without hiring any PHP programmer or downloading any application, you can simply do this online free of cost. There are many online free tools that converts HTML to PHP in quick way.