Tag: linux
Git Lesson : branch is ahead by x commits
If Git suddenly popup a warning, “branch is ahead by x commits”. You can do the following Switch to the branch, e.g it’s the Master branch Then, use Git Fetch to update the local copy of a remote branch Git fetch is similar to pull, except it won’t do any merging
Git lesson : Branch
What is GIT? Git is… Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Branching…
How to find CentOS or RedHat version?
Most Red Hat-based distributions, like CentOS, should have a file called redhat-release which will contain the CentOS version Run the following to see what version running on your system or or or Using your redhat-release file, you can find your distribution, version and update number. This information is very helpful for technical support staff as…
How to find Apache Version on Linux?
Run the following to see Apache version running on your Linux system or
How to disable phpinfo
The phpinfo() function is a very powerful one, you can learn quite a lot about your PHP installation. Some server administrators may choose to disable the PHP function phpinfo() for security reasons, because it displays information which can be used to compromise the server that your site is running on. You can completely disable phpinfo(). First…
How to check what PHP version running on Linux?
It’s very simple to check PHP version 1. PHP Info You can use the following to yield PHP version number via Command Line or You can create a php file contain the following, upload it to your website Note: if your sys admin disabled phpinfo, you cannot check what PHP version with phpinfo() 2. Short…