SYSTEM WARNING: session_start()...No such file or directory.
When installing Mantis in a shared hosting environment, you may get an error message like this one on the Mantis login panel:
> SYSTEM WARNING: session\_start() [function.session-start]: open(/var/php\_sessions/sess\_ac5acafaecb612345675d30123456789, O\_RDWR) failed: No such file or directory (2)
Installing memcached to use it with php
February 14, 2015
· admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Ubuntu 12.04
memcache
PHP
apache
Ubuntu 14.04
Installing Memcached with php support in Ubuntu is a matter of a few steps:
sudo apt-get install memcached php5-memcached
sudo service apache2 restart
You can test if memcached is active by running this command:
echo "stats settings" | nc localhost 11211
You will end up with a response like this one:
> STAT maxbytes 67108864
> STAT maxconns 1024
> STAT tcpport 11211
> STAT udpport 11211
> STAT inter 127.0.0.1
> ...
> STAT item\_size\_max 1048576
> STAT maxconns\_fast no
> STAT hashpower\_init 0
> STAT slab\_reassign no
> STAT slab\_automove 0
> END
How to change the maximum upload file size in PHP
You can increase the maximum upload file size for only one application by creating a php.ini file in the directory where the file upload PHP script is. Add the following lines:
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
It can also be changed system wide by editing the file /etc/php5/apache2/php.ini which is the global php.ini file. Modify the two lines listed above and restart apache.
WordPress "Internal server error"
You may experience an "Internal server error" on the home page of your site if you are a customer of iPower. You cannot access the home page nor login to WordPress.
Simply edit the php.ini files located in the root directory of WordPress and in the wp-admin subdirectory to fix this issue. If they do not exist, create them. Add a line containing "cgi.force\_redirect = Off", without the double quotes. You will need to update or create these files either using iPower's file manager or FTP.
Tags
- All
- 3D Printing
- ABS
- Android
- apache
- Arduino
- ARPI600
- ASUS
- automation
- Battlefield
- Blogroll
- Certificate
- Chrome
- Cree
- Cura
- Database
- Debian
- Eclipse
- Electronic Component
- ESP8266
- Firewall
- Games
- GCode
- General
- GIT
- GitHub
- GO2NFC
- Handbrake
- Hardware
- Internet of Things
- IoT
- Java Applets
- Linux
- MAC OS X
- Management
- Mantis
- Marlin
- memcache
- Mountain Lion
- MySQL
- Networking
- NodeMCU
- NVIM
- object
- Octoprint
- openssl
- Photos
- PHP
- phpMyAdmin
- PN532
- postfix
- Prusa Mendel
- Ralink
- Raspberry PI
- RaspberryPI
- Raspbian
- Router
- RT5572
- SSH
- STM32
- Tomcat
- Trinket
- Ubuntu
- Ubuntu 11.04
- Ubuntu 11.10
- Ubuntu 12.04
- Ubuntu 14.04
- Ubuntu 15.04
- Ubuntu 20.04
- Unity
- Unix
- Video
- Virtual Box
- Wheezy
- WiFI
- Windows
- Windows 8
- Wink
- WordPress