[PLUGIN] CustomBuild 2.0

if using nginx-apache (proxy) if I set it to php-fpm can apache then be set to mpm-event?
I've, overall, had better luck using event (albeit on cpanel) but right now am gun shy to just try it and see :)
iirc fdgi and php-fpm were supposed to be good but I'd like to double check.
 
I dont see all the green and red buttons lol, where you select your version of php, or Apache, things like that
used to be the 1st page you came to when entering CB
remember talking about changing them from the light blue/dark blue to green and red to show what was current or what was off.
dont have a screen shot lol, no screen shot to capture :)
maybe you've done away with that page?
Where do you miss these buttons? May I get a screenshot? :)
 
I dont see all the green and red buttons lol, where you select your version of php, or Apache, things like that
used to be the 1st page you came to when entering CB
remember talking about changing them from the light blue/dark blue to green and red to show what was current or what was off.
dont have a screen shot lol, no screen shot to capture :)
maybe you've done away with that page?

Does that still happen with 1.0.12?
 
if using nginx-apache (proxy) if I set it to php-fpm can apache then be set to mpm-event?
I've, overall, had better luck using event (albeit on cpanel) but right now am gun shy to just try it and see :)
iirc fdgi and php-fpm were supposed to be good but I'd like to double check.

Yes, if you use php-fpm/fastcgi/suphp/lsphp you could use event MPM then. And "auto" setting of it would enable it automatically with thread-safe version of PHP :)
 
?

Hi,

I've just installed the plugin, but there is something wrong, the screenshot is attached...
:(
Screenshot - 07152014 - 08:29:18 AM.png
Any ideas?

Thanks.
 
Yes, if you use php-fpm/fastcgi/suphp/lsphp you could use event MPM then. And "auto" setting of it would enable it automatically with thread-safe version of PHP :)

Thanks Martynas.
I was looking at it today and was wondering of you could change the choices from worker/event/auto to worker/event/prefork/auto.
worker (which is threaded) does work with mod_php, I have used it before on cpanel and no panel vps, and the ability to choose that would be nice. there are some apps that work well with mod_php and worker and work better than with prefork.
 
Thanks Martynas.
I was looking at it today and was wondering of you could change the choices from worker/event/auto to worker/event/prefork/auto.
worker (which is threaded) does work with mod_php, I have used it before on cpanel and no panel vps, and the ability to choose that would be nice. there are some apps that work well with mod_php and worker and work better than with prefork.

mod_php is not thread-safe, so you could experience serious problems with mod_php + worker MPM. That is not a recommended choice. Event MPM is based on a Worker MPM, so they're a bit similar. You may have any other mode of PHP, except mod_php, with Event MPM enabled. Thank you.
 
mod_php is not thread-safe, so you could experience serious problems with mod_php + worker MPM. That is not a recommended choice. Event MPM is based on a Worker MPM, so they're a bit similar. You may have any other mode of PHP, except mod_php, with Event MPM enabled. Thank you.
http://httpd.apache.org/docs/current/mpm.html
1. Does the system support threads?
2. Does the system support thread-safe polling (Specifically, the kqueue and epoll functions)?
If the answer to both questions is 'yes', the default MPM is event.
If The answer to #1 is 'yes', but the answer to #2 is 'no', the default will be worker.
I have used this setup for almost a year with no issues, clipbucket sites work well with worker but NOT event and were faster than prefork. still, the CHOICE to use it is what I would like to see.
 
Thread-safe polling need for event MPM doesn't mean that mod_php would be thread-safe with mod_php. It's sounds that you had PHP compiled with "--enable-maintainer-zts" flag and a pthreads extension in PHP (pecl install pthreads) to support threading in PHP code (extension=pthreads.so in php.ini). ZTS version of PHP should do the trick with Event MPM too, but that sounds more like workarounding the problem.
 
may have found a bug, with apache using event and php-fpm when you change to apache-nginx (still keeping event mpm) the nginx conf file is not getting the virtual directories added. did not see this mentioned anywwheres.
using apache with prefork/auto and mod_php the nginx build goes fine.

here is the nginx.conf file generated after build using apache event mpm with php-fpm.
tried to hide in spoiler tag to shorten post but didn't seem to work
#user nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
listen 80;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root html;
index index.html index.htm;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass 127.0.0.1 (NOTE I REMOVED HTTP TO UNLINK)
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;

# location / {
# root html;
# index index.html index.htm;
# }
#}


# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;

# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;

# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;

# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;

# location / {
# root html;
# index index.html index.htm;
# }
#}

}
 
Thread-safe polling need for event MPM doesn't mean that mod_php would be thread-safe with mod_php. It's sounds that you had PHP compiled with "--enable-maintainer-zts" flag and a pthreads extension in PHP (pecl install pthreads) to support threading in PHP code (extension=pthreads.so in php.ini). ZTS version of PHP should do the trick with Event MPM too, but that sounds more like workarounding the problem.
I'm not going to pretend to know the whole specifics, just going off what I have used. with that older software/script worker did better than prefork and event was unusable.
why not allow the option? those who use DA to host people would not use it but people like me who use it for their own 10-11 domains could.
 
Please post the output of:
Code:
/usr/local/directadmin/directadmin o

Here is the result:
Code:
[root@lab directadmin]# ./directadmin o
Compiled on 'CentOS 5.0'
Compile time: Jun 25 2013 at 23:28:41
Compiled with IPv6
 
I'd suggest you emailing support [@] directadmin.com. Something might be wrong with your license. When you get your DA updated to 1.45.4, plugin should start to work.
 
Back
Top