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
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'm trying to install odoo 11 in fedora 32 but I get these errors:
Problema: conflicting requests
nothing provides pychart needed by odoo-11.0.post20191021-1.noarch
nothing provides pyparsing needed by odoo-11.0.post20191021-1.noarch
nothing provides libxslt-python needed by odoo-11.0.post20191021-1.noarch
The steps I've followed are:
Install postgresql & intiate the service
$ sudo yum localinstall https://nightly.odoo.com/11.0/nightly/rpm/odoo_11.0.20191021.noarch.rpm
It seems there are python dependencies that can't be installed but I don't know how can I install them.
Do you have any idea how can I fix this problem? Many thanks!
If the installation packages is not working for you, you can always run Odoo server from the source.
Create a virtual environment for your Odoo app, let's call it venv11.
Get Odoo source code:
git clone https://github.com/odoo/odoo.git --depth 1 -b 11.0
Activate virtual environment. Install Python3 packages using pip.
pip install -r odoo/requirements.txt
Make sure you have installed the dev libraries needed for some of the pip packages that needs to be compiled, you will face xxxx.h not found error, you have search for that library and install using your distro package manager.
After your pip package installation is complete you can generate config file for your Odoo server using following command
python odoo/odoo-bin -c odoo.conf --save --stop-after-init
Edit the config file to add some important configuration, for example, db_user, db_password, http_port.
Now that you have added DB connection details, your Odoo application can now connect with your Postgresql Database and you can start using Odoo application by creating new database. If you don't have Postgresql information, you can just switch to postgres user and create new user with super user access.
sudo su - postgres
psql
create user `username` with superuser;
alter user `username` with encrypted password 'password';
and add those information to the config file. Now you can run Odoo server using
python odoo/odoo-bin -c odoo.conf
Head back to browser, browse 127.0.0.1:8069 8069 is the default port but you can change it from the config file. The database creation web interface will appear and you can start using Odoo application.
** Note: run python commands in virtual environment activated as that will isolate pip packages.
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.
I'm using Webuzo on my first unmanaged VPS (CentOS 6.4,OpenVZ). I tried to install Mod_Security following this guide. I installed Modsecurity-apache_2.6.6 but there's a problem in Step3 that prevents me from installing OWASP Mod_Security Core Rule Set
wget http://www.modsecurity.org/download/modsecurity-apache_2.6.6.tar.gz
The Download address has been removed. So I found another guide for the rule set but I can't get this command to work
git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git
It returns "-bash: git: command not found"
What command should I use to get OWASP CRS?
Also, I suspect the mod_security installation is incomplete since httpd server is unable to restart after installing modsecurity. Here's the configuration error:
[root#xx ~]# httpd -t
Syntax error on line 7 of /etc/httpd/conf.d/modsecurity.conf:
Invalid command 'SecRuleEngine', perhaps misspelled or defined by a module not included in the server configuration
Should I uninstall Mod_Secuirty first since everything seems to have become a mess now?
Any help is appreciated.
The apache binary in case of Webuzo is located at /usr/local/apps/apache and the modules are located at /usr/local/apps/apache/modules/lib.
Also the apache configurations in case of Webuzo are located at /usr/local/apps/apache/etc/ and /usr/local/apps/apache/etc/conf.d/
It seems you are trying to compile mod_security at an inappropriate location.
As you are having error with modsecurity.conf, I wonder whether you have followed the step
Step 4: Configuring Mod_Security
In the guide you have followed.
"-bash: git: command not found"
This error can be resolved by installing the package that includes git. try
yum install git-core -y
Both guide1 and guide2 are good to install mod_sec and follow any one. :)
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