Showing posts with label root. Show all posts
Showing posts with label root. Show all posts

Monday, August 31, 2015

How to Detect Mobile Browsers (11 Steps)


Download the 'Detect Mobile User Agents & Browsers' PHP script by clicking on the link located in the 'Resources' section below. The downloaded file is compressed. Double-click on it to open your default extraction program and extract the files to your desktop.
Open an FTP (File Transfer Protocol) program and log in to your website's hosting account by typing in your FTP address, username, and password. Once you have connected to your hosting server, use the FTP program to upload the 'mobile_device_detect.php' file that you extracted in step 1. Upload it to the root directory of your website where your 'index.html' or 'index.php' file resides.
Use the FTP program to download the 'index.html' or 'index.php' file from your website and save it on your desktop. Open the file in a text editor such as Notepad or Wordpad.
Open a web browser and type 'http://detectmobilebrowsers.mobi/" into the address bar, then press the ENTER key. Alternately, you can click the 'Detect Mobile Browsers Website' link in the 'Resources' section below.
Scroll down to the 'Function Generator' heading. Here we will generate a PHP function code that will define how the PHP code file we uploaded in step 2 will behave. Choose an option from the respective drop-down menus for 'Detect iPhones,' 'Detect iPads,' 'Detect Android Devices,' 'Detect Opera Browsers,' 'Detect Blackberry Devices,' 'Detect Palm Mobiles' and 'Detect Windows Mobile Devices'. Each drop-down menu will allow you to specify whether to treat the device browser like a mobile browser or a standard desktop browser. You may also choose to redirect a device type to a custom URL, which must be typed into the text field that appears below the drop-down menu when you choose the 'Redirect (device) to a specific URL' option.
Choose an option from the 'Redirect Mobile Browsers' drop-down menu. Any devices that were set in the above options to be treated like a mobile browser will be affected by this option. You can redirect mobile users to a custom URL where there is a mobile browser-optimized version of your website or choose not to redirect them, which will allow them to access the standard website. Type the mobile-optimized website URL into the provided text box.
Set the 'Redirect Desktop Browsers' drop-down menu to 'No - Do not redirect desktop visitors - function will return false' to allow desktop browser users to access the standard website. Any devices that were set in the above options to be treated like desktop browsers will be affected by this option.
Click the 'Generate Code' button. Highlight the text that appears in the 'PHP Code' box and press CTRL+C on your keyboard to copy the text to your clipboard. Minimize your web browser so you can see the 'index.html' or 'index.php' file you opened in the text editor in step 3.
Create a blank line at the beginning of the text document by clicking your mouse at the top of the document and pressing the ENTER key. Place your cursor on the blank line and type '
' and press ENTER again.
Click on the 'File' menu at the top of the text editor and choose 'Save'. In the FTP program window, copy the edited 'index.html' or 'index.php' file back to the root directory of your website, overwriting the original file.
Access your website from a mobile device browser. You should be redirected to you mobile-optimized website. Access your website from a standard browser to make sure that you are directed to the standard website.
VPS Hosting

How to Change the Web Root in Plesk (5 Steps)


Log in to Plesk as the administrative user.
Click on the domain with the document root that you want to change.
Click on 'Web Directories,' then click on 'Preferences.'
Move to the Documents section and set the document root to a location you want to have it set as.
Click 'Save' to apply the settings.
VPS Hosting

Thursday, August 27, 2015

How to Enable CURL on Go Daddy


Type the IP number of your GoDaddy VPS or dedicated server followed by a (:) and the number '2087' into your browser window to access your cPanel. For example, if your server IP number is 195.195.255.255, type '195.195.255.255:2087.' Wait a few seconds for your cPanel login page to appear. If you receive a security error message, click the prompt that allows you to disregard the error and proceed to your cPanel homepage.
Enter your cPanel root user name and your password in the appropriate fields in the login box. Click the 'Login' button at the bottom of the box. Wait a few seconds for the cPanel home page to appear.
Type the word 'easy' into the 'Find' box at top of the left sidebar of your cPanel home page and click the 'x' in the square next to the box. Click 'Easy Apache (software update)' in the search results that you see.
Wait a moment or so for the Apache profile screen to appear. Make sure that the radio button for 'Previously Saved Config' is selected by default unless you wish to make other changes to your PHP configuration. Additional changes are not recommended unless you are experiencing problems with your hosted sites.
Click the 'Start customizing based on profile' box, which is furthest to the right at the bottom of the 'Profile' page.
Click the 'Next step' box at the bottom of the 'Apache version' page as soon as it appears. Do not change anything on this page.
Click the 'Next step' box at the bottom of the 'PHP major version' screen as soon as it appears without making any changes.
Click the 'Next step' box at the bottom of the 'PHP minor version' screen when it appears. Do not make any changes to this page.
Scroll down to the bottom of the 'Short options list' as soon as it appears. Click the 'Exhaustive options list' at the bottom right of the 'Short options list' page.
Scroll down on the 'Exhaustive options list' page until you see an entry for 'cURL,' which is preceded by a check box; check the check box. Scroll down to the bottom of the page and click the 'Save and build' box at the bottom right.
Click the 'Yes' button in the 'Confirm action' box when it appears in the center of your screen and then click 'I understand' in the confirmation box.
Wait until you see the green 'Build Complete!' message at the top of your browser screen above the log of the changes you've made to your server. This can take an hour or more, depending upon how much data is stored on your server. Do not interrupt the process or you will lose valuable data.
Click 'Home' in the left corner of the screen to return to the cPanel home page, if you wish to carry out other maintenance tasks. Exit cPanel by closing the browser window.
VPS Hosting

Tuesday, August 25, 2015

How to Track Image Hits With AWStats


Connect to your Web server by using either your Web host's file manager or a File Transfer Protocol (FTP) application.
Navigate to the directory that contains your AWStats installation. Most Web hosting companies install the program in an 'awstats' folder in the root directory of your Web server. If you cannot find such a directory, contact your Web hosting company to get the exact location of your AWStats installation.
Download the 'awstats.yourdomainname.conf' file in that directory, where 'yourdomainname' is the actual domain name of your Web site.
Right-click on your file once you have downloaded it to your hard drive, select 'Open with...' and click on 'Notepad.'
Copy-and-paste the following code at the end of the file:ExtraSectionName1='Image Hits'ExtraSectionCodeFilter1='200 304'ExtraSectionCondition1='URL,.(jpe?g|gif|png)$'ExtraSectionFirstColumnTitle1='Image'ExtraSectionFirstColumnValues1='URL,^(\/.*.(jpe?g|gif|png))$'ExtraSectionFirstColumnFormat1='http://www.yourdomainname.com%s' TARGET='_blank'>%s'ExtraSectionStatTypes1=HBLExtraSectionAddSumRow1=1MaxNbOfExtra1=100MinHitExtra1=1Replace 'yourdomainname' with the domain name of your website. Save the file by pressing CTRL and S at the same time on your keyboard.
Upload the saved file to your Web server, in the same folder where you downloaded the original file. Press 'Yes' when the program asks if you want to replace the original file. A new 'Image Hits' section will now appear in your AWStats interface.
VPS Hosting

Friday, August 21, 2015

How to Detect Web Servers


Look for the Web service on the local computer. If you have access to the machine that you wish to check for Web servers, look to see if a Web service is installed and running. If the computer is running Windows, click on the Control Panel and select Services. Windows runs Internet Information Services for its Web server. On a Unix/Linux box, make sure you are logged in as root and in a command window, type 'netstat -tap |grep LISTEN' and press 'Enter.' This will display all services running at the time, including HTTPD (HTTP daemon or service) used by Apache Web servers.
Type the IP address or DNS (Domain Name Service) name into a Web browser. If you know either identifying piece of information, you can type it into a Web browser. Note that the Web server needs to be running on the default port of 80 in order for this method to work. A port is how network services access a server. Typically, services have default ports on which they operate, with the default for Web services being port 80. Typing in the IP address of a server in a Web browser will work, but if the port has been manually changed to something other than port 80 (unless you know what port it is) this method won't work. To specify a port other than 80 via a Web browser, type the IP address and then follow it with :XXX with XXX being the port number. An example of this format is 129.219.13.81:2112 with the number following the colon being the port number.
Run a port scanner. As mentioned above, port 80 is the default port in which a Web server operates. If you don't want to go through ports 1 through 65,000 manually, you can run what's called a port scanner. This software will 'listen' to a server which you specify by IP address or DNS name and determine what services are running on what ports. This way, if someone has enabled a Web server on port 2112 or another port, the port scanner will detect it. This method is popular if you want to detect Web servers that you don't have physical access to.
VPS Hosting