I want to install Phalcon on cPanel. I have cPanel on my dedicated server running CentOS 6.6.
So far I followed the instructions HERE.
cd /var/cpanel/easy/apache/custom_opt_mods/
git clone https://github.com/thecpaneladmin/EA-PhalconPHP.git .
/scripts/easyapache
I tried to configure current profile, and when EasyApache starts there is no such module to select like Phalcon.
In instruction there is: From here, select Phalcon from the list of PHP modules. But it is not on the list
I also tried to edit /usr/local/lib/php.ini by adding the line extension=phalcon.so bt it won't work
How to install that module if I can't select it in easy Apache.
Is there another approach to install Phalcon on system with cPanel?
it will not working without adding Phalcon to php.ini
add this extension in php.ini
extension=phalcon.so
and run simply terminal commands as root:
Go to location
cd /var/cpanel/easy/apache/custom_opt_mods/
Copy git file
git clone https://github.com/thecpaneladmin/EA-PhalconPHP.git .
Run easyapache
/scripts/easyapache
Phalcon in easyapache 3 is now deprecated.
It is however available in easyapache 4.
Related
I am working on a project with setup PHP7.3, Drupal 6.4 with memcached. Memcached is working in server and in my local machine with windows. But I am not able to make it work in my Mac machine. I followed the below link to make this work.
https://www.journaldev.com/1/install-memcached-mac
And I tried
brew install memcached
Also.
Then added
[memcached]
extension="memcached.so"
In php.ini file. Then restarted apache. After this on the first run I got the error
{"Error Details":{"Message":"\n Error code : 32\n Message : PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/local/lib/php/pecl/20180731/memcached.so (dlopen(/usr/local/lib/php/pecl/20180731/memcached.so, 9): image not found), /usr/local/lib/php/pecl/20180731/memcached.so.so (dlopen(/usr/local/lib/php/pecl/20180731/memcached.so.so, 9): image not found))\n File name : Unknown\n Line no : 0\n Date :12-March-21 02:45:05\n Path : http://localhost/mysite/?q="}}
But from the second run onwards the error is not there. But memcache is not working. And I can't find the memcached.so file in my system.
How can I fix this? Please help
I tried this. It helps.
https://izziswift.com/how-to-install-memcached-module-for-php7-1-on-macos-high-sierra/
pecl bundle memcached
Change to the directory it output.
phpize
Make sure libmemcached and zlib are installed (brew install libmemcached zlib).
Get the zlib directory (brew list zlib).
./configure --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/ (replace the zlib path with the one from the previous command).
make
make install
Add the extension line in your php.ini file (ex. change the paths to match what make install output. I added this to my /usr/local/etc/php/7.4/conf.d directory in a file called ext-memcached.ini.
[memcached]
extension=memcached.so
Verify you installed the module php -m should show you memcached in the outputted list.
Have you remembered to start the service?
brew services start memcached
I migrated from EasyApache 3 to EasyApache 4 using the migration tool in my shell. Right now, in the WHM, I'm setting the provision but I got an error with php-cli that says
Error: Transaction Check Error:
file /usr/bin/php from install of ea-php-cli-0.2.0-1.1.1.cpanel.x86_64 conflicts with file from package php70w-cli-7.0.15-1.w6.x86_64
How can I solve this? I'm searching a lot of pages but couldn't find an answer
You could try to remove that package php70w-cli-7.0.15-1.w6.x86_64 since that's not an EA4 package (yum erase php70w-cli-7.0.15-1.w6.x86_64)
Do a rpm -qa | grep php and see what php packages are actually installed on the server.
Are you sure that the migration completed succesfully? Did you use the migration script from a ssh console?
This should be run first, then you can access EasyApache4 from WHM
/scripts/migrate_ea3_to_ea4
I did a general yum install command on my Centos7 server, and got phpmyadmin 4.4 - I want version 4.6
How do I cleanly remove phpmyadmin version 4.4 before installing the new version? I am running php7, and the phpmyadmin 4.4 added many php5.4 files, some of which conflict with my php installation.
Remove phpmyadmin:
yum remove phpmyadmin
Be aware:
It will not delete the /etc/httpd/conf.d/phpMyAdmin.conf file but it will change it to phpMyAdmin.conf.rpmsave
Same for /etc/phpMyAdmin/config.inc.php.rpmsave
I you are using centos 7 I believe you are using apache web server Apache/2.4.6 (CentOS). I usually provision centos with the epel repositories.
the version that is installed by default (using the terminal is 4.4.15)
when you install phpmyadmin using terminal it creates a file in /etc/httpd/conf.d/phpMyAdmin.conf
If you take a closer look to this file it has the php configuration where the phpmyadmin files are located in the server. (/usr/share/phpMyAdmin).
Phpmyadmin configuration
this are possible solutions:
1) download the version that you would like to have (phpMyadmin 4.6) and download it to the root of the web folder (var/www/html/phpMyAdmin) restart the server and you will be able to access phpmyadmin directly
2) you can download the php source from phpmyadmin official page to this folder /usr/share/phpMyadmin4.6
2.1) edit the configuration file to point to 4.6 php myadmin /etc/httpd/conf.d/phpMyAdmin.conf.
2.2) restar the server and try http://ip-to-server/phpMyAdmin
Hope it helps
There are two ways to delete phpMyadmin
yum remove phpMyAdmin.noarch
remove phpMyAdmin
Or
rpm -qa |grep phpMyAdmin
rpm -e rpm -e phpMyAdmin-4.4.15.10-2.el7.noarch
Remove phpMyAdmin with rpm
I'm new to Yii Framework.
I have downloaded the framework and moved to the webroot(in linux), and execute the command "yiic webapp ../../testapplication".
But i got the error as "command not found".
Install YII framework in xampp for ubuntu
I have followed these steps. But I couldn't succeed.
Please help me on this.
You need to run
./yiic
to explicitly name the executable (because yiic alone is not in you $PATH).
Syntax is:
$ /path/to/yiic webapp /path/to/webapp
I suggest you to do this:
$ cd /var/www
$ mkdir yourapp
$ cd yourapp
$ git clone git#github.com:yiisoft/yii
$ ./yii/framework/yiic webapp .
When a new version of yii is released ...
$ cd /var/www/yourapp/yii
$ git pull origin master
Very easy and fast.
At First Go to the xampp php.exe folder in cmd and after that run this command
php yii/framework/yiic.php webapp myfirstsite
It's only for windows xampp or wamp any server
I just installed Glassfish on my Ubuntu server (No GUI) using THIS tutorial. Everything went well. But now when I'm trying to play with ASADMIN tool it's telling me this:
The program 'asadmin' is currently not
installed. You can install it by
typing: apt-get install glassfishv2
-bash: asadmin: command not found
So, in order to run asadmin tool always need to type:
/opt/glassfish/bin/asadmin start-domain domain1
or go to that folder and run it from there.
So, the question is, what file do i need to edit in order to set this path in to the environment.
You can add the following to your ~/.bashrc file to add all the binaries in /opt/glassfish/bin to your $PATH
export PATH=$PATH:/opt/glassfish/bin
~ expands to /home/your-user - just to be clear.
Just type to CLI:
export PATH=/opt/glassfish/bin/:$PATH