Systems Status

Announce? RSS Feed RSS

Blog?RSS Feed RSS

Help Topics

Deschutes Facilities

Campus Facilities

User Account Info

Roundcube Mail

Contact Systems

ipv6 ready

Misc

Introduction

User home pages are served from ix.cs.uoregon.edu. PHP scripts with the .php extension will be executed as CGI scripts automatically. This make makes it appear that they are run with mod_php, but there are some restrictions listed under Pitfalls.

Runtime Configuration

You can change some PHP default values at runtime by putting your settings in a file named .user.ini and placed in the directory with your php files. Here are some setting that you may need to change with the default values in parenthesis.

memory_limit = 32M           ; Maximum amount of memory a script may consume (8MB)
upload_max_filesize = 10M    ; Maximum allowed size for uploaded files. (10MB)

You may want to create an info.php file that will tell you the current settings.

<?php
// Display a list of PHP compile-time features
phpinfo();

Pitfalls

  • You must pay attention to file permissions, see suEXEC pages.
  • Your individual error logs will be in ix:/var/log/apache/userlogs/username.errors
  • By default all php sessions use PHPSESSIONID as their session cookie. Using this means that only one application can setup a session on the server.

See Also

References

PHP: .user.ini files (PHP Manual)

Edited: November 05, 2014, at 09:48 am
Copyright © 2024, University of Oregon, All rights reserved
Privacy Policy