Sphinx on server with Cpanel? - sphinx

Had a quick question about Sphinx Search installation. Do I need to install it differently for a server with cpanel on it? Or would the normal linux installation instructions for Sphinx work just fine? I ask because I dont have a test server with cpanel, so it will be installed directly on the live server.

Pretty sure there are no special considerations. cpanal wouldnt be used to manage sphinx, but it would work just fine. You will probably need to check the firewall, to make sure applications could contact the sphinx port.
(I've not needed to install sphinx on a cpanel server, but have used cpanel a bit. Have used sphinx with plesk - and nothing special was required there either)

Related

Install YII2 on Centos 7

I read that it was impossible to install yii2 on a standard hosting platform (redhat, centos...) without deleting the AssetManager.
And install is lock with it. Access refused, permission denied.... Despite the rights 777 on the assets folder.
And in default way, hack code, disable control like (is_writable) to allow continued the install process to congratulation, but without css ....
But I can't modify all the code , to use it?
They're a lot of issue about assetmanager.
I tried yii1 few years ago, and it was wonderful framework... But everything is permitted under windows. Someone tried to install it under redhat, fedora, Centos.
There is a specific configuration ... Or yii2 not builted and designed for theses environments ?
Because i found tuto about laravel 5.1, Zend 2 since 2013... But nothing about Yii2, and only one... about Yii1... on this hosting OS.
Yii2 is ready for professionnel standard hosting environnement or is just for hobbist with Wamp under Windows ? (Online tuto is in majority on this OS, with Wamp...).
And maybe for that, it's work fine... like i test under windows
Thank you for the links. I had read
Finally I found the answer, which is never explained in the tutorial above (because often disabled and the module is not present in Ubuntu or Debian)
It's SELinux security. To install Yii2 there are the following commands:
semanage fcontext -a -t httpd_sys_rw_content_t 'each folder writable'
setsebool -P httpd_unified 1
Without this open rignt, you can't install Yii2
All what Yii 2.0 requires is a Web server supporting PHP 5.4 or above.
( currently not PHP 7 due to reserved word conflict that will be solved in future releases )
And yes 5 stables versions ready for production has been released, currently Yii 2.0.5
Here is a quick example about how to install Yii2 with CentOS6 which has nothing different from what is already described in the official docs.
If you know any CentOS related issue please post them and we will discuss answers, because sincerely i just did few searches and didn't found any besides few wrong apache or nginx configurations or missing packages like this CentoOS7 case. Otherwise if you need a pre-configured & working VM with Yii2 and CentOS 7, then you may check this vagrant repo.

Do I have to uinstall wamp for cakephp and mongodb?

I used wamp for all my projects. But today, I was asked to use mongodb and cakephp to try something new. I have a limited knowledge on how cakephp works, and I was able to install mongodb without any problems. My dilemma are, since I am new to both technology, do I have to uninstall wamp? If yes, what is the server that I am going to use then? Still Apache? Do I have to install both Apache and PHP separately/ manually?
What do I do? Please help.
Where do I unzip the cakephp then? in the www/root folder I created for apache?
CakePHP is just a framework that runs on top of Apache+PHP and MongoDB is just a database like MySQL (which comes with WAMP). As MySQL and MongoDB don't conflict at all, you shouldn't uninstall anything. You will still need the A (apache) and P (PHP) of your WAMP stack.

ZendServer CE - change database type?

I am using the trial version of the Zend Server edition. From all the videos/documentation supposedly you are able to change the database version from SQLITE to MySQL, but all I get when deploying an application on Zend Server is to set the Host, Database name, username and password?
Just install mysql on your system and use it. ZendServer does not care what database engine you use. When installing Zend Server it is supposed to ask if you want to install mysql (possibly you have to chose manual installation or custom or extra stuff) you might of mised that option so perhapds reinstalling is the simpler solution.
But really, you should be able to just install mysql and start using it.

Scalable AllegroGraph on Azure

I'm thinking of using AllegroGraph, but there's an issue! Can it be used on Azure? Did anyone already did it? I've got a Linux machine in which I'm thinking of installing AllegroGraph Server. There's already a MongoDB instance there, the idea is to connect them in the future.
If you're just using a Linux VM, I don't what Windows Azure has to do with whether this will work or not. If it runs on whatever Linux distro you're using, it should work.
I've tested it and it works like a charm, simple installation.
Just remind of opening the doors needed to either access the webview or other software like Gruff.

How can I use MySQL 5.x with PHP 4.x?

I am requested to support a legacy system. I needed to install PHP4 on my computer for that and also MySQL 4.x. I couldn't find a MySQL 4.x version that installs on my computer so I thought I'd upgrade the system to MySQL 5.x. The problem is, PHP4 does not seem to work with MySQL 5.x.
I've read somewhere that something called mysqli is needed in PHP for it to be able to work with MySQL 5.x. I just couldn't quite understand whether it's something that is included in PHP5 or something I can add to PHP4.
If it's something I can add to PHP4, how?
Thanks.
PHP4 should work mostly fine with MySQL 5. Note I'm just talking from experience, sometimes it seems the technical stuff I read on the official MySQL and PHP sites have conflicted with what I observe. For what I've done, the only thing I really needed to worry about for compatibility between the two is authentication. Make sure the MySQL account you're trying to connect with from PHP4 uses the old password encoding. You can see this yourself in the mySQL user table. I can't remember the exact numbers but passwords stored under the old format are around 16 characters hashed whereas under the new format they are significantly longer.
More info here:
http://dev.mysql.com/doc/refman/5.5/en/old-client.html