To restart Apache 2 web server over the ssh, enter:
To stop Apache 2, enter:
To start Apache 2, enter:
If you are using RHEL / CentOS / Fedora based server, enter:
service httpd restart
To stop RHEL / CentOS / Fedora based Apache server, enter:
service httpd stop
To start RHEL / CentOS / Fedora...
To enable mod_rewrite, you need to make sure that you have it as a module, and to make sure that Apache has loaded the module. And then you need to ensure that Apache is configured to make use of the .htaccess file for each directory.
Follow this article and you should be able to enable mod_rewrite.
First, type the following command on your SSH shell or local terminal:
A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database (using MariaDB), and dynamic content is processed by PHP.
This code below will be resolve your problem
$url = "http://www.google.com";
$facebook = json_decode(file_get_contents("http://api.facebook.com/method/fql.query?query=select%20like_count%20from%20link_stat%20where%20url='".$url."'&format=json"));
$twitter = json_decode(file_get_contents("http://urls.api.twitter.com/1/urls/count.json?url=".$url.""));
STEP ONE: Make the docroot
Login to your VPS via SSH
STEP TWO: Create the Apache Configuration
Login via Webmin
-Click Apache Webservers
-Click Create virtual host
-Change the value of 'Document Root' to the folder you created via SSH (eg. /home/domain.com/www/)
-Change the value of Server Name to...
Exporting MySQL Data
This example shows you how to export a database. It is a good idea to export your data often as a backup.
Using SSH, execute the following command:
mysqldump -p -u username database_name > dbname.sql
You will be prompted for a password, type in the password for the username and press Enter. Replace username, password and database_name with your...
Sometimes you would need to extract or create an archive file (i.e to install a script, you would usually download an archive and extract it to continue the installation). The very first step in the process would be to identify the exact archive type by looking at the file extension. The most common archive types are zip (ending with .zip), tar (.tar), Tar+Gunzip (.tar.gz), Bzip...
reCaptcha is a very popular captcha plugin. It is in use all across the web, and is not just limited for use in Joomla 3.0. In addition to being a very high quality tool, there are several interesting facts about ReCaptcha that you may not be aware of.
In this Joomla 3.0 tutorial, we'll show you how to setup reCaptcha.
Configuring ReCaptcha for Joomla 3:
Log into your...
This method allows you to use simple code in your HTML to detect Internet Explorer (IE). You can determine whether or not the end user is using IE, and if so, which version. This allows you to provide content based on which browser is being used.
Actually you can have a more detailed report using FQL.
Try following query:
SELECT url, normalized_url, share_count, like_count, comment_count, total_count, commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url = 'www.apple.com'
Here the php code:
$fql = "SELECT url, normalized_url, share_count, like_count, comment_count, ";
$fql .= "total_count, commentsbox_count,...