I need to connect to both mssql and MySQL using php. so I tried to enable extension php-mssql using yum install my-mssql, when I have PHP 5 support, it says php-api missing. And get suggested to using php5.3 instead, after I switch, it get error php54-common is conflicted with php-common.
Related
It's been a while but I am running into an issue and could not find any answers elsewhere.
I pay for a dedicated server that is running Easy Apache 4 with Centos 7. I have root access to everything so no limitations.
I am in the process of deploying a Python/Django app on the server for a client. When trying to install mod_wsgi it errors out stating it needs the package httpd-mmn. I can install the httpd module using yum but I am worried about conflicts since the server is using Easy Apache 4.
Is this a relevant concern? I have a bunch of php sites on my server and I am afraid I'll break it.
For the record, I do not want to use the experimental easy apache mod wsgi as it's, well...experimental and a use at your own risk situation.
Any thoughts or recommendations would be great.
mod_wsgi is often built for a specific version of apache.
You are getting errors because your apache was installed by easyapache4.
I suggest you go with the experimental version for 2 reasons
You really don't have much of an option, unless you want to build everything yourself from ground up.
the ea-apache24-mod_wsgi has been available for install for at least 6 years now and I have searched thru the web and none has complained of errors or breaking things
If you (or anyone else) choose to go the experimental route, the process is
yum install ea4-experimental
yum install ea-apache24-mod_wsgi
Then modify the virtual host configs by creating directives and including these files
/etc/apache2/conf.d/userdata/std/2_4/{user}/{domain}/{includename}.conf
/etc/apache2/conf.d/userdata/std/2_4/{user}/{domain}/{includename}.conf (for SSL)
When done run this 3 commands to update the configs
/scripts/verify_vhost_includes
/scripts/ensure_vhost_includes --user={user}
/scripts/rebuildhttpdconf
Make sure to backup your httpd config before this step above
Finally restart your httpd and you should be good
I'm trying to set up Let's Encrypt certificates on an ec2 instance for the first time and have run into an error which I cannot find a resolution for online. I'm using the official certbox nginx guide, and am at the step where I need to install the route53 dns plugin. However, when I run sudo snap install certbot-dns-route53, I get the following error:
error: cannot perform the following tasks:
Run hook prepare-plug-plugin of snap "certbot" (run hook "prepare-plug-plugin": error: error running
snapctl: unknown command `unset'. Please specify one command of: get, restart, set, start or stop)
The only solution I can find online that mentions this issue says to update snap. But snap has already been updated. Anyone familiar enough with snap and certbot on amzn2 to know what I can do here?
A bit more information:
This is running on an ec2 instance running Amazon's Linux 2 AMI (amzn2)
Output for snap --version:
snap 2.36.3-0.amzn2
snapd 2.36.3-0.amzn2
series 16
amzn 2
kernel 4.14.214-160.339.amzn2.x86_64
I have tried to update the core using the commands in the guide, sudo snap install core; sudo snap refresh core and it outputs:
snap "core" has no updates available
I initially installed snap (since it wasn't available simply via yum) following the instructions found here. If you've done that and found this question, uninstall it.
Either switch your instance to a different distro or follow the install guide offered by Amazon here. If you're using nginx, you can simply replace the reference of python2-certbot-apache with python-certbot-nginx. I stopped following after certbot was installed.
I have installed 2 PHP version in my DirectAdmin environment: php5.5 (php1_release) and php7.1 (php2_release). Now I have one user set to php 7.1 with the PHP Versions Selector under Domain Setup. On the website in the browser it seems to work well, phpinfo tells me that php7.1 is running for this domain. But when I use composer from the command line it gives an error because it detects php5.5:
Any ideas how to solve this?
Try compiling with the full path of the php binary - "/usr/local/php70/bin/php70" - instead of just "php". Now command will be like that.
/usr/local/php70/bin/php70 composer.phar update
Important note : PHP binary Path will be different for each server.
I am trying to install Google Cloud SDK on a Linux machine without any Internet access.
I am following the instructions at: https://cloud.google.com/sdk/?hl=en
I downloaded the tar file on my local machine and transferred it to the Linux machine using scp. I then ran the install.sh file and got the following error:
[me#user google-cloud-sdk]$ ./install.sh
Welcome to the Google Cloud SDK!
To help improve the quality of this product, we collect anonymized data on how
the SDK is used. You may choose to opt out of this collection now (by choosing
'N' at the below prompt), or at any time in the future by running the following
command:
gcloud config set --scope=user disable_usage_reporting true
Do you want to help improve the Google Cloud SDK (Y/n)? n
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
/home/me/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py:661: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
exc_message = getattr(exc, 'message', None)
/home/me/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py:664: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
msg = u'({0}) {1}'.format(command_path_string, exc.message)
ERROR: (gcloud.components.update) Failed to fetch component listing from server. Check your network settings and try again.
I have a proxy server that I can use to access the internet from this Linux machine. I tried running install.sh as 'sh install.sh --proxy host:port' but obviously, there is no input parameter called proxy to install.sh.
How can I work around this problem?
Thanks in advance.
Exported my proxy details as "export https_proxy='...'" before running the install.sh file.
This worked for me.
Go to Advanced System settings and create a variable HTTPS_PROXY,
restart CMD.
echo %HTTPS_PROXY%
To make sure it has taken the changes into account.
Launch the install.bat
I'm receiving the below error at work (with a proxy) when running the Google Cloud SDK install script (gcloud.components.update) Unable to fetch /components-2.json
I've viewed this thread
Error while installing Google Cloud SDK in Cygwin : Unable to fetch https://dl.google.com/dl/cloudsdk/release/components-2.json
I've added in the proxy information and I can download the installer (if I don't set the proxy I can't access this).
curl /dl/cloudsdk/release/install_google_cloud_sdk.bash | bash
I can run curl https://dl.google.com/dl/cloudsdk/release/components-2.json
I'm running Python 2.7 and I'm on Windows XP. If its a proxy issue why can I download the files and access the page but can't run the login script?
I can download a local version of components-2.json I can also download all of the files that this file refers to.
Is there a config file I can edit to get it to look at the local versions of these files?
I can seems to find where the address /components-2.json is specified.
Cheers and thanks,
Rohan
PS sorry I couldn't include more than 2 links as I don't have a reputation, even though posting requirement mentions to show research.
As an alternative, please try the following:
Download google-cloud-sdk.zip or google-cloud-sdk.tar.gz
Unpack the archive
Run the ./google-cloud-sdk/install.sh script
This is described in small print on the Google Cloud SDK page, underneath the text box that suggests running the command you're likely using:
curl https://sdk.cloud.google.com | bash