a very simple or stupid question may be...but i would like to know that these web framewrok require unique host or any php host can be used to get my site hosted.
what i mean is that there are certain host that are wordpress hosting and blah blah...so if i use framework like codeigniter, yii, zend....do they also require such host or any web host can be used which provide php hosting. previously i have developed two sites both are non framework based static site so i simply uploaded them on web host and enjoyed my work but now i m using codeigniter for my new site (my first framework ) . so this time do i need other host or any php host can provide it ....
PHP frameworks are written in PHP themselves, and can be ran on any PHP host.
Things to watch out for are frameworks that require specific versions of PHP. Most frameworks these days simply require PHP 5.3 or greater, which most hosts provide.
Also, there are some for-pay PHP applications that encrypt their source code with tools like ionCube. These would require special hosting, but are rare.
Short answer
No, there is no link between a web hosting and a framework except the obvious for example the web host should support php for codeigniter to run.
Long answer
Frameworks are nothing special. It is just pre-written php code which you can use. Example codeIgniter is just some php code. And so is web apps like wordpress. They all are nothing but just some php code. So all your web hosting service requires is to support recent versions of php
Any advertisement done by webhosting services about how they support wordpress and stuff are just marketing gimmicks. Any of the top rated webhosting service can prety much support any of the top rated php frameworks and web-apps
If you still want to be sure that if your webhosting service can run a particular php script, you can look up the requirements. Here are the requirements for:
CodeIgniter
WordPress
Yii
Joomla
CakePHP
As you can see here, most of them if not all of them, require you to have php 5 and some sort of database. Typicaly MySQL. These two requirements are pretty standard with most php web-hosting services
Related
I have two Joomla 3.0 sites installed on the same hosting account, each in their own directory on their own database. Both are subdomains of the same domain. The are hosted with Bluehost shared hosting at the moment, but I will be upgrading to VPS hosting once I go live.
Hosting environemnt:
Apache version 2.2.25
PHP version 5.4.17
MySQL version 5.5.33-log
Architecture x86_64
Operating system linux
Site #1:
subdomain1.domain.com
- is an online magazine with login/registration and ability to comment on articles. I am using the Zoo component for content articles rather than the Joomla default.I am also using the JFBConnect component and SCLogin module.
Site #2
subdomain2.domain.com
- is an installation of Jomsocial 3.0 with login/registration only, also using the FBConnect component and SCLogin module.
Both are using the same responsive Yootheme warp framework template. I intentionally installed them in different directories under the theory that if one were to malfunction, at least the other would be viable in the interim.
My question(s):
Is it possible for users to login and register just once in order to be recognized by both sites/databases and have full use of all functions in both?
Is my installation of Jomsocial on a separate directory the best course of action, given my rationale?
Are there any other considerations to the above scenaio that I might have overlooked?
Thank you in advance for your help!
Hmm, I have to say it's probably not the best method you've chosen here.
It's not so much the files that you have to worry about, it's the database as all data is stored here. I would personally suggest having you're main site on the main domain and taking daily backups of the database and a backup of the folder/files every time you, for example, install an extension which adds new files and folders..
If something goes wrong, simply uploads the backup.
Yes it is possible using jFusion. The warp framework, jomsocial etc has zero relevance. http://www.jfusion.org
That said, your assumptions for implementing this method for having a viable site available are seriously flawed.
Trying to integrate something like tracewatch into admin panel of my PHP, MySQL based website.
But I need 1 page solution, not heavy system like twatch with user management.
I wonder, is there any simple php class or mini app for this purpose (want to get something like this on admin page)?
There are bunch of tracewatch alternatives. Here are somes:
Piwik
Piwik is an open-source Web analytics application developed using PHP and MySQL. It has a "plugins" system that allows for utmost extensibility and customization. Install only the plugins you need or go overboard and install them all – the choice is up to you. The plugins system, as you can imagine, also opens up possibilities for you to create your own custom extensions. This thing’s lightweight – the download’s only 1.9MB.
FireStats
FireStats is a simple and straight-forward Web analytics application written in PHP/MySQL. It supports numerous platforms and set-ups including C# sites, Django sites, Drupal, Joomla!, WordPress, and several others. Are you a resourceful developer who needs moar cowbell? FireStats has an excellent API that will assist you in creating your own custom apps or publishing platform components (imagine: displaying the top 10 most downloaded files in your WordPress site) based on your FireStats data.
JAWStats
JAWStats is a server-based Web analytics application that runs with the popular AWStats (in fact, if you’re on a shared hosting plan – AWStats is probably already installed). JAWStats does two things to extend AWStats – it improves performance by reducing server resource usage and improves the user interface a little bit. With that said, you can’t go wrong with just using AWStats either if you’re happy with it.
SimpleStats
Simple Stats is a PHP based, web analytics utility designed to enable you in monitoring visits on your website. It is very simple to install, and it's interface goes straight to the important facts such as the Google search queries (understand "the search expressions in Google") that your visitors might have used to browse to your website.
You could try Piwik. You can access features using an API or embed a widget via iframe.
I'm trying to develop an application server that will deliver content to a core group of websites, as well as provide third party services to other websites that also want to use this content. The app server will be hosting web services for these core + 3rd party websites. Authentication and all that comes into play. The data itself will consist of millions of records.
These records will come from a variety of sources: APIs, RSS feeds, REST services, etc. This app server will essentially collect this data on a routine basis, and update the database with this new information. This data will then be shared via some sort of web service (most likely REST) to the core websites and 3rd party websites.
FYI, I'm making a distinction between core sites and 3rd party websites because there will be different access levels, i.e. a core website will have more access than a 3rd party website.
All that said, I'm trying to make the best decision on which framework to use. At the risk of losing all credibility, I currently have a ton of this code written as a wordpress plugin. What started as a one-time site evolved into several sites, and some homebrew hacking to make my outdated infrastructure work across multiple sites.
I'm looking to migrate all of this to a new application server, with a solid framework.
Since everything is written in PHP, obviously I'm tempted to do the migration in PHP. However, I'm considering Python because of its powerful ability to manipulate data. I don't know if it's worth the hassle, though, of rewriting a lot of code in Python.
Could anyone give me some tips on what I should do? I'm really looking to clean up a big mess more than anything, and would like a framework to encourage some solid programming conventions.
All of the frameworks that you mentioned are capable. Pick one in the language that you know the best and use that.
I agree with #gpojd's opinion. All of them that you mentioned are fully capable.
However, it looks like they are too powerful for your job. Because they are all full-stack MVC-like web frameworks shipped with ORM, Template engine, URL redirections and i18n supports.
So, I suggest you to use more lighter/thinner frameworks. and if you don't mind choosing any programming languages, please check out the below frameworks.
Python
Werkzeug : http://werkzeug.pocoo.org/
Javascript
node.js : http://nodejs.org/
with Stylus framework : http://expressjs.com/
I am developing an application with Ruby on Rails (will be more to come) and it has got to the stage where I would like to remotely host a development version, followed by a production one. I have done lots of rails development but I am reviewing my current setup and would like to make sure I do things the industry recommended way form now on.
I already have a dedicated server which is running parallels plesk and has several domains on it. I have currently had some success by creating a new user "passenger" to run the rails app and deploying via that user to an apps directory under
/var/www/vhosts/myrailsapp.com/subdomains/dev/
which is the parallels-format for site directories, deploying using capistrano and running the passenger module for apache. I have basically been putting my rails files where I would put them if it were a plain php site or similar and I was wondering if this was the way things are usually done?
I also found some information online which points at putting my rails apps under
/var/apps/
or similar, but then it would conflict with the parallels plesk way of doing things which could potentially cause issues, or could it?
I have already looked at solutions like Heroku and they won't quite work as I need to run other programs alongside my rails app on the same server to handle some real time server to server file syncing of files uploaded using the app. Added to this I need to ideally be able to host normal PHP applications alongside my RoR ones to make best use of the server.
How should I ideally go about implementing this sort of setup for secure hosting and deployment? If needs be (i.e my current setup is far less than ideal) you could assume I am starting from a vanilla ubuntu server install which I would be open to if it produced a nicer system to manage.
I figured many people would have had similar situations and so any advice from any of you veteran Rails/PHP developers or server admins would be greatly appreciated.
Many Thanks,
Peter
Normally it's a bad idea to put your Rails project files anywhere in your public html space because you don' want anybody to be able to put something like http://yoursite.com/config/database.yml and access sensitive information. Even if that's not possible under normal situations, it could still happen if you have problems with Passenger starting up correctly or something similar.
So I would recommend putting your Rails apps in /var/apps or /srv/apps (as we've done) and setup the Apache config to point your domain or subdomain to that directory.
If you want to have your app accessible by a subdirectory on an existing domain it takes some additional setup but that can also be done.
I have developed a Portal using Microsoft ASP.NET and MSSQL. Now, I want to include vBulletin to my site for that purpose I need to have PHP and MySQL(or MSSQL will do?). With single login feature for both the Portal and Forum.
I have hosted my site on Dedicated IIS webserver hosted on MS Server 2008.
I can install PHP on it. (and MySQL too if required)
The problem here is how can I integrate the user's of my portal with vBulletin forum??
Is there any way to Install vBulletin using IIS+PHP+MSSQL?
or
I have to use IIS+PHP+MysQL and integrate users of users of both the databases? (HOW?)
At the moment vBulletin only supports MySQL. There is talk of adding support for other databases however right now with all versions of VB MySQL is your only option. So without heavily modifying VB this cannot use MSSQL (in fact I would strongly recommend that you don't even try embarking on that)
The other complication is that you are using two different code frameworks, PHP for vBulletin and ASP.NET (C#?) for your portal. All these frameworks can sit together on the same dedicate box but you need them to communicate with each other.
With all this in mind the easiest way of having SSO across the two platforms (portal & vbulletin) would be to use the vBulletin user table in MySQL for your portal authentication. There is a .NET MySQL driver that you can use for this purpose and running the necessary queries via that, from ASP.NET, should be fairly simple.
The only other thing that you will have to consider is a user logging in on your portal page not having to relog when they go to the forums. This can be done by setting cookies etc so you will have to look at vBulletins login.php script to work out how these are handled.
There is also another option, that you may or may not want to consider (depending on how much work you have put into your portal ;)). There is already a free portal product for vBulletin called vbAdvanced:
http://www.vbadvanced.com/
This may already meet your portal requirements and is developed specifically for vBulletin.