Re: PHP-FPM, PHP code in browser
Il giorno lun 8 ott 2018 alle 5:04, Benjamin Smith ha scritto: [...] I have apache/php-fpm running on an ubuntu vm. File layouts are different from fedora but enough is similar that this may help. Again, this is ubuntu... /etc/php/7.2/fpm/php.ini engine = On /etc/php/7.2/pool.d/www.conf listen = /run/php/php7.2-fpm.sock /etc/apache2/apache2.conf SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/" These three things are pretty straight forward. Enable the php-fpm engine, Specify where the php-fpm socket is to be created, Tell apache where to find the socket and how to access it On fedora these files may reside elsewhere. Use "locate" and "grep". On Fedora it's named differently. I use the following socket (with Caddy server): /run/php-fpm/www.sock ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: PHP-FPM, PHP code in browser
I've checked all of these to no avail. So I did a firm reset, not only removing RPMs but also deleting any and all stale config files in /etc. Now, after re-installing the RPMs, the default directory (/var/www/html/phpinfo.php) works fine. However, the site config file doesn't work, I get PHP code. Now starting with very basic configs and stepping forward, line by line, until I find the configuration lines that work. Thanks On Sun, Oct 7, 2018 at 4:24 PM Mike Wright wrote: > On 10/07/2018 01:09 PM, Benjamin Smith wrote: > > I'm unable to get PHP too actually *run* instead of just downloading the > > PHP sources. Coming from years of experience with Mod PHP wand I know > > that PHP FPM is different. I've confirmed that both RPMs (native FC 27) > > are installed, and that PHP-FPM and Apache are installed. I tried moving > > /etc/https/conf.modules/PHP.conf. I've looked at /etc/https/php.conf and > > read all comments. I've restarted phpfpm and Apache via system ctl. I've > > restarted the system. How do I get Apache to connect to Phpfpm for PHP > > scripts? > > I have apache/php-fpm running on an ubuntu vm. File layouts are > different from fedora but enough is similar that this may help. > > Again, this is ubuntu... > > /etc/php/7.2/fpm/php.ini > > engine = On > > /etc/php/7.2/pool.d/www.conf > > listen = /run/php/php7.2-fpm.sock > > /etc/apache2/apache2.conf > > SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/" > > These three things are pretty straight forward. > > Enable the php-fpm engine, > Specify where the php-fpm socket is to be created, > Tell apache where to find the socket and how to access it > > On fedora these files may reside elsewhere. Use "locate" and "grep". > > hth, > :m > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org > ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: PHP-FPM, PHP code in browser
On 10/07/2018 01:09 PM, Benjamin Smith wrote: I'm unable to get PHP too actually *run* instead of just downloading the PHP sources. Coming from years of experience with Mod PHP wand I know that PHP FPM is different. I've confirmed that both RPMs (native FC 27) are installed, and that PHP-FPM and Apache are installed. I tried moving /etc/https/conf.modules/PHP.conf. I've looked at /etc/https/php.conf and read all comments. I've restarted phpfpm and Apache via system ctl. I've restarted the system. How do I get Apache to connect to Phpfpm for PHP scripts? I have apache/php-fpm running on an ubuntu vm. File layouts are different from fedora but enough is similar that this may help. Again, this is ubuntu... /etc/php/7.2/fpm/php.ini engine = On /etc/php/7.2/pool.d/www.conf listen = /run/php/php7.2-fpm.sock /etc/apache2/apache2.conf SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/" These three things are pretty straight forward. Enable the php-fpm engine, Specify where the php-fpm socket is to be created, Tell apache where to find the socket and how to access it On fedora these files may reside elsewhere. Use "locate" and "grep". hth, :m ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Hard drive to sleep
Allegedly, on or about 7 October 2018, Ralf Corsepius sent: > HW-wise you should check if your drive-hardware is suiteable to be > frequently "put to sleep/woken up". Most NAS- or server-class HDDs > are not, most desktop/notbook drives are. All the domestic NASs, that I've seen, put their drives to sleep when idle. It can actually be a pain, because they're very slow to wake up. -- [tim@localhost ~]$ uname -rsvp Linux 4.16.11-100.fc26.x86_64 #1 SMP Tue May 22 20:02:12 UTC 2018 x86_64 Boilerplate: All mail to my mailbox is automatically deleted. There is no point trying to privately email me, I only get to see the messages posted to the mailing list. I reserve the right to treat other people in exactly the same way that they treat me. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: PHP-FPM, PHP code in browser
I found thisdunno if it will help? https://stackoverflow.com/questions/15023540/how-to-determine-which-script-is-being-executed-in-php-fpm-process#15029578 Sorry if this posts in the wrong positionI'm sending from my phone while out and about! EGO II On Sun, Oct 7, 2018, 4:10 PM Benjamin Smith wrote: > I'm unable to get PHP too actually *run* instead of just downloading the > PHP sources. Coming from years of experience with Mod PHP wand I know that > PHP FPM is different. I've confirmed that both RPMs (native FC 27) are > installed, and that PHP-FPM and Apache are installed. I tried moving > /etc/https/conf.modules/PHP.conf. I've looked at /etc/https/php.conf and > read all comments. I've restarted phpfpm and Apache via system ctl. I've > restarted the system. How do I get Apache to connect to Phpfpm for PHP > scripts? > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org > ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
PHP-FPM, PHP code in browser
I'm unable to get PHP too actually *run* instead of just downloading the PHP sources. Coming from years of experience with Mod PHP wand I know that PHP FPM is different. I've confirmed that both RPMs (native FC 27) are installed, and that PHP-FPM and Apache are installed. I tried moving /etc/https/conf.modules/PHP.conf. I've looked at /etc/https/php.conf and read all comments. I've restarted phpfpm and Apache via system ctl. I've restarted the system. How do I get Apache to connect to Phpfpm for PHP scripts? ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Hard drive to sleep
Hello Thank, However, I am not sure to peak every things. What does it mean HW-wise SW-wise? Sorry for my ignorance. By the way. I would like to make the hard drive sleeping. I can use hdparm -y /dev/sdx or hdparm -B 50 -S 36 /dev/sdx but I would it stays sleeping till next reboot, or that I manually wake it up. I mainly use a ssd (and not the hard drive). === Patrick DUPRÉ | | email: pdu...@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France === > Sent: Sunday, October 07, 2018 at 10:34 AM > From: "Ralf Corsepius" > To: users@lists.fedoraproject.org > Subject: Re: Hard drive to sleep > > On 10/7/18 9:29 AM, Patrick Dupre wrote: > > Hello, > > > > Is it safe to put a hard drive on sleep? > Depends on your use-case. > > SW-wise it is pretty save to "put to sleep" not frequently used drives > ("data"/"backup" drives). > > "Putting to sleep" drives hosting system-partitions or partitions > hosting your /home/ directory often is not possible. > "Putting to sleep" drives, which are hosting seldomly accessed "data" > partitions works. > > HW-wise you should check if your drive-hardware is suiteable to be > frequently "put to sleep/woken up". Most NAS- or server-class HDDs are > not, most desktop/notbook drives are. > > > I will have to wake it up, later. > > (I need to minimize the power consumption during a period of time) > > I am using the approach described in > https://wiki.archlinux.org/index.php/hdparm > to powerdown drives hosting "data" and "backup" partitions. > > Ralf > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org > ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: Hard drive to sleep
On 10/7/18 9:29 AM, Patrick Dupre wrote: Hello, Is it safe to put a hard drive on sleep? Depends on your use-case. SW-wise it is pretty save to "put to sleep" not frequently used drives ("data"/"backup" drives). "Putting to sleep" drives hosting system-partitions or partitions hosting your /home/ directory often is not possible. "Putting to sleep" drives, which are hosting seldomly accessed "data" partitions works. HW-wise you should check if your drive-hardware is suiteable to be frequently "put to sleep/woken up". Most NAS- or server-class HDDs are not, most desktop/notbook drives are. I will have to wake it up, later. (I need to minimize the power consumption during a period of time) I am using the approach described in https://wiki.archlinux.org/index.php/hdparm to powerdown drives hosting "data" and "backup" partitions. Ralf ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Hard drive to sleep
Hello, Is it safe to put a hard drive on sleep? I will have to wake it up, later. (I need to minimize the power consumption during a period of time) Thank. /dev/sdb: ATA device, with non-removable media Model Number: HGST HTS721010A9E630 Serial Number: JS100X620ES1ZS Firmware Revision: JB0OA3J0 Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0; Revision: ATA8-AST T13 Project D1697 Revision 0b Standards: Used: unknown (minor revision code 0x0028) Supported: 8 7 6 5 Likely used: 8 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors:16514064 LBAuser addressable sectors: 268435455 LBA48 user addressable sectors: 1953525168 Logical Sector size: 512 bytes Physical Sector size: 4096 bytes Logical Sector-0 offset: 0 bytes device size with M = 1024*1024: 953869 MBytes device size with M = 1000*1000: 1000204 MBytes (1000 GB) cache/buffer size = unknown Form Factor: 2.5 inch Nominal Media Rotation Rate: 7200 Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, no device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: *SMART feature set Security Mode feature set *Power Management feature set *Write cache *Look-ahead *Host Protected Area feature set *WRITE_BUFFER command *READ_BUFFER command *NOP cmd *DOWNLOAD_MICROCODE *Advanced Power Management feature set Power-Up In Standby feature set *SET_FEATURES required to spinup after power up SET_MAX security extension *48-bit Address feature set *Device Configuration Overlay feature set *Mandatory FLUSH_CACHE *FLUSH_CACHE_EXT *SMART error logging *SMART self-test *General Purpose Logging feature set *WRITE_{DMA|MULTIPLE}_FUA_EXT *64-bit World wide name *IDLE_IMMEDIATE with UNLOAD *WRITE_UNCORRECTABLE_EXT command *{READ,WRITE}_DMA_EXT_GPL commands *Segmented DOWNLOAD_MICROCODE *Gen1 signaling speed (1.5Gb/s) *Gen2 signaling speed (3.0Gb/s) *Gen3 signaling speed (6.0Gb/s) *Native Command Queueing (NCQ) *Host-initiated interface power management *Phy event counters *NCQ priority information *READ_LOG_DMA_EXT equivalent to READ_LOG_EXT Non-Zero buffer offsets in DMA Setup FIS *DMA Setup Auto-Activate optimization *Device-initiated interface power management In-order data delivery *Software settings preservation *SMART Command Transport (SCT) feature set *SCT Write Same (AC2) *SCT Error Recovery Control (AC3) *SCT Features Control (AC4) *SCT Data Tables (AC5) Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 168min for SECURITY ERASE UNIT. 170min for ENHANCED SECURITY ERASE UNIT. Logical Unit WWN Device Identifier: 5000cca836c63f67 NAA : 5 IEEE OUI: 000cca Unique ID : 836c63f67 Checksum: correct === Patrick DUPRÉ | | email: pdu...@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France === ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an
Re: copy /home on one laptop to another
On 10/7/18 6:45 AM, Ed Greshko wrote: > my ISP has deployed VLAN technology in their network Sorry to respond to my own post. In case anyone in interested, VLANs operate at Layer 2 of the OSI stack. Routers, on the other hand, operate at Layer 3. That is why, when 2 devices are on the same local network connected with a switch or hub you'll see it as a direct "1 Hop" connection. It would appear the same as if they were directory wired together in what you may refer to as a crossover connection. -- Cardinal Rule of Presentations: "Tell them what you are going to tell them, tell them, then tell them what you told them." ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org