Project

General

Profile

Bug #247

php configuration

Added by Hervé Riboulot almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2010-09-22
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:

Description

Amp is installed on a oi_147 system as well as webstackui and phpmyadmin from opensolaris.org/webstack repository.

It is impossible to execute a script. Messages follow:

Warning: Unknown: SAFE MODE Restriction in effect. The script whose uid is 1 is not allowed to access /var/apache2/2.2/htdocs/phpinfo1403009942917930138.php owned by uid 101 in Unknown on line 0

Warning: Unknown: failed to open stream: Resource temporarily unavailable in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/apache2/2.2/htdocs/phpinfo1403009942917930138.php' (include_path='.:') in Unknown on line 0

Note: home directories for users are also not properly configured.


Files

output.html (41.9 KB) output.html Hervé Riboulot, 2010-10-02 12:23 AM

History

#1

Updated by Hervé Riboulot almost 9 years ago

note:

The /etc/php/5.2/php.ini is configured as follows:

; Safe Mode
;
safe_mode = Off
; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off
#2

Updated by Albert Lee almost 9 years ago

  • Assignee set to Sevan Janiyan

Just to verify since you have webstack stuff installed as well, what's the package version providing php and mod_php? pkg search -l <path to file>

Assigning to Sevan because he signed up for SFW. ;)

#3

Updated by Hervé Riboulot almost 9 years ago

Hello Sevan (thank you for taking care of SFW!). Here are the outcomes (pkg search -l and pkg info | grep php):

server:

PHP Server 5.2: pkg:
Name : SUNWphp52
renamed :
FMRI : pkg:,5.11-0.133:20100914T030550Z

modules:

PHP Server 5.2 module for Apache Web Server V2.2:
SUNWapch22m-php5
FMRI : pkg:,5.11-0.98:20080916T165700Z
Name : web/server/apache-22/module/apache-php5
FMRI : pkg:,5.11-0.147:20100914T030737Z

APC extension module for PHP: pkg:
FMRI : pkg:,5.11-0.147:20100914T030706Z

MySQL extension module for PHP: pkg:

Name: SUNWphp52-mysql
Renamed :
FMRI : pkg:,5.11-0.133:20100914T030712Z
Name : SUNWphp524
Renamed :
FMRI : pkg:,5.11-0.130:20091219T025323Z
Name : SUNWphp524-mysql

FMRI : pkg:,5.11-0.130:20091219T025333Z
Name : web/php-52/extension/php-mysql
FMRI : pkg:,5.11-0.147:20100914T030707Z

environments:

Same configuration applied to svn_134 & OI_147:

- svn_134: Apache + PhP + MySql are in working order
- OI_147: Apache and MySql are in working order . PhP -> see previously

#4

Updated by Sevan Janiyan almost 9 years ago

hiya
lets see where the problem lies. create a file (e.g test.php) & place the following inside:
phpinfo ();
?>

then from the shell run
/usr/php/5.2/bin/php-cgi /path/to/test.php > output.html

reply back with output.html attached along with any output to the terminal from when you ran the command

#5

Updated by Sevan Janiyan almost 9 years ago

That should be

<?php
phpinfo();
?>

#6

Updated by Hervé Riboulot almost 9 years ago

Hello Sevan,

Thank you for your quick reply. Following the execution of /usr/php/5.2/bin/php-cgi, it appears that without any change in the configuration since my previous message PhP is now running properly on Apache (and PhPMyAdmin can then be launched). Weird and confusing ...

Attached is the html file.

Output to the terminal follows:

Herve@OpenIndiana:~$ /usr/php/5.2/bin/php-cgi /home/Herve/public_html/test.php >output.html
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/apc.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/apc.so: symbol compiler_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/bz2.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/bz2.so: symbol core_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/curl.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/curl.so: symbol core_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: ftp: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/gd.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/gd.so: symbol core_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: gettext: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/iconv.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/iconv.so: symbol sapi_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/imap.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/imap.so: symbol file_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/ldap.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/ldap.so: symbol executor_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/mysql.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/mysql.so: symbol core_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/mysqli.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/mysqli.so: symbol executor_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/openssl.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/openssl.so: symbol core_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/pdo.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/pdo.so: symbol compiler_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/pdo_sqlite.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/pdo_sqlite.so: symbol executor_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: snmp: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/sqlite.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/sqlite.so: symbol executor_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/5.2/zts-modules/tidy.so' - ld.so.1: php-cgi: fatal: relocation error: file /usr/php/5.2/zts-modules/tidy.so: symbol core_globals_id: referenced symbol not found in Unknown on line 0
PHP Warning: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /home/Herve/public_html/test.php on line 3

#7

Updated by Sevan Janiyan almost 9 years ago

  • Status changed from New to Closed

User reported issue as resolved

Also available in: Atom PDF