Trying to setup PHP site (friendica) with nginx on localhost

Hi, just new here :-)
Started to use Arch a couple of month ago and sofar everything went fine thanks to the great documentation!
Now I tried to setup friendica on my computer for testing some modifications but I just fail on installing the required modules :-(
I already installed:
php
php-fpm
php-gd
php-cgi
php-mcrypt
mariadb
nginx
phpmyadmin
But I still get the following errors:
GD graphics PHP module (required)
Error: GD graphics PHP module with JPEG support required but not installed.
OpenSSL PHP module (required)
Error: openssl PHP module required but not installed.
mysqli PHP module (required)
Error: mysqli PHP module required but not installed.
Generate encryption keys (required)
Error: the "openssl_pkey_new" function on this system is not able to generate encryption keys
If running under Windows, please see "http://www.php.net/manual/en/openssl.installation.php".
Command line PHP
Could not find a command line version of PHP in the web server PATH.
If you don't have a command line version of PHP installed on server, you will not be able to run background polling via cron. See 'Activating scheduled tasks'
PHP executable path Enter full path to php executable. You can leave this blank to continue the installation.
Url rewrite is working (required)
Url rewrite in .htaccess is not working. Check your server configuration.
My nginx.conf looks like this:
#user http;
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;
keepalive_timeout 15;
gzip on;
gzip_comp_level 1;
server {
listen 80;
server_name localhost;
location ~ \.php {
root /srv/http/project;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
location / {
root /srv/http/project;
index index.php;
Can someone help me?

Thanks for the quick answer!
progandy wrote:Did you enable all necessary modules in your php.ini?
I had a look at /etc/php/php.ini but I can't find things (with my knwoledge) that seem to be important....
progandy wrote:Then you'll have to create the rules in the .htaccess in the format nginx understands.
Haven't checked that yet...
progandy wrote:https://github.com/friendica/friendica/ … tall-Guide
This is quite complicated. Seems like I'd need to study  to understand it:-(
progandy wrote:http://jcsesecuneta.com/tome/labox/sett … -on-nginx/
This one seemed clear I changed my nginx.xonf according to it:
server {
listen 80;
server_name localhost;
root /srv/http/project;
access_log off; # If you are using 'Analytics' type software for tracking, keep this 'off'
log_not_found on; # Turn on if you want to track "not found" errors
error_log /srv/http/project/logs/error.log info; # valid values: debug, info, notice, warn, error, crit
#rewrite_log on; # Uncomment if you want to debug your rewrites (then change 'crit' above to 'notice')
# block stuff early
# Do not log favicon.ico and robots.txt stuff
location ~* /(favicon\.ico|robots\.txt) {
allow all;
access_log off;
log_not_found off;
# Return error 444 for these files
location ~* ^.+\.(bzr|git|log)$ {
access_log off;
log_not_found off;
return 444;
# Deny public access to ~ (bak) files
location ~* ~$ {
access_log off;
log_not_found off;
return 444;
# Friendica #
location / {
try_files $uri $uri/ @friendicacleanurl;
location @friendicacleanurl {
rewrite ^/(.*) /index.php?q=$uri last;
break;
# Security: Friendica #
# block public access to .htaccess and .htconfig.php
location ~* /\.ht {
access_log off;
log_not_found off;
return 444;
# block public access to .tpl files located in /view/ folder
location ~* /view/(.*)\.tpl$ {
access_log off;
log_not_found off;
return 444;
# block public access to /util/ folder
location ^~ /util/ {
access_log off;
log_not_found off;
return 444;
# Deliver static files directly #
# images (Friendica)
location ~* /(addon|images|library|spec|util|view)/(.*)\.(bmp|cur|gif|ico|j2k|jp2|jpe|jpeg|jpf|jpg|jpm|jpx|mj2|mng|png|svg|svgz|thm|tif|tiff|webp)$ {
add_header Pragma "public";
add_header Cache-Control "public";
access_log off;
log_not_found off;
expires 28d;
# redirect 50x error pages #
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
internal;
# enable PHP #
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000; # Comment if you want to use sock instead of tcp
#fastcgi_pass unix:/var/run/php-fpm.sock; # Uncomment to use sock instead of tcp
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
but then nothing works anymore! When I try to restart nginx I get:
sudo systemctl status nginx.service
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
Active: active (running) (Result: exit-code) since Sa 2013-12-28 18:05:13 CET; 1 day 22h ago
Process: 15591 ExecReload=/usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on; -s reload (code=exited, status=1/FAILURE)
Process: 318 ExecStart=/usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 314 ExecStartPre=/usr/bin/nginx -t -q -g pid /run/nginx.pid; daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 320 (nginx)
CGroup: /system.slice/nginx.service
├─ 320 nginx: master process /usr/bin/nginx -g pid /run/nginx.pid; daemon on; master_process on;
└─10295 nginx: worker process
Dez 30 14:59:10 thinker nginx[10294]: 2013/12/30 14:59:10 [notice] 10294#0: signal process started
Dez 30 14:59:10 thinker systemd[1]: Reloaded A high performance web server and a reverse proxy server.
Dez 30 16:12:58 thinker systemd[1]: Reloading A high performance web server and a reverse proxy server.
Dez 30 16:12:58 thinker nginx[15396]: 2013/12/30 16:12:58 [emerg] 15396#0: "server" directive is not allowed here in /etc/nginx/nginx.conf:1
Dez 30 16:12:58 thinker systemd[1]: nginx.service: control process exited, code=exited status=1
Dez 30 16:12:58 thinker systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
Dez 30 16:15:33 thinker systemd[1]: Reloading A high performance web server and a reverse proxy server.
Dez 30 16:15:33 thinker nginx[15591]: 2013/12/30 16:15:33 [emerg] 15591#0: no "events" section in configuration
Dez 30 16:15:33 thinker systemd[1]: nginx.service: control process exited, code=exited status=1
Dez 30 16:15:33 thinker systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
What's wrong?

Similar Messages

  • Trying to setup FaceTime on iPad with aol email- it. Keeps saying verifying and it never sends an email

    Trying to setup FaceTime on iPad with aol email- it. Keeps saying verifying and it never sends an email- any suggestions?

    take a look at the link
    IOS troubleshooting facetime
    http://support.apple.com/kb/TS3367

  • Errors trying to compile PHP for use with MySQL

    I have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build:
    ./configure --prefix=/usr/local/php5 \
    --with-config-file-scan-dir=/usr/local/php5/php.d \
    --with-apxs2=/var/apps/apache/bin/apxs \
    --with-ldap \
    --with-mysql=/var/apps/mysql \
    --with-mysqli=/var/apps/mysql/bin/mysql_config \
    --with-xsl=/usr/local/include/libxslt \
    --with-ncurses \
    --enable-xslt \
    --with-xslt-sablot \
    --with-bz2=/usr \
    --with-gd \
    --with-gdbm=/usr/local/lib \
    --with-openssl \
    --with-imap=/usr/local/imap-2006e \
    --with-imap-ssl \
    --with-freetype-dir=/usr/local/include/freetype2/freetype/freetype.h \
    --with-expat-dir \
    --with-tiff-dir \
    --with-zlib \
    --with-jpeg-dir=/usr/local/include/jpeglib.h \
    --with-png-dir=/usr/include/libpng12/png.h \
    --with-mcrypt \
    --with-curl \
    --with-curlwrappers \
    --with-gettext \
    --disable-short-tags \
    --disable-debug \
    --enable-calendar \
    --enable-ctype \
    --enable-discard-path \
    --enable-exif \
    --enable-ftp \
    --enable-memory-limit \
    --enable-sysvem \
    --enable-sysvshm \
    --enable-gd-native-ttf \
    --enable-soap \
    --enable-shmop \
    --enable-sockets \
    --enable-xslt \
    --enable-mbstring \
    --with-sqlite=shared \
    --with-pdo-sqlite=shared \
    --with-pdo-mysql=shared,/var/apps/mysql \
    --enable-pdo=shared \
    --enable-bcmath \
    --with-oci8=sharedI have ld, make, and various tools linked to /usr/local/bin/<toolname>. The configure string completes with no issue and the make runs for about 30 minutes before it stops with the following warnings/errors:
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    <snip>....
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:209: undefined reference to `mysql_sqlstate'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:200: undefined reference to `mysql_set_server_option'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:212: undefined reference to `mysql_set_server_option'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_query':
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:251: undefined reference to `mysql_set_server_option'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_get_warnings':
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:298: undefined reference to `mysql_warning_count'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_stmt_get_warnings'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_warning.c:195: undefined reference to `mysql_warning_count'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1:
    There are many, many more "undefined reference" messages all mysql related.
    Here is my environment and crle output:
    LD_LIBRARY_PATH=/usr/local/ssl/lib:/usr/local/lib:/usr/local/BerkeleyDB.4.2/lib:/var/apps/mysql/lib/mysql
    PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/opt/sfw/bin:/usr/local/ssl/bin:/usr/ucb:/usr/ccs/bin:/opt/VRTS/bin:/etc:/opt/EMCpower/bin:/opt/EMCpower/bin/sparcv9:/etc/emc/bin:/opt/VRTSagents/ha/bin:/usr/local/include:/usr/include:/usr/platform/`uname -i`/sbin:/var/apps/mysql/bin:/var/apps/mysql/include/mysql:/opt/RICHPse/bin:/usr/local/php5/bin:/opt/sfw/sbin
    crle output
    Configuration file [version 4]: /var/ld/ld.config
    Default Library Path (ELF): /lib:/usr/lib:/usr/local/lib
    Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)
    Any ideas as to how I can get around the MySQL errors, etc. would be appreciated.

    Here are the requirments for 10.5.8:
    Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
    512MB of memory
    DVD drive for installation
    9GB of available disk space
    You have to purchase the upgrade from Apple for $129. You ned to call and order ti since it is not listed in their on-line store. You can also try eBay or Craig's List. 

  • Trying to setup a RADIUS connection with challenge response

    I need to test a RADIUS authentication and I've read note id 272804.1 and http://download.oracle.com/docs/cd/B19306_01/network.102/b14268/asoradus.htm.
    I'm trying to connect from DEVDB machine using sqlplus as client and connect to the local database server 10gr2 which then should act as RADIUS client to finally try to reach another machine with hostname DEVRADIUS.
    I'm using freeRadius which delegate authentication and authorization phases to a OTP service. Other middleware services are able to use this kind of RADIUS authentication with no problem: so this radius configuration is perfectly working for other clients.
    I've done some tests, but I'm not able to connect to DEVRADIUS from the Oracle database.
    Executing ./adapters and ./adapters ./oracle showed me the RADIUS authentication is available.
    When I try to connect using my external user I'm receiving the following error:
    ORA-12638: Credential retrieval failed
    A firewall exists between the database server and clients, but the port 1812 used to connect my database DEVDB to radius server DEVRADIUS has been open (UDP)
    My sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (RADIUS)
    SQLNET.RADIUS_PORT= (1812)
    SQLNET.RADIUS_AUTHENTICATION_PORT = 1812
    SQLNET.RADIUS_SECRET = (/u01/app/oracle/product/10.2.0/db_1/network/security/radius.key)
    SQLNET.RADIUS_AUTHENTICATION_TIMEOUT = 10
    SQLNET.RADIUS_AUTHENTICATION = DEVRADIUS
    SQLNET.RADIUS_CHALLENGE_RESPONSE = (ON)
    SQLNET.RADIUS_CHALLENGE_KEYWORD = (CHALLENGE)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)Into /u01/app/oracle/product/10.2.0/db_1/network/security/radius.key there's only the shared secret RADIUS key.
    Previously I've created this user:
    SQL> create user rad_user identified externally;
    SQL> grant connect, resource to rad_user;
    SQL> show parameter OS_A
    NAME TYPE VALUE
    os_authent_prefix string
    remote_os_authent boolean FALSE
    SQL> show parameter OS_RO
    NAME TYPE VALUE
    os_roles boolean FALSE
    remote_os_roles boolean FALSEThis is the error I receive:
    sqlplus /nolog;
    SQL> connect /@DEVDB;
    ERROR:
    ORA-12638: Credential retrieval failedOn RADIUS server started in debug mode, I don't see any attempt to connect.
    Any suggestions?

    loqs wrote:You built the package (using --asroot with makepkg is not a good idea ) but you did missed Install_the_package
    Also see Kernel_Modules so the module is loaded automatically at boot.
    Seriously? I spent that many hours searching for my several error messages, trying to solve them, not wanting to ask for help without putting too much of my own effort into it and when I finally decide to ask for help it is when I didn't get a super essential thing like makepkg doesn't install and is merely to create .pkg.tar.xz?? Oh gosh... (;
    Well, thank you! I guess I'll take my next change to use Google to find out how to use makepkg without --asroot. Yes, wl is loaded now and it's set as the kernel driver in use!
    Unfortunately, after ip link set wlp2s0 up and typing dmesg | grep wl I get:
    wl: module license 'Mixed/Proprietary' taints kernel.
    wlan0: Broadcom BCM4727 802.11 Hybrid Wireless Controller 6.30.223.248 (r487574)
    systemd-udevd[148]: renamed network interface wlan0 to wlp2s0
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    wl 0000:02:00.0: no hotplug settings from platform
    And therefor: No firmware loaded. Google doesn't give much about this message but hints to PCI or PCI-Express not working as it should. I found this and tried starting with pciehp.pciehp_force=1 and ordered a modprobe acpiphp but nothing changed.

  • Trying to get .php to matchup with button script

    As it stands now when you click the submit button, to submit
    the form info., I get the form error message.
    I know my server account is linux so php is fine, there must
    be something that is butting heads in the code. Please take a look
    a tell me what you think might help
    PHP FILE
    <?php
    $to_1 = "[email protected]";
    //$form_subject = "Contact Form Submission:";
    $name = $_POST['name_value'];
    $email = $_POST['email_value'];
    $subject = $_POST['subject_value'];
    $message = $_POST['message_value'];
    $msg = "Sender: $name\nE-Mail: $email\nMessage: $message";
    $headers = "From:[email protected]\n";
    $headers .= "Reply-To:[email protected]\n";
    //print error_reporting(E_ALL);
    //mail_status = mail($to_1,$subject,$msg,$headers);
    $mail_status = mail($to_1,$subject,$msg,$headers);
    if($mail_status){
    echo "returnVal=success";
    else{
    echo "returnVal=error";
    ?>
    AS3 Form & Button Code
    //initialize the form
    resetForm();
    initSubjects();
    form_name_value.tabIndex = 1;
    form_email_value.tabIndex = 2;
    subject_btn.tabIndex = 3;
    form_message_value.tabIndex = 4;
    submit_btn.tabIndex = 5;
    reset_btn.tabIndex = 6;
    //add listeners to buttons so that these buttons can perform
    some actions
    submit_btn.addEventListener(MouseEvent.ROLL_OVER,b tnOver);
    submit_btn.addEventListener(MouseEvent.ROLL_OUT,bt nOut);
    submit_btn.addEventListener(MouseEvent.CLICK,btnCl ick);
    reset_btn.addEventListener(MouseEvent.ROLL_OVER,bt nOver);
    reset_btn.addEventListener(MouseEvent.ROLL_OUT,btn Out);
    reset_btn.addEventListener(MouseEvent.CLICK,btnCli ck);
    subject_btn.addEventListener(MouseEvent.ROLL_OVER, btnOver);
    subject_btn.addEventListener(MouseEvent.ROLL_OUT,b tnOut);
    subject_btn.addEventListener(MouseEvent.CLICK,btnC lick);
    submit_btn.label.mouseEnabled = false;
    reset_btn.label.mouseEnabled = false;
    submit_btn.buttonMode = true;
    reset_btn.buttonMode = true;
    subject_btn.buttonMode = true;
    function btnOver(event:MouseEvent):void{
    event.currentTarget.gotoAndStop("over");
    /*switch( event.currentTarget ){
    case submit_btn:
    submit_btn.gotoAndStop("over");
    break;
    case reset_btn:
    reset_btn.gotoAndStop("over");
    break;
    case subject_btn:
    subject_btn.gotoAndStop("over");
    break;
    default:
    //trace(event.currentTarget);
    function btnOut(event:MouseEvent):void{
    event.currentTarget.gotoAndStop("up");
    /*switch( event.currentTarget ){
    case submit_btn:
    submit_btn.gotoAndStop("up");
    break;
    case reset_btn:
    reset_btn.gotoAndStop("up");
    break;
    case subject_btn:
    subject_btn.gotoAndStop("up");
    break;
    default:
    //trace(event.currentTarget);
    function btnClick(event:MouseEvent):void{
    switch( event.currentTarget ){
    case submit_btn:
    if( validateData() ){
    sendData();
    break;
    case reset_btn:
    resetForm();
    break;
    case subject_btn:
    subjects_mc.gotoAndPlay("over");
    break;
    default:
    //trace(event.currentTarget);
    function validateData():Boolean{
    var is_form_valid:Boolean = true;
    if( form_name_value.text == '' || form_name_value.text ==
    'Name is required.' ){
    form_name_value.text = 'Name is required.';
    is_form_valid = false;
    if( !validateEmail(form_email_value) ){
    is_form_valid = false;
    if( form_subject_value.text == '' || form_subject_value.text
    == 'Choose A Subject...' ){
    form_subject_value.text = 'Subject is required.';
    is_form_valid = false;
    if( form_message_value.text == '' || form_message_value.text
    == 'Message is required.' ){
    form_message_value.text = 'Message is required.';
    is_form_valid = false;
    return is_form_valid;
    function validateEmail(email:TextField):Boolean{
    var email_exp:RegExp =
    /^[a-z0-9][-._a-z0-9]*@(([a-z0-9][-_a-z0-9]*\.)+[a-z]{2,6}|((25[0-5]|2[0-4]\d|[01]?\d\d?) \.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))$/x;
    if( email.text == '' ){
    email.text = 'Email is required.';
    return false;
    if( !email_exp.test(email.text) ){
    email.text = 'Email is invalid.';
    return false;
    return true;
    function sendData():void{
    var url_loader:URLLoader = new URLLoader();
    //var url_request:URLRequest = new
    URLRequest("email.php"+getTimer());
    var url_request:URLRequest = new
    URLRequest("email.php"+getTimer());
    url_request.method = URLRequestMethod.POST;
    var url_variables:URLVariables = new URLVariables();
    url_variables.name_value = form_name_value.text;
    url_variables.email_value =form_email_value.text;
    url_variables.subject_value = form_subject_value.text;
    url_variables.message_value = form_message_value.text;
    url_request.data = url_variables;
    url_loader.load(url_request);
    url_loader.addEventListener(Event.OPEN,loadingOpen Handler);
    url_loader.addEventListener(Event.COMPLETE,loading
    CompleteHandler);
    url_loader.addEventListener(SecurityErrorEvent.SEC
    URITY_ERROR, securityErrorHandler);
    url_loader.addEventListener(HTTPStatusEvent.HTTP_S TATUS,
    httpStatusHandler);
    url_loader.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    function loadingOpenHandler(event:Event):void{
    form_status.text = 'Sending Data...';
    function loadingCompleteHandler(event:Event):void{
    form_status.text = 'Data sent successfully.';
    resetForm();
    function securityErrorHandler(event:SecurityErrorEvent):voi
    d{
    form_status.text = 'An Error occured.';
    function httpStatusHandler(event:HTTPStatusEvent):void{
    form_status.text = 'An Error occured.';
    function ioErrorHandler(event:IOErrorEvent):void{
    form_status.text = 'An Error occured.';
    function resetForm():void{
    form_name_value.text = '';
    form_email_value.text = '';
    form_subject_value.text = 'Choose A Subject...';
    form_message_value.text = '';
    function initSubjects():void{
    for(var i=1;i<=4;i++){
    subjects_mc["subject_mc_"+i].id = i;
    subjects_mc["subject_mc_"+i].addEventListener(MouseEvent.ROLL_OVER,subjectBtnO
    ver);
    subjects_mc["subject_mc_"+i].addEventListener(MouseEvent.ROLL_OUT,subjectBtnOu
    t);
    subjects_mc["subject_mc_"+i].addEventListener(MouseEvent.CLICK,subjectBtnClick
    subjects_mc["subject_mc_"+i].buttonMode = true;
    subjects_mc["subject_mc_"+i].subject.mouseEnabled = false;
    subjects_mc.mask = subjects_mask_mc;
    function subjectBtnOver(event:MouseEvent):void{
    event.currentTarget.gotoAndPlay("over");
    function subjectBtnOut(event:MouseEvent):void{
    event.currentTarget.gotoAndPlay("out");
    function subjectBtnClick(event:MouseEvent):void{
    subjects_mc.gotoAndStop("up");
    form_subject_value.text =
    subjects_mc["subject_mc_"+event.currentTarget.id].subject.text;
    }

    Okay, nice!
    I changed that bit to just "email.php"),
    and now I get the mesage "data sent successfully"
    The question is WHERE??
    It doesn't show up in the email addy specified in the .php
    file.

  • Trying to setup a WLAN on an 877W

    Hi,
    I'm just trying to setup a small office with a WLAN on a 877w. I've managed to get the encryption sorted (I think) but I still can't get them on the network. They won't pickup DHCP addresses and if I set the laptops up on static addresses they still can't ping the router.
    I think I need to setup VLANs and bridging, but to be honest I don't understand what needs to be done. Can someone more knowledgeable than me take a look at the config (attached) and point me in the right direction?
    This is just for a small office with 2 laptops. I am more than happy to have all interfaces in 1 vlan.
    Any questions please let me know,
    TIA,
    Al

    Following link may help you
    http://www.cisco.com/en/US/prod/collateral/routers/ps380/ps6200/prod_qas0900aecd8028a982.html

  • Nginx with php-fpm, connection with php-fpm.sock failed

    I am feeling stumped, trying to setup NGINX for the first time on Arch. Followed the wiki a few times and keep getting hung up in the same spot. I followed the instructions to install NGINX in a chroot, then went on to setup php-fpm. I have not tried setting up any sites, just trying to get to the point of showing the "it works" page, before I moved to setting up a site.
    The error I am getting on the page
    Sorry, the page you are looking for is currently unavailable.
    Please try again later.
    error in log
    2013/03/07 13:04:05 [crit] 1868#0: *1 connect() to unix:/run/php-fpm/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: MYIP, server: SERVERIP, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "SERVERIP"
    SERVERIP: is the IP of the server and shows properly in the log, same with MYIP
    Here are my configs
    /srv/http/etc/nginx.conf
    #user http;
    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 SERVERIP;
    include fpm.conf;
    #charset koi8-r;
    #access_log logs/host.access.log main;
    location / {
    root /usr/share/nginx/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 /usr/share/nginx/html;
    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #location ~ \.php$ {
    # proxy_pass http://127.0.0.1;
    # 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;
    # server_name localhost;
    # ssl on;
    # ssl_certificate cert.pem;
    # ssl_certificate_key cert.key;
    # ssl_session_timeout 5m;
    # ssl_protocols SSLv2 SSLv3 TLSv1;
    # ssl_ciphers HIGH:!aNULL:!MD5;
    # ssl_prefer_server_ciphers on;
    # location / {
    # root html;
    # index index.html index.htm;
    /srv/http/etc/nginx/fpm.conf  - this is the file in the wiki that says php.conf
    location ~ \.(php|html|htm)$ {
    fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
    fastcgi_index index.php;
    include fastcgi.conf;
    /etc/php/php-fpm.conf
    ; FPM Configuration ;
    ; All relative paths in this configuration file are relative to PHP's install
    ; prefix (/usr). This prefix can be dynamicaly changed by using the
    ; '-p' argument from the command line.
    ; Include one or more files. If glob(3) exists, it is used to include a bunch of
    ; files from a glob(3) pattern. This directive can be used everywhere in the
    ; file.
    ; Relative path can also be used. They will be prefixed by:
    ; - the global prefix if it's been set (-p arguement)
    ; - /usr otherwise
    ;include=/etc/php/fpm.d/*.conf
    ; Global Options ;
    [global]
    ; Pid file
    ; Note: the default prefix is /var
    ; Default Value: none
    pid = /run/php-fpm/php-fpm.pid
    ; Error log file
    ; If it's set to "syslog", log is sent to syslogd instead of being written
    ; in a local file.
    ; Note: the default prefix is /var
    ; Default Value: log/php-fpm.log
    ;error_log = log/php-fpm.log
    ; syslog_facility is used to specify what type of program is logging the
    ; message. This lets syslogd specify that messages from different facilities
    ; will be handled differently.
    ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
    ; Default Value: daemon
    ;syslog.facility = daemon
    ; syslog_ident is prepended to every message. If you have multiple FPM
    ; instances running on the same server, you can change the default value
    ; which must suit common needs.
    ; Default Value: php-fpm
    ;syslog.ident = php-fpm
    ; Log level
    ; Possible Values: alert, error, warning, notice, debug
    ; Default Value: notice
    ;log_level = notice
    ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
    ; interval set by emergency_restart_interval then FPM will restart. A value
    ; of '0' means 'Off'.
    ; Default Value: 0
    ;emergency_restart_threshold = 0
    ; Interval of time used by emergency_restart_interval to determine when
    ; a graceful restart will be initiated. This can be useful to work around
    ; accidental corruptions in an accelerator's shared memory.
    ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
    ; Default Unit: seconds
    ; Default Value: 0
    ;emergency_restart_interval = 0
    ; Time limit for child processes to wait for a reaction on signals from master.
    ; Available units: s(econds), m(inutes), h(ours), or d(ays)
    ; Default Unit: seconds
    ; Default Value: 0
    ;process_control_timeout = 0
    ; The maximum number of processes FPM will fork. This has been design to control
    ; the global number of processes when using dynamic PM within a lot of pools.
    ; Use it with caution.
    ; Note: A value of 0 indicates no limit
    ; Default Value: 0
    ; process.max = 128
    ; Specify the nice(2) priority to apply to the master process (only if set)
    ; The value can vary from -19 (highest priority) to 20 (lower priority)
    ; Note: - It will only work if the FPM master process is launched as root
    ; - The pool process will inherit the master process priority
    ; unless it specified otherwise
    ; Default Value: no set
    ; process.priority = -19
    ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
    ; Default Value: yes
    ;daemonize = yes
    ; Set open file descriptor rlimit for the master process.
    ; Default Value: system defined value
    ;rlimit_files = 1024
    ; Set max core size rlimit for the master process.
    ; Possible Values: 'unlimited' or an integer greater or equal to 0
    ; Default Value: system defined value
    ;rlimit_core = 0
    ; Specify the event mechanism FPM will use. The following is available:
    ; - select (any POSIX os)
    ; - poll (any POSIX os)
    ; - epoll (linux >= 2.5.44)
    ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0)
    ; - /dev/poll (Solaris >= 7)
    ; - port (Solaris >= 10)
    ; Default Value: not set (auto detection)
    ; events.mechanism = epoll
    ; Pool Definitions ;
    ; Multiple pools of child processes may be started with different listening
    ; ports and different management options. The name of the pool will be
    ; used in logs and stats. There is no limitation on the number of pools which
    ; FPM can handle. Your system will tell you anyway :)
    ; Start a new pool named 'www'.
    ; the variable $pool can we used in any directive and will be replaced by the
    ; pool name ('www' here)
    [www]
    ; Per pool prefix
    ; It only applies on the following directives:
    ; - 'slowlog'
    ; - 'listen' (unixsocket)
    ; - 'chroot'
    ; - 'chdir'
    ; - 'php_values'
    ; - 'php_admin_values'
    ; When not set, the global prefix (or /usr) applies instead.
    ; Note: This directive can also be relative to the global prefix.
    ; Default Value: none
    ;prefix = /path/to/pools/$pool
    ; Unix user/group of processes
    ; Note: The user is mandatory. If the group is not set, the default user's group
    ; will be used.
    user = http
    group = http
    ; The address on which to accept FastCGI requests.
    ; Valid syntaxes are:
    ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
    ; a specific port;
    ; 'port' - to listen on a TCP socket to all addresses on a
    ; specific port;
    ; '/path/to/unix/socket' - to listen on a unix socket.
    ; Note: This value is mandatory.
    ;listen = 127.0.0.1:9000
    listen = /run/php-fpm/php-fpm.sock
    ; Set listen(2) backlog.
    ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
    ;listen.backlog = 128
    ; Set permissions for unix socket, if one is used. In Linux, read/write
    ; permissions must be set in order to allow connections from a web server. Many
    ; BSD-derived systems allow connections regardless of permissions.
    ; Default Values: user and group are set as the running user
    ; mode is set to 0666
    listen.owner = http
    listen.group = http
    listen.mode = 0666
    ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
    ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
    ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
    ; must be separated by a comma. If this value is left blank, connections will be
    ; accepted from any ip address.
    ; Default Value: any
    ;listen.allowed_clients = 127.0.0.1
    ; Specify the nice(2) priority to apply to the pool processes (only if set)
    ; The value can vary from -19 (highest priority) to 20 (lower priority)
    ; Note: - It will only work if the FPM master process is launched as root
    ; - The pool processes will inherit the master process priority
    ; unless it specified otherwise
    ; Default Value: no set
    ; priority = -19
    ; Choose how the process manager will control the number of child processes.
    ; Possible Values:
    ; static - a fixed number (pm.max_children) of child processes;
    ; dynamic - the number of child processes are set dynamically based on the
    ; following directives. With this process management, there will be
    ; always at least 1 children.
    ; pm.max_children - the maximum number of children that can
    ; be alive at the same time.
    ; pm.start_servers - the number of children created on startup.
    ; pm.min_spare_servers - the minimum number of children in 'idle'
    ; state (waiting to process). If the number
    ; of 'idle' processes is less than this
    ; number then some children will be created.
    ; pm.max_spare_servers - the maximum number of children in 'idle'
    ; state (waiting to process). If the number
    ; of 'idle' processes is greater than this
    ; number then some children will be killed.
    ; ondemand - no children are created at startup. Children will be forked when
    ; new requests will connect. The following parameter are used:
    ; pm.max_children - the maximum number of children that
    ; can be alive at the same time.
    ; pm.process_idle_timeout - The number of seconds after which
    ; an idle process will be killed.
    ; Note: This value is mandatory.
    pm = dynamic
    ; The number of child processes to be created when pm is set to 'static' and the
    ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
    ; This value sets the limit on the number of simultaneous requests that will be
    ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
    ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
    ; CGI. The below defaults are based on a server without much resources. Don't
    ; forget to tweak pm.* to fit your needs.
    ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
    ; Note: This value is mandatory.
    pm.max_children = 5
    ; The number of child processes created on startup.
    ; Note: Used only when pm is set to 'dynamic'
    ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
    pm.start_servers = 2
    ; The desired minimum number of idle server processes.
    ; Note: Used only when pm is set to 'dynamic'
    ; Note: Mandatory when pm is set to 'dynamic'
    pm.min_spare_servers = 1
    ; The desired maximum number of idle server processes.
    ; Note: Used only when pm is set to 'dynamic'
    ; Note: Mandatory when pm is set to 'dynamic'
    pm.max_spare_servers = 3
    ; The number of seconds after which an idle process will be killed.
    ; Note: Used only when pm is set to 'ondemand'
    ; Default Value: 10s
    ;pm.process_idle_timeout = 10s;
    ; The number of requests each child process should execute before respawning.
    ; This can be useful to work around memory leaks in 3rd party libraries. For
    ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
    ; Default Value: 0
    ;pm.max_requests = 500
    ; The URI to view the FPM status page. If this value is not set, no URI will be
    ; recognized as a status page. It shows the following informations:
    ; pool - the name of the pool;
    ; process manager - static, dynamic or ondemand;
    ; start time - the date and time FPM has started;
    ; start since - number of seconds since FPM has started;
    ; accepted conn - the number of request accepted by the pool;
    ; listen queue - the number of request in the queue of pending
    ; connections (see backlog in listen(2));
    ; max listen queue - the maximum number of requests in the queue
    ; of pending connections since FPM has started;
    ; listen queue len - the size of the socket queue of pending connections;
    ; idle processes - the number of idle processes;
    ; active processes - the number of active processes;
    ; total processes - the number of idle + active processes;
    ; max active processes - the maximum number of active processes since FPM
    ; has started;
    ; max children reached - number of times, the process limit has been reached,
    ; when pm tries to start more children (works only for
    ; pm 'dynamic' and 'ondemand');
    ; Value are updated in real time.
    ; Example output:
    ; pool: www
    ; process manager: static
    ; start time: 01/Jul/2011:17:53:49 +0200
    ; start since: 62636
    ; accepted conn: 190460
    ; listen queue: 0
    ; max listen queue: 1
    ; listen queue len: 42
    ; idle processes: 4
    ; active processes: 11
    ; total processes: 15
    ; max active processes: 12
    ; max children reached: 0
    ; By default the status page output is formatted as text/plain. Passing either
    ; 'html', 'xml' or 'json' in the query string will return the corresponding
    ; output syntax. Example:
    ; http://www.foo.bar/status
    ; http://www.foo.bar/status?json
    ; http://www.foo.bar/status?html
    ; http://www.foo.bar/status?xml
    ; By default the status page only outputs short status. Passing 'full' in the
    ; query string will also return status for each pool process.
    ; Example:
    ; http://www.foo.bar/status?full
    ; http://www.foo.bar/status?json&full
    ; http://www.foo.bar/status?html&full
    ; http://www.foo.bar/status?xml&full
    ; The Full status returns for each process:
    ; pid - the PID of the process;
    ; state - the state of the process (Idle, Running, ...);
    ; start time - the date and time the process has started;
    ; start since - the number of seconds since the process has started;
    ; requests - the number of requests the process has served;
    ; request duration - the duration in µs of the requests;
    ; request method - the request method (GET, POST, ...);
    ; request URI - the request URI with the query string;
    ; content length - the content length of the request (only with POST);
    ; user - the user (PHP_AUTH_USER) (or '-' if not set);
    ; script - the main script called (or '-' if not set);
    ; last request cpu - the %cpu the last request consumed
    ; it's always 0 if the process is not in Idle state
    ; because CPU calculation is done when the request
    ; processing has terminated;
    ; last request memory - the max amount of memory the last request consumed
    ; it's always 0 if the process is not in Idle state
    ; because memory calculation is done when the request
    ; processing has terminated;
    ; If the process is in Idle state, then informations are related to the
    ; last request the process has served. Otherwise informations are related to
    ; the current request being served.
    ; Example output:
    ; pid: 31330
    ; state: Running
    ; start time: 01/Jul/2011:17:53:49 +0200
    ; start since: 63087
    ; requests: 12808
    ; request duration: 1250261
    ; request method: GET
    ; request URI: /test_mem.php?N=10000
    ; content length: 0
    ; user: -
    ; script: /home/fat/web/docs/php/test_mem.php
    ; last request cpu: 0.00
    ; last request memory: 0
    ; Note: There is a real-time FPM status monitoring sample web page available
    ; It's available in: ${prefix}/share/fpm/status.html
    ; Note: The value must start with a leading slash (/). The value can be
    ; anything, but it may not be a good idea to use the .php extension or it
    ; may conflict with a real PHP file.
    ; Default Value: not set
    ;pm.status_path = /status
    ; The ping URI to call the monitoring page of FPM. If this value is not set, no
    ; URI will be recognized as a ping page. This could be used to test from outside
    ; that FPM is alive and responding, or to
    ; - create a graph of FPM availability (rrd or such);
    ; - remove a server from a group if it is not responding (load balancing);
    ; - trigger alerts for the operating team (24/7).
    ; Note: The value must start with a leading slash (/). The value can be
    ; anything, but it may not be a good idea to use the .php extension or it
    ; may conflict with a real PHP file.
    ; Default Value: not set
    ;ping.path = /ping
    ; This directive may be used to customize the response of a ping request. The
    ; response is formatted as text/plain with a 200 response code.
    ; Default Value: pong
    ;ping.response = pong
    ; The access log file
    ; Default: not set
    ;access.log = log/$pool.access.log
    ; The access log format.
    ; The following syntax is allowed
    ; %%: the '%' character
    ; %C: %CPU used by the request
    ; it can accept the following format:
    ; - %{user}C for user CPU only
    ; - %{system}C for system CPU only
    ; - %{total}C for user + system CPU (default)
    ; %d: time taken to serve the request
    ; it can accept the following format:
    ; - %{seconds}d (default)
    ; - %{miliseconds}d
    ; - %{mili}d
    ; - %{microseconds}d
    ; - %{micro}d
    ; %e: an environment variable (same as $_ENV or $_SERVER)
    ; it must be associated with embraces to specify the name of the env
    ; variable. Some exemples:
    ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
    ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
    ; %f: script filename
    ; %l: content-length of the request (for POST request only)
    ; %m: request method
    ; %M: peak of memory allocated by PHP
    ; it can accept the following format:
    ; - %{bytes}M (default)
    ; - %{kilobytes}M
    ; - %{kilo}M
    ; - %{megabytes}M
    ; - %{mega}M
    ; %n: pool name
    ; %o: ouput header
    ; it must be associated with embraces to specify the name of the header:
    ; - %{Content-Type}o
    ; - %{X-Powered-By}o
    ; - %{Transfert-Encoding}o
    ; %p: PID of the child that serviced the request
    ; %P: PID of the parent of the child that serviced the request
    ; %q: the query string
    ; %Q: the '?' character if query string exists
    ; %r: the request URI (without the query string, see %q and %Q)
    ; %R: remote IP address
    ; %s: status (response code)
    ; %t: server time the request was received
    ; it can accept a strftime(3) format:
    ; %d/%b/%Y:%H:%M:%S %z (default)
    ; %T: time the log has been written (the request has finished)
    ; it can accept a strftime(3) format:
    ; %d/%b/%Y:%H:%M:%S %z (default)
    ; %u: remote user
    ; Default: "%R - %u %t \"%m %r\" %s"
    ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
    ; The log file for slow requests
    ; Default Value: not set
    ; Note: slowlog is mandatory if request_slowlog_timeout is set
    ;slowlog = log/$pool.log.slow
    ; The timeout for serving a single request after which a PHP backtrace will be
    ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
    ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
    ; Default Value: 0
    ;request_slowlog_timeout = 0
    ; The timeout for serving a single request after which the worker process will
    ; be killed. This option should be used when the 'max_execution_time' ini option
    ; does not stop script execution for some reason. A value of '0' means 'off'.
    ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
    ; Default Value: 0
    ;request_terminate_timeout = 0
    ; Set open file descriptor rlimit.
    ; Default Value: system defined value
    ;rlimit_files = 1024
    ; Set max core size rlimit.
    ; Possible Values: 'unlimited' or an integer greater or equal to 0
    ; Default Value: system defined value
    ;rlimit_core = 0
    ; Chroot to this directory at the start. This value must be defined as an
    ; absolute path. When this value is not set, chroot is not used.
    ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
    ; of its subdirectories. If the pool prefix is not set, the global prefix
    ; will be used instead.
    ; Note: chrooting is a great security feature and should be used whenever
    ; possible. However, all PHP paths will be relative to the chroot
    ; (error_log, sessions.save_path, ...).
    ; Default Value: not set
    ;chroot =
    ; Chdir to this directory at the start.
    ; Note: relative path can be used.
    ; Default Value: current directory or / when chroot
    ;chdir = /srv/http
    ; Redirect worker stdout and stderr into main error log. If not set, stdout and
    ; stderr will be redirected to /dev/null according to FastCGI specs.
    ; Note: on highloaded environement, this can cause some delay in the page
    ; process time (several ms).
    ; Default Value: no
    ;catch_workers_output = yes
    ; Limits the extensions of the main script FPM will allow to parse. This can
    ; prevent configuration mistakes on the web server side. You should only limit
    ; FPM to .php extensions to prevent malicious users to use other extensions to
    ; exectute php code.
    ; Note: set an empty value to allow all extensions.
    ; Default Value: .php
    ;security.limit_extensions = .php .php3 .php4 .php5
    security.limit_extensions = .php .html
    ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
    ; the current environment.
    ; Default Value: clean env
    ;env[HOSTNAME] = $HOSTNAME
    ;env[PATH] = /usr/local/bin:/usr/bin:/bin
    ;env[TMP] = /tmp
    ;env[TMPDIR] = /tmp
    ;env[TEMP] = /tmp
    ; Additional php.ini defines, specific to this pool of workers. These settings
    ; overwrite the values previously defined in the php.ini. The directives are the
    ; same as the PHP SAPI:
    ; php_value/php_flag - you can set classic ini defines which can
    ; be overwritten from PHP call 'ini_set'.
    ; php_admin_value/php_admin_flag - these directives won't be overwritten by
    ; PHP call 'ini_set'
    ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
    ; Defining 'extension' will load the corresponding shared extension from
    ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
    ; overwrite previously defined php.ini values, but will append the new value
    ; instead.
    ; Note: path INI options can be relative and will be expanded with the prefix
    ; (pool, global or /usr)
    ; Default Value: nothing is defined by default except the values in php.ini and
    ; specified at startup with the -d argument
    ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
    ;php_flag[display_errors] = off
    ;php_admin_value[error_log] = /var/log/fpm-php.www.log
    ;php_admin_flag[log_errors] = on
    ;php_admin_value[memory_limit] = 32M
    In php-fpm.conf I have modified the permissions to be 0666 and I am still hitting the no such file or directory. But it is created.
    ls -la /run/php-fpm/
    total 4
    drwxr-xr-x 2 root root 80 Mar 7 13:05 .
    drwxr-xr-x 17 root root 520 Mar 7 10:59 ..
    -rw-r--r-- 1 root root 4 Mar 7 13:05 php-fpm.pid
    srw-rw-rw- 1 http http 0 Mar 7 13:05 php-fpm.sock
    Not getting what I am missing here, can someone help shed some light or smack me in the correct direction. Thanks.
    edit:
    Also verified that it is for sure running in the chroot
    ps -C nginx | awk '{print $1}' | sed 1d | while read -r PID; do ls -l /proc/$PID/root; done
    lrwxrwxrwx 1 root root 0 Mar 7 14:06 /proc/313/root -> /srv/http
    lrwxrwxrwx 1 http http 0 Mar 7 14:06 /proc/314/root -> /srv/http
    edit2:
    I just rebooted the box and was going over everything again to see if I missed anything or anything was not matching the wiki and the only extra info I could dig out of my box was new error in the logs relating to the nginx.pid
    2013/03/07 18:10:41 [notice] 411#0: signal process started
    2013/03/07 18:10:41 [alert] 387#0: unlink() "/run/nginx.pid" failed (13: Permission denied)
    ls -la /srv/http/run/
    total 12
    drwxr-xr-x 2 root root 4096 Mar 7 14:02 .
    d--x--x--x 9 root root 4096 Mar 7 11:07 ..
    -rw-r--r-- 1 http http 4 Mar 7 18:12 nginx.pid
    It appears to have the proper permissions and it is not in /run/
    ls -la /run/nginx.pid
    ls: cannot access /run/nginx.pid: No such file or directory
    Going to try setting it up again on another box to see if I catch what I did wrong on this one, but will be leaving this one as is to make sure I figure out what happened. Is it that my chroot is bad? That is really the only thing I can think of that is really any different than other NGINX installs I have done, which have always been on a Debian based system.
    Last edited by vwyodajl (2013-03-07 18:24:55)

    Might sound stupid, but do you have php-fpm running?
    Means, is there a php-fpm process on your box, and does the socket exist like in:
    └» ps -ef|grep php-fpm
    root 3045 1 0 Mär04 ? 00:00:09 php-fpm: master process (/etc/php/php-fpm.conf)
    http 13534 3045 0 18:22 ? 00:00:10 php-fpm: pool www
    http 13545 3045 0 18:22 ? 00:00:08 php-fpm: pool www
    http 22807 3045 0 19:46 ? 00:00:01 php-fpm: pool www
    tom 27863 28055 0 20:16 pts/1 00:00:00 grep --colour=auto php-fpm
    └» ls -l /run/php-fpm/php-fpm.sock
    srw-rw---- 1 http http 0 4. Mär 22:24 /run/php-fpm/php-fpm.sock
    EDIT: somehow missed your output regarding the php-fpm socket. Ignore above then, I have no idea about chroot, I use LXC.
    Last edited by teekay (2013-03-07 19:24:04)

  • Problems setting up testing server CS5 with existing PhP site copied to hard drive

    A couple of years ago I dabbled in CS3 & PhP, but haven't touched it since 2009.  I still have WAMP loaded on my machines.  I'm now in a work situation where I was asked to see if I could make some simple copy updates to sites written in PhP.  I copied the entire sites over to my hard drive, and placed them in the WAMP www root folder, and followed instructions to setting up the site in CS5 (which is pretty close to the CS3 setup).  I made sure WAMP was running, and I'm still unable to connect. I am using "localhost" as part of the URL for the web server designation. I continue to get an "internal server error" message on these pages.  I am able to, from my browser, type in "http:localhost" and it appears that WAMP is running properly. And I do remember to start WAMP before I start a DW session.
    So, I kept experimenting.  If I define a new PhP site and create a test document with simple PhP code, the connection to the testing server works and renders the code.  It's just the existing PhP site I've copied over generates the Internal server message.
    Is there something basic I'm not understanding about viewing and manipulating a PhP site created by someone else using DW CS5?

    The first question: on what platform? Windows - Mac?
    I only succeeded in setting up a testing server on my Mac
    with PHP and MySQL after reading a book of David Powers. On Leopard
    I belief there still are problems connecting PHP to MySQL.

  • I am trying to setup VPN with QuickVPN

    Hi I am trying to setup VPN with WRVS4400N and Quick VPN on client side. I am fairly new to VPN and did some research and looked through the manual but can't seem to get it to work so far and from what I noticed many people are having this problem. So hopefully someone can tell what the problem is or at least point to right direction on solving this.
    Basically it gives the "Failed to establish connection" generic error, shows it almost instantly..
    It also showed the certificate error before but then I read about putting it in the installation directory and it stopped showing it, and whats strange is later I removed it but it doesnt show the error any longer, so don't know if its caching it somewhere or what can be going on...
    In effort to look for answer and test things out I tried to connect to another location and setup a WRV200 router, I also get the same error but not instantly, it even shows "Activating Policy" but then doesn't go farther and shows the generic error...
    Also with this setup strangly it always shows the certificate error, no matter if I put one in directory or not... Even tried to name it as the WRVS4400N certificate name...
    Anyway VPN IPSec is disabled, and Client Accounts are configured and changed password several times to make sure its correct, VPN Passthrough enabled on all 3 options.
    I tried to disable Windows Router, I also have a router in place do I possibly need to open some type of ports for the QuickVPN client?
    Don't know yet whats going on if I am missing something or if there is some problem that needs work-around but if you know the answer or guesses of answer please let me know.

    Hi Aleksandr,
    since this question is about a product in the Cisco Small Business / Linksys range, I suggest you move it to the community, where you will have a better chance of getting expert advice.
    best regards,
    Herbert
    Cisco Moderator

  • I have an iphone 5 with ios 6. I am trying to setup a new exchange email account. I need the backslash but it is not available. I can find it on other apps but not when trying to set up the mail account. (it is not on the  keyboard)

    I have an iphone 4s with ios 6. I am trying to setup a new exchange email account. I need the back slash but it does not show up on the keyboard. I know it is supposed to be on the +key (and is for other apps) but for some reason it is not available when setting up an email account. Is this on purpose or am I doing something wrong?

    I can tell you that with Sprint their coverage area isn't as good as Verizon or AT&T.
    Are you sending these imessage while on wifi or cellular data?  Also your husband would need to be in a good coverage area.
    Usually when imessage is unavailable it will send it as a text.  Does your husband receive your imessage as a text?

  • I am trying to setup wireless using my old dome Airport ExtremeBase station. I had previously used it about 5 years ago when I had dial up but have now switche to DSL with Windstream. I can not get connecte as ABS keeps trying to dial up(the phone number)

    I am trying to setup wireless using my old dome Airport Extreme Base station. I had previously used it about 5 years ago when I had dial up but have now switched to DSL with Windstream. I can not get connected as the ABS keeps trying to dial up(the old phone number). When I tried to change my network settings an annoying popup window says "your network settings have been changed by another application'. I have no idea what the message is all about and when I close this window it immediately pops up again and prevents me -as far as I can tell -from changing my Airport settings?  I need advice on how to get this wireless setup done. Maybe a reset? or something else? I have the DSL phone line plugged into WIndsteam Seimens Speedstream 4200 modem and then the ethernet (yellow) wire from the WIndsteam Seimens Speedstream 4200 modem to the port on the dome that is a circle of dots.

    1)Can you explain how using the AEBS as a bridge will work with the Seimens Speedstream4200?
    As a bridge, the AEBS will basically become a wireless access point. This will allow the AEBS to provide a wireless network, but still allow the Speedstream to provide NAT & DHCP services for the wireless clients connected to the AEBS. If the AEBS was left as a router, you would have a double-NAT condition which isn't necessary bad in itself, but would create a second subnet. That would make it more difficult for clients connected to the AEBS to access clients connected to the Speedstream.
    2) Is there a link that will guide me through the steps to set the AEBS as a bridge?
    You can easily reconfigure the AEBS as a bridge using the AirPort Utility.
    ref: AirPort Utility > Select the AEBS > Manual Setup > Internet > Internet Connection > Connection Sharing = Off (Bridge Mode)
    3)Can I just connect the DSL phone line to the AEBS and eliminate the Speedstream4200?
    Unfortunately no. The AEBS does not have a built-in DSL modem. You will still need the Speedstream to provide this function.

  • HT1918 i have recently moved from the uk to australia and cancelled my uk debit before the payment was processed for songs i bought in itunes. i have tried to edit my billing info with australian debit details but the site says 'invalid card' how can i fi

    i have recently moved from the uk to australia and cancelled my uk debit before the payment was processed for songs i bought in itunes. i have tried to edit my billing info with australian debit details but the site says 'invalid card' how can i fix this?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HT1926 when trying to setup itunes on my pc i get the following message: there is a problem with this Windows installer package. A program required for this install to complete could not be run. How could I solve this problem?

    when trying to setup itunes on my pc i get the following message: there is a problem with this Windows installer package. A program required for this install to complete could not be run. How could I solve this problem?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START/CONTROL PANEL/Programs n Features/highlight ASU and click REPAIR,

  • Just recently I am getting the following error message when trying to access web sites. I get a pop up window stating "Exc in ev handl: TypeError: c.location is null" then I have to click ok. It is an issue with some plug-in?

    Just recently I am getting the following error message when trying to access web sites. I am using Firefox browser version 10.0.2. I get a pop up window stating "Exc in ev handl: TypeError: c.location is null" as the web site page is being displayed in browser winder. Then I have to click ok. It doesn't matter what web link/site I go to it happens. It is an issue with some plug-in?

    I have advised McAfee's product team of the problem and this thread, and they're looking into it now.

  • HT5706 I am trying to set up Apple TV with my Uverse WiFi, but I get errors when entering my password.  One site said that Apple TV doesn't work with WPA which Uverse uses.  Is there anyway around this or will Uverse and Apple TV just not work together.

    Trying to set up Apple TV with ATT Uverse.  I get errors when trying to enter my WiFi password.  One site says that Apple TV doesn't work with Uverse because it uses WPA for encryption.  If true, does that mean Uverse subscribers cannot use Apple TV?

    Spurs63 wrote:
    does that mean Uverse subscribers cannot use Apple TV?
    No, that's a rather silly conclusion.
    There are two options:
    stop using the crappy router provided by the ISP.
    Physically connect the ATV to the router via Ethernet.

Maybe you are looking for