Git Product home page Git Product logo

centminmod's Introduction

GitHub stars GitHub forks GitHub issues GitHub license

Centmin Mod

Centmin Mod can be installed via Unattended Command Line method below or via latest install instructions on Official Install Guide:

  1. Centmin Mod Unattended Command Line Install (highly recommended)
  2. Centmin Mod installed via Git (deprecated no longer supported)

After install bookmark and read the Getting Started Guide and check out the Centmin Mod Community forum at https://community.centminmod.com

Centmin Mod Unattended Command Line Install

Fastest method of install and allows fully unattended installation. Just type this command as root user in SSH on a fresh CentOS 7 server. Installation should take between 15-30 minutes on a fast server or up to 50-70 minutes on a slower server depending on server specs and your server's network connectivity and download speed.

As at May 8th, 2022, Centmin Mod versions are undergoing a transition version branch wise:

  1. Previous 123.08stable is now moving to 124.00stable. 124.00stable is essentially based on the well tested 123.09beta01 branch. All development and changes made in 123.09beta01 are now in 124.00stable.
  2. Previous 123.09beta01 code is now in 124.00stable
  3. A new 130.00beta01 branch has started and this is also based off of 123.09ebat01 branch but with additional development and code to eventually support EL8+ operating systems like CentOS 8, Alma Linux 8 and Rocky Linux 8. This branch will take over from 123.09beta01 as the development beta branch. EL8+ operating system support isn't fully complete as at May 8th, 2022. So installation on CentOS 7.x is recommended.

For latest 124.00stable install

default PHP 7.4.x installation

yum -y update; curl -O https://centminmod.com/installer.sh && chmod 0700 installer.sh && bash installer.sh

For latest 130.00beta01 install

PHP 7.4.x default beta installer.

yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh

PHP 8.1.x default beta installer.

yum -y update; curl -O https://centminmod.com/betainstaller81.sh && chmod 0700 betainstaller81.sh && bash betainstaller81.sh

PHP 8.0.x default beta installer.

yum -y update; curl -O https://centminmod.com/betainstaller80.sh && chmod 0700 betainstaller80.sh && bash betainstaller80.sh

PHP 7.4.x default beta installer.

yum -y update; curl -O https://centminmod.com/betainstaller74.sh && chmod 0700 betainstaller74.sh && bash betainstaller74.sh

PHP 7.3.x default beta installer. See PHP 7.3 release information and PHP 7.3 vs 7.2 vs 7.1 vs 7.0 benchmarks.

yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh

PHP 7.2.x default beta installer

yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh

PHP 7.1.x default beta installer

yum -y update; curl -O https://centminmod.com/betainstaller71.sh && chmod 0700 betainstaller71.sh && bash betainstaller71.sh

PHP 7.0.x default beta installer

yum -y update; curl -O https://centminmod.com/betainstaller7.sh && chmod 0700 betainstaller7.sh && bash betainstaller7.sh

default PHP 5.6 beta installer

yum -y update; curl -O https://centminmod.com/betainstaller56.sh && chmod 0700 betainstaller56.sh && bash betainstaller56.sh

You can also customise your installs via pre-populating the persistent config file, /etc/centminmod/custom_config.inc with overriding variables instead of directly editing centmin.sh file BEFORE running the the betainstaller.sh. See examples discussed on the forums here.

Contributing

Below are guidelines for contributing code wise.

Bug Reports

Pull Requests

Suggestions

centminmod's People

Contributors

alexgoussev avatar centminmod avatar draft1 avatar yvesb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

centminmod's Issues

Can you change your git settings to have git 'fast forward' when you merge?

I always review the commit log before updating, and it's a bit inconvenient that the centminmod commit log is filled with all these unnecessary 'merged branch' commit messages.

For some git workflows that would make sense, but I don't think that's true here because the only work you're doing is on the branch and then merging into master.

By default, Git should fast-forward these merges so you don't get the additional 'merged' commit message, so you must have either globally changed this default or be using --no-ff in your merge commits.

Would you mind stopping this just so there's a cleaner commit log?

Here's more background on what's happening:
http://stackoverflow.com/questions/2500296/can-i-make-fast-forwarding-be-off-by-default-in-git
http://stackoverflow.com/questions/2850369/why-does-git-fast-forward-merges-by-default

I know your git foo isn't strong, but you really ought to spend a few hours reading this (totally free): http://git-scm.com/book/en/v2 It helped me tremendously on having a better understanding of how git works. I don't always remember the commands exactly, but now I understand generally what I'm trying to accomplish, so it's much easier to google for the specific syntax.

Nginx GeoIP and Passenger detection on Centmin Mod Nginx upgrades

With current .07 beta 21 release, if you have enabled in centmin.sh either option below and compiled Nginx with GeoIP and Phusion Passenger support originally and then upgrade to a new Centmin Mod release the new updated centmin.sh would not have either of the below 2 options enabled. You'd end up compiling Nginx without GeoIP and Phusion Passenger support and potentially break your site(s) functionality if it relies on Nginx GeoIP and/or Phusion Passenger support

NGINX_GEOIP=y 
NGINX_PASSENGER='y'

Going to have to add a detection routine in for Nginx upgrade menu option 4 which will check to see if existing Nginx web server has Nginx GeoIP and/or Phusion Passenger module for Nginx compiled in.

Ran into this bug on the Centmin Mod Community forum server https://community.centminmod.com as I had NGINX_GEOIP=y set.

Current forum Nginx configuration is

nginx -V
nginx version: nginx/1.7.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) 
TLS SNI support enabled
configure arguments: --with-cc-opt='-I/svr-setup/staticlibssl/include -I/usr/include' --with-ld-opt='-L/svr-setup/staticlibssl/lib -Wl,-rpath -lssl -lcrypto -ldl -lz' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module --with-http_geoip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.1 --add-module=../headers-more-nginx-module-0.25 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --with-http_dav_module --add-module=../nginx-dav-ext-module-0.0.3 --with-openssl=../openssl-1.0.1h --with-libatomic --with-pcre=../pcre-8.35 --with-pcre-jit --with-http_spdy_module --add-module=../ngx_pagespeed-release-1.8.31.3-beta

Unattended installer fails to create Memcached status page

I am using this unattended installer on CentOS 7:

https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh

Seems to work great overall, although I did notice it had a hard time with the filename of the Memcached status page it attempted to generate, so I thought I'd let you know. Looks like it could be as simple as a space where it doesn't belong. :) The installer's output is below:

*  Setup memcached_*.php admin page ...
*************************************************
cp: target โ€˜3472651763.phpโ€™ is not a directory
chmod: cannot access โ€˜/usr/local/nginx/html/memcache_โ€™: No such file or directory
chmod: cannot access โ€˜3472651763.phpโ€™: No such file or directory
sed: can't read /usr/local/nginx/html/memcache_: No such file or directory
sed: can't read 3472651763.php: No such file or directory
sed: can't read /usr/local/nginx/html/memcache_: No such file or directory
sed: can't read 3472651763.php: No such file or directory
sed: can't read /usr/local/nginx/html/memcache_: No such file or directory
sed: can't read 3472651763.php: No such file or directory
sed: can't read /usr/local/nginx/html/memcache_: No such file or directory
sed: can't read 3472651763.php: No such file or directory

Setup Memcached Server Admin Login Details for /usr/local/nginx/html/memcache_ 3472651763.php
grep: /usr/local/nginx/html/memcache_: No such file or directory
grep: 3472651763.php: No such file or directory
current memcached username:
grep: /usr/local/nginx/html/memcache_: No such file or directory
grep: 3472651763.php: No such file or directory
current memcached password:
sed: can't read /usr/local/nginx/html/memcache_: No such file or directory
sed: can't read 3472651763.php: No such file or directory
sed: can't read /usr/local/nginx/html/memcache_: No such file or directory
sed: can't read 3472651763.php: No such file or directory
*************************************************
Memcached Server Admin Login: /usr/local/nginx/html/memcache_ 3472651763.php
new memcached username: [redacted]
new memcached password: [redacted]
*************************************************
*************************************************
* memcache_ 3472651763.php admin page installed
*************************************************```

Converting bash script into Ansible playbook

Hi,

Have you considered converting the whole bash script into an Ansible playbook?
There are good tools outhere (Chef, Ansible, Puppet) that can bring server installation/configuration automation further.

I see various benefits:

  • No need to do anyhting on the remote server, everything can be handled from your local computer
  • Script be run at once and configure multiple servers
  • Less and more structured code

From what I've read, Ansible seems the best candidate as it does not require installing extra software on the remote machine.

postgresql php extension

Hello,

I can not install the corect php70w-pgsql. The only one I get is pdo_pgsql.

Can you tell me what I have to do to get the php7 working with pgsql

Best

wget url not working

First--wasn't sure if I should report bugs here or on the forum. I'm used to working with open source projects through github issues, but in this case I think your forum is better... but you might consider disabling issues here on github so folks know to report issues in the forum? All that said, I tried to report in the forum, but said I'd have to do an intro and I'll do that later, no time for that now...

Working through the readme: https://github.com/centminmod/centminmod/tree/123.08centos7beta01

Under step 2, the line wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip isn't working for me.

here's my output--looks like github might have changed the archive url structure? they're using a 302 to push me from /archive/ to /zip/:

root@beta ~]# wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
--2014-12-02 17:15:23-- https://github.com/centminmod/centminmod/archive/123.08centos7bet01.zip
Resolving github.com (github.com)... 192.30.252.130
Connecting to github.com (github.com)|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/centminmod/centminmod/zip/123.08centos7bet01 [following]
--2014-12-02 17:15:23-- https://codeload.github.com/centminmod/centminmod/zip/123.08centos7bet01
Resolving codeload.github.com (codeload.github.com)... 192.30.252.147
Connecting to codeload.github.com (codeload.github.com)|192.30.252.147|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-12-02 17:15:23 ERROR 404: Not Found.

Weirdly, I was able to get it to work at one point using my browser and the original URL--it downloaded a zip file that I can just scp into the box so I'm good to go--but all further tests didn't work... so maybe Github is in the midst of a migration and having issues...

support for lets encrypt

Hi,
its quite a nice project and I was wondering if you were planning to add lets encrypt auto-install features
Lets encrypt lets you get a free ssl cert by doing a webcheck verification

Nginx not responding to IPv4 when Listen directive updated to support IPv6

I just tried editing my server block from listen 80; to listen [::]:80; and after saving and then restarting nginx, I went from a working Xenforo site to a Nginx 404 page.

I just upgraded to Nginx 1.7.9 (I'm using the beta08). The server block is the default centminmod nginx vhost one:

    server {
    listen                  80;
    listen                  443 ssl;

    server_name             demodomain.com;

    # ngx_pagespeed & ngx_pagespeed handler

I reverted back to the old ip4 listen block, restarted nginx, and everything works properly.

My ISP (comcast) doesn't offer IP6 for my internet connection right now, so I can't check to see if the domain is responding correctly on IP6.

centmin.sh can't update memcached; script fails at line 663

After running option 23, then 2 (to update the current version), command line invocation of ./centmin.sh fails with the following error message:

patch unexpectedly ends in middle of line
1 out of 1 hunk FAILED -- saving rejects to file memcached.rej
./centmin.sh: line 663: inc/custom_config.inc: No such file or directory

What appears to be going on:

  • Finding the file inc/custom_config.inc using the relative path fails because the current path has the unexpected value of /etc/init.d
  • Related to a failure in lines 207-222 of inc/cpcheck.inc, where the current directory is changed to /etc/init.d

memcached.rej looks like:

--- memcached 2015-11-24 00:22:37.512363496 +0000
+++ memcached.new 2015-11-23 23:53:57.166708853 +0000
@@ -26,6 +26,13 @@
 PIDA='/var/run/memcached/memcached1.pid'
 PIDB='/var/run/memcached/memcached2.pid'

+# 1.4.25 new slab options
+# https://github.com/memcached/memcached/wiki/ReleaseNotes1425
+MEM_CURVER=$(/usr/local/bin/memcached -V | awk '{print $2}' | head -n1 | sed -e 's|\.|00|g')
+if [[ "$MEM_CURVER" -ge '10040025' ]]; then
+        OPTIONS='-o slab_reassign,slab_automove,lru_crawler,lru_maintainer,maxconns_fast,hash_algorithm=murmur3'
+fi
+
 if [ -f /proc/user_beancounters ]; then
 ulimit -s 256

Nginx staticfiles.conf interferes with rewrites of *.html urls

I recently migrated a forum from Simple Machines to Xenforo and needed to rewrite the SMF urls to Xenforo urls.

Old url: domain.com/forum/index.php/topic,101126.msg38.html
Rewritten url: domain.com/forum/index.php?posts/38

Here's my Nginx rewrite rule:
rewrite /forum/index\.php/topic,[0-9]+\.\bmsg([0-9]+)\.html /forum/index.php?posts/$1 redirect;

However, when I apply this to my Centmin Vhost file, it doesn't work. After much trial and error, I realized
the issue is in the global file include /usr/local/nginx/conf/staticfiles.conf;

The rewrite works perfectly if I do either of the following:
a) strip .html from both the old url and the rewrite regex.
b) comment out this include.

Option A is impossible since I've got thousands of inbound links that include the .html
After looking at what's in staticfiles.conf, I'd prefer to avoid option B because there's a lot of useful stuff in there...

Is there any way this global file can be tweaked to allow rewriting links in the vhost config files that point to .html files?

I suspect I could just edit staticfiles.conf and put the rewrite in there, but I'd prefer to avoid that to allow my vhost files to stay localized and not touch global centminmod configs so that it's easy to upgrade later...

I'm on Centminmod .008 beta because I wanted to use Centos 7.

installer.sh - network resilient issue

The recommended unattended install process is not resilient to network errors.

curl -O https://centminmod.com/installer.sh && chmod 0700 installer.sh && bash installer.sh

The commands after the curl will execute even if the network connection is interrupted. This will result in the arbitrary scripting being executed, which can result in expected and unknowable behaviour.

The recommended workaround is to ensure all code in a function definition, and as the very last statement execute the function wrapping the code.

New .07 beta 18 branch

Added new menu option 21 to centmin.sh

https://github.com/centminmod/centminmod/tree/123.07beta18

--------------------------------------------------------
Centmin Mod 1.2.3-eva2000.07 - http://centminmod.com
--------------------------------------------------------
                   Centmin Mod Menu                   
--------------------------------------------------------
1).  Centmin Install
2).  Add Nginx vhost domain
3).  NSD setup domain name DNS
4).  Nginx Upgrade / Downgrade
5).  PHP Upgrade / Downgrade
6).  XCache Re-install
7).  APC Cache Re-install
8).  XCache Install
9).  APC Cache Install
10). Memcached Server Re-install
11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
12). Zend OpCache Install/Re-install
13). Install ioping.sh vbtechsupport.com/1239/
14). SELinux disable
15). Install/Re-install ImageMagick PHP Extension
16). Change SSHD Port Number
17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
18). Suhosin PHP Extension install
19). Install FFMPEG and FFMPEG PHP Extension
20). NSD Re-install
21). Update - Nginx + PHP-FPM + Siege
22). Exit
--------------------------------------------------------
Enter option [ 1 - 22 ] 22
--------------------------------------------------------

Disable CentALT repo

CentALT repo is missing in action and disappeared overnight !

b82e11e

also disabled it for existing installs on first centmin.sh run from .07 beta21 onwards

e8e8f41

New .07 beta 19 branch - ngx_pagespeed 1.8.31.2 beta changes

Nginx ngx_pagespeed 1.8.31.2 beta released - lots of changes https://developers.google.com/speed/pagespeed/module/release_notes.

Seems ngx_pagespeed 1.8.31.2 broke my own structure for Centmin Mod Nginx and how I integrated it especially for the new ngx_pagespeed admin page https://developers.google.com/speed/pagespeed/module/admin

For Centmin Mod next .07 beta (19th beta) https://github.com/centminmod/centminmod/commits/123.07beta19. The code changes specific for ngx_pagespeed new admin page da5f0b1

Basically, after nginx upgrade via menu option 4 with .07 beta 19, you will get a new include file in nginx.conf at http {} context

http {
include /usr/local/nginx/conf/pagespeedadmin.conf;

which defines the new admin and pagespeeed paths added in 1.8.31.2 beta

#######################################################
#1.8.31.2 beta required paths
# https://developers.google.com/speed/pagespeed/module/admin
######################################
pagespeed FileCachePath /var/ngx_pagespeed_cache;
pagespeed StatisticsPath /ngx_pagespeed_statistics;
pagespeed GlobalStatisticsPath /ngx_pagespeed_global_statistics;
pagespeed MessagesPath /ngx_pagespeed_message;
pagespeed ConsolePath /pagespeed_console;
pagespeed AdminPath /pagespeed_admin;
pagespeed GlobalAdminPath /pagespeed_global_admin;

Also /usr/local/nginx/conf/pagespeed.conf looses one setting and moves FileCachePath to the new /usr/local/nginx/conf/pagespeedadmin.conf include file in nginx.conf


related commits

d8cbc63

5f11994

6107de6

da5f0b1

33e6c3c

4ca2c72


For .07 beta 19 to update ngx_pagespeed 1.8.31.2 beta and relevant settings do the following:

1). Edit centmin.sh (from .07 beta 19) and change variables to 1.8.31.2

NGXPGSPEED_VER='1.8.31.2-beta'
NGINX_PAGESPEEDPSOL_VER='1.8.31.2'

2). Then run centmin.sh (from .07 beta 19) menu option #4 to upgrade/recompile Nginx

Troubleshooting 502 Bad Gateway

Hi again. :)

So far twice during my testing, I've encountered a 502 Bad Gateway page while browsing a couple different websites on one of my CentOS 7 VMs running Centmin Mod. Both times, the page would load after refreshing.

It's been difficult for me to recreate this. I can't seem to find anything relevant to it in Nginx's error.log either.

I'm guessing this has something to do with PHP-FPM (which I have running as a socket, by the way) or Memcached. Where should I be looking in order to troubleshoot this? Thanks!

Postfix "postdrop: warning: unable to look up public/pickup: No such file or directory"

With the latest .07 beta 21, initial install right now the default MTA is via postfix while previously it was left to whatever CentOS system had installed by default. But if the pre Centmin Mod .07 beta 21 install, the CentOS system had sendmail installed and the initial install switches from sendmail to postfix, mail from the system might result in failed mail delivery and/or the error:

"postdrop: warning: unable to look up public/pickup: No such file or directory"

Committed a fix for this 31e9131

Added checks to pagespeeduptask function for when NGINX_PAGESPEED=n in centmin.sh

Addresses 2 issues when Nginx is recompiled with ngx_pagespeed disabled in centmin.sh NGINX_PAGESPEED=n where

  1. the nginx.conf include file for /usr/local/nginx/conf/pagespeedadmin.conf isn't commented out automatically
  2. there's no automatic commenting out of those 3 pagespeed include lines in ALL Nginx vhosts which had previously been uncommented (pagespeed enabled) located at /usr/local/nginx/conf/conf.d/

Originally discussed at http://community.centminmod.com/threads/nginx-pagespeed-troubleshooting-steps.32/page-2#post-323

44e334c

PCRE install fails (url needs updating)

CentOS 6.5 x86 Minimal
centmin-v1.2.3-eva2000.07

install fails when downloading pcre-8.37.tar.gz because the file does not exist (404 from sourceforge)

`Download pcre-8.37.tar.gz ...
--2015-07-06 10:22:09-- http://downloads.sourceforge.net/project/pcre/pcre/8.37/pcre-8.37.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-07-06 10:22:09 ERROR 404: Not Found.

Error: pcre-8.37.tar.gz download failed.
check Centmin Mod log for details at /root/centminlogs/
Aborting script...`

Disabling open_basedir on domain level doesn't work

I've spend many hours trying to figure out strange behavior when setting op a Laravel domain. Laravel requires access outside the site's root, so I disabled open_basedir by copying /usr/local/nginx/conf/php.conf to /usr/local/nginx/conf/php_l5.conf, commenting out fastcgi_param PHP_ADMIN_VALUE open_basedir and including /usr/local/nginx/conf/php_l5.conf instead of /usr/local/nginx/conf/php.conf in /usr/local/nginx/conf/conf.d/example.com.conf.

At first it seems to work, but I'm getting random 500s every few pages loaded. php-fpm log shows PHP Warning: Unknown: open_basedir restriction in effect. The allowed path(s) mentioned in the log are from other domains that have open_basedir enabled through /usr/local/nginx/conf/php.conf.

tail -1000 /var/log/php-fpm/www-php.error.log |grep open_base

[18-Apr-2016 04:09:57 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/lounge-fashion.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 04:09:57 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/lounge-fashion.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 04:09:58 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/lounge-fashion.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 04:09:58 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/lounge-fashion.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 04:10:14 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/coverswim.be/public/:/usr/local/lib/php/:/tmp/)
in Unknown on line 0
[18-Apr-2016 04:15:01 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/ha.nnes.be/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 04:15:03 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/ha.nnes.be/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 04:34:08 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/connexeon.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 05:12:07 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/connexeon.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
[18-Apr-2016 05:12:08 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/ninja.nextgen.finance/ininja/public/index.php) is not within the allowed path(s): (/home/nginx/domains/connexeon.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0

Looks alot like this: https://forum.nginx.org/read.php?3,234856

To work around this, I needed to remove fastcgi_param PHP_ADMIN_VALUE open_basedir=..... from all location level references (/usr/local/nginx/conf/php-wpsc.conf and `/usr/local/nginx/conf/php.conf). Only then it was really always disabled.

Regards,
Hannes

wordpress vhost wp cli issue

when I try and install wordpress vhost it prompts me to upgrade wp cli i get this error.

You have version 0.19.0. Would you like to update to 0.19.2? [y/n] y
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.19.2/wp-cli-0.19.2.phar...
Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress install exists under.

If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.

If you'd like to continue as root, please run this again, adding this flag:  --allow-root

If you'd like to run it as the user that this site is under, you can run the following to become the respective user:

    sudo -u USER -i -- wp <command>


PHP Warning:  max(): Array must contain at least one element in phar:///usr/bin/wp/php/WP_CLI/Loggers/Regular.php on line 87




Error: The downloaded PHAR is broken, try running wp cli self-update again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.