Since I installed suPHP (to be able to run Wordpress properly) I am getting "500 Internal Server Error". Not when I load the WP index.php
, but when I load phpinfo.php
(just the phpinfo function). Also phpMyAdmin can no longer log in (Chrome brings up a "save file as" dialogue instead).
So I found this answer. Only now the php.ini
file seems to be causing trouble, and every page throws a 500 error, even index.php
which was loading before. Here is my php.ini
in full, as suggested by that site, only it breaks everything for some reason:
register_globals = On
allow_url_fopen = On
upload_max_filesize = 80M
post_max_size = 80M
memory_limit = 80M
upload_tmp_dir = 80M
max_execution_time = 20000
and here is the .htaccess
:
suPHP_ConfigPath /home/computer/Documents/Cf
<Files php.ini>
order allow,deny
deny from all
</Files>
I'm on Ubuntu Desktop 12.10. My virtualhost is pointing to my ~/Documents
directory (everything was working fine before installing suPHP).
This is my first time setting up LAMP (I've been using repackaged MAMP/LAMPP until now... I want to learn how to manage a full LAMP setup, but I've been fighting with this thing all day and not being able to get any work done).
EDIT: Changing ownership (sudo chown -R www-data
) of all the files to Apache enables me to write files from script... but still I'm unable to figure out what goes wrong with suPHP. I've disabled it until this is resolved.