Difference between pages "Steam" and "Package:PHP"

(Difference between pages)
m (note that page needs updates)
 
m (add clock info and other stuff)
 
Line 1: Line 1:
{{PageNeedsUpdates}}
+
{{Ebuild
 +
|Summary=The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs
 +
|CatPkg=dev-lang/php
 +
|Maintainer=
 +
|Homepage=http://php.net/
 +
}}
 +
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.
  
Steam is a content delivery system for linux gaming.
+
== Install ==
 +
=== Use Flags ===
 +
By default php does not have the cgi, FPM/FastCGI, mysql, mysqli, apache2 use flag turned on.  Many packages are php aware, set the php global use flag so other applications can interact with php.
  
== install part 1 ==
+
{{file|name=/usr/portage/make.conf|desc=insert desired use flags|body=
funtoo & gentoo have ebuilds in the gamerlay overlay. the steam-meta ebuild was removed.
+
USE="php mysql mysqli apache2 fpm cgi......"
 +
}}
  
<console>
+
=== Emerge ===
###i## layman -a gamerlay
+
<console>###i## emerge php</console>
###i## layman -S
+
###i## emerge steam-launcher
+
</console>
+
  
== install part 2 ==
+
== Fpm ==
steam has its own internal package management systemPortage will not track its files, or games installed. the ebuild simply pulls in the steam installer, to run the steam installer:
+
Fpm is a php handlerIt is php daemonized.
  
<console>###i## /usr/bin/steam</console>
+
=== init ===
  
the installer will prompt you with several questions, once done running the installer command will load the latest version of steam.
+
To start the php-fpm service:
 +
<console>###i## rc-service php-fpm start</console>
  
== Troubleshooting ==
+
To start the php-fpm service at boot:
=== Steam segfaults after 2nd start! ===
+
<console>###i## rc-update add php-fpm</console>
I do not know much about this behaviour, but I found a workaround.
+
If you saved your password, you need to backup all your games and reset Steam.
+
<console>
+
$ ##i##mkdir -p ~/backup
+
$ ##i##mv ~/.local/share/Steam/steamapps ~/backup
+
$ ##i##steam --reset
+
$ ##i##mv ~/backup ~/.local/share/Steam/steamapps
+
</console>
+
Start Steam again, enter username and password, but do not check "Remember my password", it is the thing that causes all the troubles. You will need to enter password every time you start Steam, but that is the only solution I found.
+
  
=== My screen in Dota 2 (and other Source games) is all red! ===
+
=== Configuration ===
<console>
+
 
# ##i##echo 'media-libs/libtxc_dxtn abi_x86_32' >> /etc/portage/package.use
+
Php-fpm is controlled by <code>/etc/php/fpm-php*.*/php-fpm.conf</code> and <code>/etc/php/fpm-php*.*/php.ini</code>
# ##i##emerge media-libs/libtxc_dxtn
+
 
</console>
+
==== tips ====
 +
==== Change Php Fpm's User/Group ====
 +
Making php-fpm workers work as the apache user makes most apache permission configurations work with out a bother.
 +
{{file|name=/etc/php/fpm-php5.6/php-fpm.conf|lang=|desc=make workers run as another user|body=
 +
;user = nobody
 +
;group = nobody
 +
user = apache
 +
group = apache
 +
}}
 +
 
 +
==== Limiting Workers ====
 +
Limit worker numbers to 20 max.  When your server is behind a reverse proxy it doesn't need many workers.
 +
{{file|name=/etc/php/fpm-php5.6/php-fpm.conf|lang=|desc=limit workers|body=
 +
pm.max_children = 20
 +
pm.start_servers = 1
 +
pm.min_spare_servers = 1
 +
pm.max_spare_servers = 19
 +
}}
 +
 
 +
==== Date & Time ====
 +
Set the time and date for php web applications.  [http://php.net/manual/en/timezones.php full list of php timezones]
 +
{{file|name=/etc/php/fpm-php5.6/php-fpm.conf|lang=|desc=limit workers|body=
 +
[Date]
 +
; Defines the default timezone used by the date functions
 +
; http://php.net/date.timezone
 +
;date.timezone =
 +
}}
 +
 
 +
the same procedures can be done for other php implementations at
 +
*/etc/php/cli-php5.6/php.ini
 +
*/etc/php/apache2-php5.6/php.ini
 +
*/etc/php/cgi-php5.6/php.ini
 +
 
 +
=== Media ===
 +
==== Programming ====
 +
{{#widget:YouTube|playlist=PL00694B0DAD604DE6}}
 +
 
 +
{{EbuildFooter}}

Revision as of 21:32, March 10, 2015

dev-lang/php


Source Repository:Funtoo Overlay
Homepage

Summary: The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs

Use Flags

cli
Enable CLI SAPI
embed
Enable embed SAPI
enchant
Add supports Enchant spelling library.
fileinfo
Add fileinfo extension support
filter
Add filter extension support
fpm
Enable the FastCGI Process Manager SAPI
gd
Adds support for gd (bundled with PHP)
hash
Enable the hash extension
json
Enable JSON support
ldap-sasl
Add SASL support for the PHP LDAP extension
mysqlnd
Use native driver for mysql, mysqli, PDO_Mysql
libmysqlclient
Use libmyslclient driver for mysql, mysqli, PDO_Mysql (not recommended)
intl
Enables the intl extension for extended internalization support
opcache
Enables built-in opcode cache, replacing pecl-apc et.al
pdo
Enable the bundled PDO extensions
phar
Enables the phar extension to provide phar archive support
sqlite2
Add sqlite2 support. Will be removed
xmlreader
Enable XMLReader support
xmlwriter
Enable XMLWriter support
xslt
Enable the XSL extension
vpx
Enable webp suppoprt for GD
zip
Enable ZIP file support

News

Drobbins

Pre-built kernels!

Funtoo stage3's are now starting to offer pre-built kernels for ease of install. read more....
12 May 2015 by Drobbins
Drobbins

Better Experiences: Ego and Vim

Info on Funtoo's new personality tool called 'ego', and user-focused updates to vim's defaults.
27 April 2015 by Drobbins
Drobbins

How We're Keeping You At the Center of the Funtoo Universe

Read about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
10 April 2015 by Drobbins
View More News...

PHP

Tip

This is a wiki page. To edit it, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.

Install

Use Flags

By default php does not have the cgi, FPM/FastCGI, mysql, mysqli, apache2 use flag turned on. Many packages are php aware, set the php global use flag so other applications can interact with php.

/usr/portage/make.conf - insert desired use flags
USE="php mysql mysqli apache2 fpm cgi......"

Emerge

# emerge php

Fpm

Fpm is a php handler. It is php daemonized.

init

To start the php-fpm service:

# rc-service php-fpm start

To start the php-fpm service at boot:

# rc-update add php-fpm

Configuration

Php-fpm is controlled by /etc/php/fpm-php*.*/php-fpm.conf and /etc/php/fpm-php*.*/php.ini

tips

Change Php Fpm's User/Group

Making php-fpm workers work as the apache user makes most apache permission configurations work with out a bother.

/etc/php/fpm-php5.6/php-fpm.conf - make workers run as another user
;user = nobody
;group = nobody
user = apache
group = apache

Limiting Workers

Limit worker numbers to 20 max. When your server is behind a reverse proxy it doesn't need many workers.

/etc/php/fpm-php5.6/php-fpm.conf - limit workers
pm.max_children = 20
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 19

Date & Time

Set the time and date for php web applications. full list of php timezones

/etc/php/fpm-php5.6/php-fpm.conf - limit workers
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

the same procedures can be done for other php implementations at

  • /etc/php/cli-php5.6/php.ini
  • /etc/php/apache2-php5.6/php.ini
  • /etc/php/cgi-php5.6/php.ini

Media

Programming