w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
L4 and Wordpress - How to install L4 on subdomain shared with Wordpress
Try a structure like this: /home/user/www/wp -> Wordpress install /home/user/www -> Laravel install Make sure your home page goes to /home/user/www/public. Also, for readability, I recommend calling the Wordpress install folder blog.

Categories : Wordpress

create virtual subdomain from folder throught htaccess in shared hosting panel
I had the same issue before, you must use cpanel to create the subdomain. If I remember right there was a dns issue with this code: RewriteBase / RewriteCond %{HTTP_HOST} !^www.domain.com [NC] RewriteCond %{HTTP_HOST} ([^.]+).domain.com [NC] RewriteCond %{REQUEST_URI} !^/index [NC] RewriteRule ^(.*) http://domain.com/%1 [P] If you don't want to use cpanel creating wildcard domain entry such as *.domain.com should help.

Categories : PHP

install laravel on hostgator shared hosting
Laravel 4 has server requirements here: PHP >= 5.3.7 MCrypt PHP Extension Since your host has PHP 5.2 - you cannot use Laravel 4. Consider changing hosts, or using Laravel 3.

Categories : PHP

Subdomain hosting with Django + Nginx +Gunicorn
"Using the sites framework" is somehow the same as hosting two projects with the same database. If you would use the sites framework you would have seperate instances for each subdomain which share the same code base and data base, but have to differ in one setting in the first place, which is SITE_ID. If you're able to run multiple instances this for sure has some advantages: You don't need additional processing via a middleware You can easily choose different settings for each site, eg. different template paths, use different middleware etc, even customize urls per project if necessary You're doing already some kind of load-balancing, as you're directing requests to seperate instances, also if one site crashes it shouldn't affect the others If you can only run one instance I guess

Categories : Django

Why node.js can't run on shared hosting?
There are other ways to deploy node.js apps. You can use PaaS services, like Openshift, Heroku, AppFog, Paastor, dotCloud etc.

Categories : Node Js

Multiple web.config on shared hosting
The only way to have a subdirectory act as a separate application with its own web.config is to configure it to be a separate IIS application. In a dedicated hosting environment, you'd do this within IIS. However, the fact that you're on a shared hosting platform doesn't automatically make it impossible. Most shared hosting provides a web interface that you use to configure your site, and often - but not always - that interface will give you the ability to set up subfolders as separate applications. I can't tell you whether you have this option or where it is, since I don't know what control-panel software/product your hosting uses (and even if I did, I probably wouldn't be familiar with that specific product/version, but it's worth having a dig around in your control panel to see if yo

Categories : C#

Deploy .net mvc site on shared hosting
You may check out these questions: error: 26 - Error Locating Server/Instance Specified. (Can't connect to my local Db From my host server) and SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified Most of them suggest you check your 'Data Source=SQL5004.Smarterasp.net' part again.

Categories : Dotnet

htaccess for symfony2 in shared hosting
The symfony standard edition already contains a .htaccess which you can use. DirectoryIndex app.php <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$ RewriteRule ^(.*) - [E=BASE:%1] RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^app.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L] RewriteCond %{REQUEST_FILENAME} -f RewriteRule .? - [L] RewriteRule .? %{ENV:BASE}/app.php [L] </IfModule> <IfModule !mod_rewrite.c> <IfModule mod_alias.c> RedirectMatch 302 ^/$ /app.php/ </IfModule> </IfModule>

Categories : Apache

Shared hosting - catch user ip
IP address of your website differ on Shared Hosting. Many websites on Shared Hosting may have different DNS names but same IP addresses. You will get a same IP address only when you are on Dedicated Hosting Server. EDIT : Try this alternative code <?php function get_client_ip() { $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); else if(getenv('HTTP_X_FORWARDED_FOR')) $ipaddress = getenv('HTTP_X_FORWARDED_FOR'); else if(getenv('HTTP_X_FORWARDED')) $ipaddress = getenv('HTTP_X_FORWARDED'); else if(getenv('HTTP_FORWARDED_FOR')) $ipaddress = getenv('HTTP_FORWARDED_FOR'); else if(getenv('HTTP_FORWARDED')) $ipaddress = getenv('HTTP_FORWARDED'); else if(getenv('REMOTE_ADDR')) $ipa

Categories : PHP

Using SQL Server databases on shared hosting
In this scenario you should not attach your own DB files. Create a new database (e.g. using SSMS or host's Control Panel) on the server provided by the host. Import your local data into that DB and use new server/db/uid/password in your connection string. If your host already provided you the DB - just use existing DB (don't create a new one) but still import your local data into that DB.

Categories : C#

starting a websockets server in php on shared hosting
Not having SSH access to your shared hosting is pretty flaky. That said... You can use exec to run something on the command line from a triggered script. For instance, if you have a controller action that you call from a URL like http://mysite.com/server/start, you could embed the line: $lastLine = exec("php server.php"); Of course, this command will not return until the command finishes, so you will never get a response from this script (unless it fails). So I would use popen, which will fork the process and return right away, allowing your controller to return a response. $handle = popen("php server.php", "r"); At some point, you are probably going to want to stop this server. You can use passthru and posix_kill with a little unix CLI magic to get this done, maybe in another contr

Categories : PHP

What is the best way to handle a lot of images from a shared hosting plan?
Before you contrive a bunch of subdomains to maximize parallel connections, you should profile your page load behavior so you know where most of the time is being spent. There might be easier and more rewarding optimizations to make first. There are several tools that can help with this, use all of them: https://developers.google.com/speed/pagespeed/ http://developer.yahoo.com/yslow/ http://www.webpagetest.org/ Some important factors to look at are cache optimization and image compression. If you've done all those things, and you are sure that you want to use multiple (sub)domains, then I would recommend using a content delivery network (CDN) instead of hosting the static files (images) on the same shared server. You might consider Amazon's CloudFront service. It's super easy to set

Categories : Performance

ActiveReports HTTP handler shared hosting
In case you are facing issues related to permissions, then I would suggest you to run the application on MediumTrust. Please refer to the following documentation link that will guide you through: http://helpcentral.componentone.com/nethelp/AR7Help/OnlineEn/arMediumTrustSupport.html On further searching, I found the following link wherein a similar issue has been discussed on the godaddy’s support page. This might be informative for you: http://support.godaddy.com/groups/web-hosting/forum/topic/request-to-add-arcacheitem-handler-to-iis/

Categories : Asp Net

Deploy flask application on 1&1 shared hosting (with CGI)
I found a solution! I left the /$1 away from my .htaccess and modified werkzeug a bit because the environment variables in CGI are named a bit different the in WSGI applications. I'll inform the werkzeug developer about it and maybe he'll include my solution into werkzeug.

Categories : Python

SVN Issues "redirect cycle detected" on Shared Hosting
Getting svn started is tricky. This is something to try at this point (assumes public_html directory is under ~ or $HOME): cd $HOME mkdir init_project1 cd init_project1 echo "Directory under svn revision control." > readme.txt cd $HOME svn import init_project1 file://$HOME/public_html/svn/project1 -m "Initial import" cd $HOME rm -rf init_project1 svn co file://$HOME/public_html/svn/project1

Categories : Svn

Hosting Nopcommerce Using Azure Website Shared plan
As this seems to be a commercial venture using the shared plan could cause unwanted, business damaging outages. Some of the shared plan's limits (CPU, memory) can possibly be triggered by a short but intensive burst of requests. The required requests are significantly less than for a DoS which is kind of the worst case. When a resource has been used over limit your azure website will be "switched off" until the calculation period for the limit has passed. For an online store scenario this would mean a significant service disruption. Assuming that there are no unwanted or malicious requests at all, there is still no reliable way to guesstimate your resource usage from the information you provided. You would have to deploy the actual application with actual (or closely approximated) data,

Categories : Azure

Is it possible to make a tcp connection(Server-Client) on a Shared Hosting?
As long as you can get a dedicated IP address in the shared hosting, you should be able to float a TCP server there. Please note that, you can float a TCP server even when you IP is shared, but then there is no guarantee on the port number -- some other tenant on that shared IP can also end up using the same port number and that might be an issue. Can your provider allocate you a specific port (or ports) -- if so, then you can do without having a dedicated IP address. Here is a good read: https://my.bluehost.com/cgi/help/426 Once you have a connection, it is a matter of sending updates periodically via the socket to refresh it instead of a manual refresh.

Categories : Java

Deploying Laravel 4 on shared hosting server (hostgator)
Turns out I had not installed Composer properly. I solved this by: adding alias to php 5.3 in .bashrc: alias php53='/opt/php53/bin/php' installing Composer: curl -sS https://getcomposer.org/installer | php53 in composer.json, in the "scripts" replacing php with: /opt/php53/bin/php (alias is not accepted, do not know why) running php53 composer.phar install adding to .htaccess: AddType application/x-httpd-php53 .php

Categories : Laravel

htaccess - hosting multiple domains on one shared server,
Untested code: I believe you can do the following RewriteCond %{HTTP_HOST} ^(www.)?site1.com$ RewriteRule ^site2/(.*)$ http://site1.com/$1 [R=301] This will (or should) redirect the client from http://site1.com/site2/my/awesome/page.php to http://site2.com/my/awesome/page.php.

Categories : Htaccess

Mod_Rewrite issue on shared hosting (Godaddy & Laravel 4)
Any ideas on how to make it work without having to add index.php? It doesn't require mod_rewrite. Just add this line on top of your .htaccess: DirectoryIndex index.html index.php This will make apache automatically find and render index.html if found otherwise index.php will be shown in any sub-directory under DOCUMENT_ROOT.

Categories : PHP

Turn strict mode ON in innoDB in MYSQL in shared hosting
According to mysql documentation ( http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html and http://dev.mysql.com/doc/refman/5.5/en/innodb-other-changes-strict-mode.html ) inno db strict mode is a global dynamic setting. As a dynamic setting you may change it on runtime, but as a global setting you may do it only if your user has the SUPER privilege. Users without SUPER privilege can't manage this setting because its value affects to all clients. So only server administrators may turn on/off this setting. Regards.

Categories : PHP

exec alternative to trigger multiple new php threads in shared hosting
Typically such tasks are spawned via internal requests inside the http server. Just use phps [virtual()][1]or the [curl extension][2] for more complex tasks. You are however limited to phps web configuration, so take care about the limits like execution timeout and the like. I doubt there is a way to spawn a real process on a web hosters system. That would be a horrible security thread! Often such tasks are also delegated to some sort of job scheduler implementation which is triggered by cron, poor mans cron or an ajax based trigger. This means you have to implement a scheduler for jobs waiting to be processed. But it also brings a good separation of separate jobs.

Categories : PHP

SECURITY: exploring shared hosting with basic shell account
Listing active session files is different from being able to read the contents of the actual files themselves, the first is among the cons of shared hosting, the second is a server misconfiguration. The file /etc/passwd no longer stores security sensitive information, merely data that users are allowed to view about themselves, so this needs to be publicly readable. Passwords are stored in shadow files which are not world readable.

Categories : Security

PHP 5.4 - CodeIgniter - PCRE library issue workaround in shared-hosting
I suggest you edit the /system/core/Utf8.php file. On line 44 put an @ in front of preg_match. This should at least suppress the error message and allow the script to continue. Original: function __construct() { log_message('debug', "Utf8 Class Initialized"); global $CFG; if ( preg_match('/./u', 'é') === 1 // PCRE must support UTF-8 Modified: function __construct() { log_message('debug', "Utf8 Class Initialized"); global $CFG; if ( @preg_match('/./u', 'é') === 1 // PCRE must support UTF-8

Categories : PHP

How to set up a Php file for the server (shared hosting) on public_html then send it to the right place
echo $_SERVER['DOCUMENT_ROOT']; thats your current path. if you want to hide the files on the server, put them in a directory that is further up the tree than the public_html/ directory, perhaps in their own videos/ directory +/directory structure illustrated | -videos/ --upload203.mpeg --upload204.video -public_html/ --index.php --upload.php --view.php etc..

Categories : PHP

Automate SQL Server 2008 backup and restore on shared hosting with limited permissions
In case you don’t have full access to SQL Server and the machine that is running it you can’t really initiate a restore command (maybe there are some workarounds but I’m not familiar with any). What you can do if SQL Server is on a public IP address is setup some kind of replication between two servers so they synchronize automatically. Again, not sure if this is possible w/o full access to machine but you can give it a try. Final solution would be to use one of the third party comparison and synchronization tools to synchronize databases at a given time. Just find a tool that has command line interface such as Data Diff from Apex. Another one you can use is Data Compare from Red Gate but I’m sure there must be others too. Note that these tools are not free …

Categories : Sql Server

Install the Kohana Framework on a PHP - Web Hosting Server
Yes, Kohana can be installed on just about any server. There are some optional things, like image manipulation and emailing, that will not work if the extensions are not installed/enabled, though. You can go through Kohana's documentation and figure this out on your own.

Categories : PHP

Umbraco 6 MVC on 1&1 (1and1) shared Windows hosting returns encoding error, appears to be related to gzip
You should probably enable gzip in your web.config <system.webServer> <httpCompression directory="%SystemDrive%inetpub tempIIS Temporary Compressed Files"> <scheme name="gzip" dll="%Windir%system32inetsrvgzip.dll"/> <dynamicTypes> <add mimeType="text/*" enabled="true"/> <add mimeType="message/*" enabled="true"/> <add mimeType="application/javascript" enabled="true"/> <add mimeType="*/*" enabled="false"/> </dynamicTypes> <staticTypes> <add mimeType="text/*" enabled="true"/> <add mimeType="message/*" enabled="true"/> <add mimeType="application/javascript" enabled="true"/> <add mimeType="*/*" enabled="false"/> </staticTypes> </ht

Categories : Asp Net Mvc

How to securely store sensitive data on a shared-hosting provider while accessible to server-side scripts?
No matter what you do I think you have to trust the hosting provider in this instance. You can't hide the information since, as you say your self, you must store the secret key ,unencrypted, on their server(s). This is the reason for never storing sensitive data on someone else equipment if you don't trust them completely (and you should never do that). Just the fact that you consider doing this makes me think the data ain't really that sensitive at all (and in that case the entire discussion is pointless). TL;DR Don't share your secrets with other people, try to host your own sensitive data instead, if it really is that sensitive.

Categories : PHP

Hosting wordpress blog on AWS
By default, the root volume of an EC2 instance will be deleted if the instance is terminated. It can only be terminated automatically if its running as a spot instance. Otherwise it can only be terminated if you do it. Now with that in mind, EBS volumes are not failure proof. They have a small chance of failing. To recover from this, you should either create regular snapshots of your EBS volume, or back up the contents of your instance to s3 or other storage service.

Categories : Wordpress

WordPress and www subdomain
Apache allows name based virtual hosts. This means you can host multiple FQDNs on the same IP address. You need to add a name based virtual host for www.xyz.test that points to the same directory. Or you could add a server alias in the xyz.test virtualhost configuration: ServerName xyz.test ServerAlias www.xyz.test

Categories : Wordpress

Map a page to a subdomain in wordpress
[R] will always at this way. [R=301,L] means redirect to a permanent new location. Try Using reverse proxy RewriteCond %{HTTP_HOST} mypage.mysite.com RewriteRule ^(.*)$ http://mysite.com/mypage$1 [P]

Categories : Wordpress

wordpress Multisite with already used subdomain
For WPMU , you must ensure that you have the following code in your wp-config.php define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'example.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); this is for the sub directory installation for WPMU and define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'example.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); this is for sub domain installation of WPMU you can feel the difference here as follows define('SUBDOMAIN_INSTALL', true); and define('SUBDOMAIN_INSTA

Categories : Wordpress

Error in wordpress database connection while hosting site
The problem is with DB_HOST it should be something like domain name or ip address eg: synux.sqlserverdomain.com You can check from your hosting provider to get mysql hosting server. Many times it could be as simple as localhost For more info : http://codex.wordpress.org/Editing_wp-config.php

Categories : Mysql

is it possible to uploading images on subdomain in wordpress blog...?
Check the site url in wordpress database. Check the options table. The first entry will be the site url. Check the value of site url there and verify that it corresponds to the subdomain. If not change it and try re uploading.

Categories : Wordpress

wordpress multisite from exsiting 4 wordpress directory install
You can do it , but before you need to get backup for the all websites, also import all your posts from all the wordpress installation Create a Network in your main domain , for your reference Create_Network Then create your child website, based on the Sub-domains — a domain-based network in which on-demand sites use subdomains Sub-directories — a path-based network in which on-demand sites use paths so your child website should be like examole.com/university example.com/school example.com/exam Once you have successfully created your child websites then there would be a separate wp-admin for each child websites in your Main wp-admin, once you get logged in as admin , At the left of your WordPress toolbar, My Sites is now the second item. There, all your sites are l

Categories : PHP

How to render a page on a WordPress website for a subdomain using htaccess
Try this: RewriteCond %{HTTP_HOST} !^(www). [NC] RewriteCond %{HTTP_HOST} ^(.*).example.com [NC] RewriteRule (.*) http://www.example.com/countries/%1/$1 [L] It will also redirect india.example.com/test.html to www.example.com/india/test.html

Categories : PHP

Wordpress subdomain integrated with existing website rewrites urls
In my case, it was a weird thing. If I had a post called "Foo bar", the page example.com/foo-bar worked. If I deleted the post, the page didn't work anymore. So my "solution" was to add articles that were named like my URLs... and hide them somewhere.

Categories : PHP

forced https on subdomain .htaccess file is sending wordpress admin page to parent domain
Place the following in the .htaccess for the domain # .htaccess WildCard SSL + wordpress + subdomain RewriteEngine on RewriteCond %{HTTP_HOST} ^shop.domain.com$ RewriteCond %{REQUEST_URI} !^/shop/ RewriteRule ^(.*)$ /shop/$1 RewriteCond %{HTTP_HOST} ^shop.domain.com$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(/)?$ shop/index.php [L] # BEGIN WordPress for main domain <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteRule ^index.php$ - [L] RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress

Categories : Wordpress

Android NDK build doesn't install shared libraries to libs
Move the build shared library to the top of Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := cameramodule.cpp LOCAL_C_INCLUDES += $(LOCAL_PATH) LOCAL_LDLIBS += -lGLESv1_CM -ldl -llog LOCAL_MODULE := cameramodule include $(BUILD_SHARED_LIBRARY) OPENCV_INSTALL_MODULES:=on OPENCV_CAMERA_MODULES:=on OPENCV_LIB_TYPE:=SHARED OPENCV_PATH := /home/tran/signs/OpenCV-2.4.5-android-sdk/sdk/native include $(OPENCV_PATH)/jni/OpenCV.mk

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.