Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-29, 00:01:45

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nmpribeiro

Pages: 1 [2] 3 4 5
16

I wanted to debug an app with php-fpm, however, with this setup (clean install from 6.5.1b as for 3 Jan 14):

[root@centos-test owncloud]# sh /script/sysinfo

A. Kloxo-MR: 6.5.1.b-2014063001

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.38-1.ius.el6.x86_64
   2. PHP: php54-5.4.29-3.ius.el6.x86_64
   3. Httpd: httpd-2.2.27-1.mr.e6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.6-2.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.8.2-0.23.rc1.el6_5.1.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:           996        702        293          0         78        395
   -/+ buffers/cache:        228        767
   Swap:          815          3        812


I am receiving "No input file specified. " from  " http://192.168.56.103/~admin/owncloud/ "
If I change to mod_php_itk, then all works fine, but all the other Php-type seam to break the php serving from the server.

------- END OF GENERAL PURPOSE TESTING, BEGINING OF PHP-FPM and OwnCloud Case Scenario Test -------

All with this error: from httpd/error_log:

[Wed Jul 02 23:29:08 2014] [error] [client 192.168.56.1] FastCGI: server "/home/kloxo/httpd/default/default.0fake" stderr: Unable to open primary script: /home/admin/public_html/owncloud/index.php (Operation not permitted)

Logs from php-fpm/* show nothing.

Please, beare in mind that I really want to make a test scenario only "php" with type "php-fpm" and owncloud. Not with mod_php_itk which works well.
How can I put php-fpm to spit some errors here?

Thanks in advance

17
Yes, I can access .html files, not php... and if I switch to mod_php_itk, then php works. But perhaps would be good to have some sort of way to reinstal a selected php with a certain type of fpm (and really replace contents if there are, so we could have almost a clean install everytime we switch these on or off).

Having mixed results while doing so from webserver config UI.

18
I see... html is accessed, while php throws the error...

I guess my php installation is messed up still

19
Sorry, but this is something else:

[Wed Jul 02 21:32:10 2014] [error] [client 192.168.56.1] FastCGI: server "/home/kloxo/httpd/default/default.0fake" stderr: Unable to open primary script: /home/admin/public_html/test/index.php (Operation not permitted)

Cause I can access public_html/index.php, however, test and everythign else I make I cannot.

ls -la:
drwxr-xr-x  6 admin apache 4096 Jul  2 21:29 .
drwxr-x--x  5 admin apache 4096 Jul  2 21:18 ..
drwxr-xr-x  2 admin admin  4096 Jul  2 21:17 cgi-bin
drwxr-xr-x  2 admin admin  4096 Aug 23  2013 images
-rw-r--r--  1 admin admin  2240 Jul  2 21:17 index.html
drwxr-xr-x  2 admin admin  4096 Jul  2 21:29 test

and in test folder:
drwxr-xr-x 2 admin admin  4096 Jul  2 21:29 .
drwxr-xr-x 6 admin apache 4096 Jul  2 21:29 ..
-rw-r--r-- 1 admin admin    31 Jul  2 21:29 index.php

and yes, public_html points to those dir I "ls -la" before:

[root@centos-test admin]# ls -la
total 36
drwxr-x--x   5 admin apache 4096 Jul  2 21:18 .
drwxr-xr-x. 23 root  root   4096 Jul  2 08:55 ..
-rw-r--r--   1 admin admin    18 Jul 18  2013 .bash_logout
-rw-r--r--   1 admin admin   176 Jul 18  2013 .bash_profile
-rw-r--r--   1 admin admin   124 Jul 18  2013 .bashrc
drwxr-xr-x   2 admin apache 4096 Jul  2 09:30 kloxoscript
drwxr-xr-x   5 admin admin  4096 Jul  2 08:54 Maildir
lrwxrwxrwx   1 root  root     27 Jul  2 21:18 public_html -> /home/admin/template.local/
-rw-r--r--   1 admin admin    11 Mar 10 22:37 .qmail
drwxr-xr-x   6 admin apache 4096 Jul  2 21:29 template.local

?

20
Thank you MR!

Well, now it's ready to experiment in a VM :)

21
[Wed Jul 02 21:01:19 2014] [error] [client 192.168.56.1] FastCGI: server "/home/kloxo/httpd/default/default.0fake" stderr: Unable to open primary script: /home/admin/public_html/index.php (Operation not permitted)

Strange...

22
Tryed to switch from apache to nginx and back to apache... /usr/sbin/httpd.event: No such file or directory.

yeah sure... lost internet while moving from nginx to apache...
FIxed..


But the problem pressists:
You don't have permission to access /~admin/ on this server.


After assgning a default domain (for admin), now it serves me a white page with this:
"No input file specified. "

23
Kloxo-MR Technical Helps / Testing Kloxo-mr 6.5.1b on a VM
« on: 2014-07-02, 13:52:46 »
Hi all,

I'm testing kloxo 6.5.1b on a VM (need to be able to debug that php-fpm issue with sabredav)

Dummy domain is now working for me in http://IP/~admin/

Need guidance...
Thanks!

24
Sure. Thanks MR.

But, kloxo 6.5.1b removes the abitily to custumize php per domain? At least I wasn't able to find the "PHP Config" in a domain in the new UI (I like it, congrats for the work!)

25
Kloxo-MR Technical Helps / Re: Sabredav problem with php-fpm
« on: 2014-07-01, 16:39:44 »
Confirmed. Problem with sabredav and php-fpm.

26

Solution:

redo domain or

cp /home/httpd/functional_domain.com/php.ini /home/httpd/defected_domain.com/php.ini

I hope this one was the last issue...

27
So...

I've seen php config has gone back to the client (not per domain).

But, I had to switch from php-fpm to suphp, and somehow, one domain has pdo working and the other doesn't.

This one has broken my understanding of kloxo-mr. Any help would be very much apreciated!

28
Kloxo-MR Technical Helps / Sabredav problem with php-fpm
« on: 2014-07-01, 12:08:51 »
   

    [01-Jul-2014 10:40:19]  [pool admin] pid 603
    script_filename = /home/admin/owncloud_place/remote.php
    [0x00007f84dec32c28] fread() /home/admin/owncloud_place/lib/private/helper.php:561
    [0x00007f84dec323f0] streamCopy() /home/admin/owncloud_place/lib/private/files/view.php:358
    [0x00007f84dec32018] file_put_contents() /home/admin/owncloud_place/lib/private/cache/file.php:74
    [0x00007f84dec31dd0] set() /home/admin/owncloud_place/lib/private/filechunking.php:50
    [0x00007f84dec31188] store() /home/admin/owncloud_place/lib/private/connector/sabre/file.php:215
    [0x00007f84dec301c8] createFileChunked() /home/admin/owncloud_place/lib/private/connector/sabre/file.php:70
    [0x00007f84dec2faf8] put() /home/admin/owncloud_place/lib/private/connector/sabre/directory.php:76
    [0x00007f84dec2f4f0] createFile() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:1647
    [0x00007f84dec2e9b0] createFile() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:900
    [0x00007fffba710b90] httpPut() unknown:0
    [0x00007f84dec2e618] call_user_func() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:474
    [0x00007f84dec2d720] invokeMethod() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:214
    [0x00007f84dec2ce50] exec() /home/admin/owncloud_place/apps/files/appinfo/remote.php:61
    [0x00007f84dec2c5a0] +++ dump failed


from http://pastebin.com/9drbfUfR


The program I'm degugging is owncloud. I'm trying to upload big files to my server.
Expeceted behaviour:
Files are chunked to a cache folder.
Then files are read from cache and put on the files/somedir directories
 However, when sabredav tries to read those cached chunks, it fails with an Internal Server Error.

I know this is a server optimization issue, and few to do with kloxo, but...  nevertheless, a technical help :)

Anyone has an idea of what might this behaviour be from? Some php config? Some php-fpm conf?

Any help will be awesome


29
Kloxo-MR Technical Helps / Re: SSL for a specific domain
« on: 2014-07-01, 07:55:22 »

 rm /opt/php54m

 sh ./php54m-installer

 sh /script/phpm-config-setup php54m

sh ./restart-web

cd /opt/php54m/
custom/      etc/         install.log  php54m       usr/         var/


Now, I've done as you asked (but /opt/php54m/etc instead of /opt/etc ) and uploadprogress.so is now loaded!

Thank you. Always learning.

Seams a better way to make code be placed in it's own place "/opt" and working chrooted. I guess now we can have those multiple php v working together

30
Kloxo-MR Technical Helps / Re: SSL for a specific domain
« on: 2014-06-30, 20:41:25 »
I don't have /opt/usr nor /opt/etc and even /opt/php54m is just a file, while /opt/php53s has etc/ var/ usr/ inside (chrooted I supose)

So... something's odd here

Pages: 1 [2] 3 4 5

MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.08 seconds with 20 queries.

web stats analysis