How do I uninstall Phalcon? - php

I see there procedure for intalling Phalcon on various systems. I would like to try out Phalcon, but I can't see a way to uninstall it bringing the system back to the way it was before.
I am aiming to try it out without hampering anything ... on my local machine.
I am using Ubuntu 12.04, Php 5.5.17

If you use ubuntu then it's all about editing php.ini and disabling phalcon extension. Then restarting server to apply new configuration.
Here you can find example of removing GD extension from PHP. You can do analogy with phalcon.

Related

Restart Specific Version of PHP/Apache?

I just installed PHP version 5.5 on my server (Centos 6 / Plesk 12) and changed the php version for one of my sites. I can see via a php info file that the site IS using the new PHP version, but I don't know how to start that VERSION of php. I made some changes to PHP5 ini file but when I restart apache, it restarts the old version (php 5.4) and not php5.5 ..sorry I am not the best at shell commands but does anyone know how to restart the NEW php version if i have multiple versions installed on the server? Thanks!
additional info- the changes that i made to the php5.5 ini file is loading the zend_extension opcache.so ..which is why i installed php 5.5 in the first place!
BONUS QUESTION: will zend opcache be effective running php 5.5 as fastcgi? I've heard that object cache modules are not compatible with fastcgi because it lets users run the application as their own user so the cache can not create x number of caches for each user..if that makes sense..lol
Thanks
Not sure if anyone is still following this but I also got stuck with this too. The solution I found to work was this:
Depending on what PHP versions you have setup with Plesk you need to run the following command:
service plesk-php{version}-fpm restart
For example:
service plesk-php54.fpm restart
or
service plesk-php56.fpm restart
In centos 7 the "service" command actually just calls another function so you end up calling:
/bin/systemctl restart plesk-php54-fpm.service
You can call that directly if you want but it is a few extra characters to type in.
With the above in mind you are now free to edit your php.ini files for each specific version you have enabled via Plesk. For those who don't know the ini files are usually located here:
/opt/plesk/php/{version}/etc/php.ini
Where {version} is 5.4, 5.5, 5.6, etc...
Hope this helps someone else.
In regards to your bonus question - sorry I'm not sure as I've not worked with that specifically.

memcache, wamp, php 5.4, win8

I am using wamp, PHP 5.4 running on win 8,
I can't seem to get PHP to acknowledge the memcache dll.
I download php_memcache-3.0.8-5.4-ts-vc9-x86.zip (the only one I could find).
I copied the dll to C:\wamp\bin\php\php5.4.12\ext
I added extension=php_memcache.dll
restart the server.
but still I cannot use memcache, and it is missing from Loaded Extensions list.
Please supply a step-by-step instruction on how to set this up,
Thanks.
You have to install memcached as well.
php_memcached is only an interface to the memcached service that also has to be running on the system your Apache/PHP is running on.
This site seems to be offering a ready to go .exe
This may also help with getting it running

How do I reconfigure PHP to enable Thread Safety on my Lamp Server

I'm interested in using pthreads for my PHP application. Only problem is whenever I try to install it on my server using pecl install pthreads it tells me my PHP isn't configured using ZTS. Now I started googeling a bit and found out you need to recompile it with the source code. My problem is, I'm using LAMP and I don't want my whole setup to destroy itself but I'd really love to use Pthreads. Could somebody tell me how to still enable thread safety in a way that doesn't scr*w up my server?
My server is running Ubuntu 12.04. Apache2, MySQL and PHP 5.5.
Thanks!

Adding a variable to httpd.conf file stops Apache from working

In my efforts to solve an OCI8 error, I've been led to believe it is the result of an improperly setup environment variable.
What I'm trying to do: Fix this apache environment headache, by adding variables to a certain file.
My actual problem is similar to this error from another StackOverflow user. To quote his answer to his problem:
Problem solved!
To put variables in Apache's Environment section you just have to add
them in /etc/sysconfig/apache2 file:
LD_LIBRARY_PATH=/path/to/oracle/lib.
Notably, the solution called for the modification of the file apache2.
However, I found no such apache2 file on my system.
What I've done so far:
I searched over the net, but the closest I could come up with is /etc/httpd/conf/httpd.conf file. Assuming the httpd.conf is apache2, according to this thread, I should add the variable to the end of the file, and it should work.
So I added export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib at the very end of the file.
And... apache won't even start anymore.
My system:
It's a Fedora 19 server, with Oracle 11g, PHP 5.5.4, Apache 2.4.6, and PEAR 1.9.4. In addition to this, I have the OCI8 plug-in for PHP downloaded and enabled, and have downloaded MDB2 and the MDB2_Driver_oci8.
Apache starts automatically when I boot up my system, though if for some reason I need to stop, restart, or check its status, the command I use is systemctl start httpd.service, if it means anything.
Thanks. I've been pulling my hair out on this problem.
A few things (hopefully an answer is somewhere inside)
First off, I wouldn't do this on Fedora. Fedora is the testbed for RedHat Enterprise/CentOS and it changes frequently. Even if this is just for your testing purposes, you'll find better support if you install CentOS 6 instead. The environment is virtually identical, but CentOS is better supported because so many people use it to run their servers.
Second, it sounds like you want to run the OCI8 connector (there's a reason I plugged CentOS 6). CentOS has many good repos like Remi. If you install CentOS 6 you can use his repository. This is important because this will save you a LOT of headaches down the road. Once you have his repo installed, you can do this
yum install php-oci8
And that should configure Apache to run your OCI8 extension. It's really that simple.

Fastest way to set up IIS and PHP

I tried to manually set up a PHP, IIS enviroment on windows 7, but it didn't work. I tried it hard, but never succeeded.
What's the fastes and most sure way to set up php with IIS on windows?
You can use the Web Platform Installer from MS:
http://www.microsoft.com/web/gallery/install.aspx?appid=PHP53
Or php.net has instructions for installing php under IIS:
http://php.net/manual/en/install.windows.iis7.php
Fastest way to install php on Windows servers is by using PHP Manager for IIS.
This will do all the manual stuff like installing php runtime, configuring the fastcgi for iis , make sure everything runs fine is check phpinfo() ,also makes it easier to enable/disable php extensions.
But doing manually as linked by other answers will teach you all the things this tool does automated.so if something breaks,It will be easy for you to fix it.

Categories