Domain is currently unable to handle this request 500 - php

[domain] is currently unable to handle this request. When I try to install IPBoard, iv'e installed IPBoard multiple times on multiple servers and never had this issue, but maybe iv'e missed something out that I ain't noticed.
I have installed LAMP
Linux - Centos 7
Apache2
MySQL
PHP - 5.4
and then I allowed 10000 // 80 // 433 for Webmin and Apache and I put a simple home.html and info.php files in the /var/www/html/ directory and both load the pages correctly.
But when I upload the files from IPBoard to /var/www/html/ via FTP (filezilla) and load the webpage I just get 'Domain is currently unable to handle this request 500' and I'm not sure why maybe config in the PHP or something ?
Any help is great thanks!
Error log:
PHP Fatal error: Call to undefined function IPS\mb_internal_encoding() in /var/www/html/init.php on line 124
line 124:
mb_internal_encoding('UTF-8');

Related

Homebrew php module not loading

this is probably something simple but I have a problem with my local server. I set up a local server for building websites about 3 months ago and it worked fine until last evening the php will show as text instead of being executed by apache. I'm on a Mac. When I type:
$ apachectl -S
in terminal I get this error:
httpd: Syntax error on line 173 of /usr/local/etc/httpd/httpd.conf: Cannot load /usr/local/Cellar/php56/5.6.32_8/libexec/apache2/libphp5.so into server: dlopen(/usr/local/Cellar/php56/5.6.32_8/libexec/apache2/libphp5.so, 10): image not found
I have not been able to find a solution. Any help is appreciated.

Class PDO Not Found - Just upgraded to PHP 5.6 (Debian Wheezy)

I've been away from Laravel/Unix for some time but I have a project to setup and hit some snags. The most recent version of Laravel required PHP >=5.6 so I got that updated, setup my new project with laravel new project and made some modifications to the user/group permissions for storage/ and bootstrap/cache folders as normal.
I'm getting HTTP/500 error from Nginx so I checked the error log and I'm getting this in /var/log/nginx/error.log:
FastCGI sent in stderr: "PHP Message: PHP Fatal Error: Class PDO not found in /home/user/public_html/project/config/database.php on line 16" while reading upstream ... upstream: "fastcgi://unix:/var/run/php5-fpm.sock"
PHP Version 5.6.28-1~dotdeb+7.1
When I check /etc/php5/fpm/php.ini the normal extension=pdo.so and extension=pdo_mysql.so were not there so I added them to test it, however those are being requested in the conf.d folder and PHPINO shows those files being scanned/loaded.
However, later in PHPINFO results, PDO/PDO_MYSQL is not listed
UPDATE
I just attempted to use find /-name pdo.so and the same for pdo_mysql.so to find the path to those files and manually modified the loading configuration files to point to them correctly, started the server and that doesn't change anything.
I apologize this is long. I've spent a couple hours scouring to make sure I wasn't just missing something silly, and I may still be.
Any ideas overlfowers?
Well, after much consternation and fiddling I figured this one out...
There was a recursive / endless loop being created in the php-fpm.conf config as shown here:
include=/etc/php5/fpm/*.conf
This was causing PHP5-FPM .conf to attempt including itself, which I caught in a bootup error: Failed to load configuration file /etc/php5/fpm/php-fpm.conf from /etc/php5/fpm/php-fpm.conf
So I modified that to include=/etc/php5/fpm/conf.d/*.conf and everything started back up and now PDO/PDO_MSYQL is loading.

How to deploy Laravel 5.1 application to CentOS 6.4 VPS (or any!) server (PHP 5.5.32)

I have a Laravel 5.1 application that I'm trying to deploy on my CentOS 6.4 VPS server. The problem is that I am getting Error 500 when trying to load the page. When I check the error log it shows me this:
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/home/pams/pams_todo_list/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /home/pams/pams_todo_list/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87
I have changed the permissions in pams_todo_list/storage and pams_todo_list/vendors to 777 instead of 755 as a test, but no love.
This problem has been solved, thanks to FFForever and lagbox on the Laravel IRC channel.
My owner permissions were wrong. I had inadvertently uploaded the project using the root account. The fix was two fold. First, I setup suPHP as my php handler (I do have root access to this server) through the EasyApache3 UI in WHM. Then I set the owner:
chown -R pams:pams pams_todo_list
Now it works. I cannot say if it would have worked without setting up suPHP, however it was strongly recommended to set that up, so I did.

Laravel error - Unknown: Failed opening required '. ./public' (include_path='.;C:\php\pear\') in Unknown on line 0

I'm working on Laravel 5 and I'm using PHP function php -S localhost:8888 folder-name - t to show the web site.
Everything is working fine until I updated to Window 10. Now, I try to run the project in my browser, I get a blank page and this message in my cmd:
[Mon Aug 03 00:17:05 2015] PHP Fatal error: Unknown: Failed opening
required 'public' (include_path='.;C:\php\pear\') in Unknown on line 0
What is going wrong?
It sounds like a permissions issue. I don't have much experiencing working with Laravel on Windows, but I just fixed a similar issue on an Ubuntu box.
The source of trouble for me was that I installed composer as root, so I had to remove ./vendor, change the owner and group of ~/.composer to ubuntu:www-data (ubuntu is my user, www-data is the Nginx user), and rerun composer install. I also made sure the ./storage permissions were recursively set to 775, and change the owner of my entire Laravel project to ubuntu:www-data.
Some stuff will definitely be different if you're on Windows, but hope this helps!
It is a permission error actually. But if you try to run directly from your localhost server, it will work.
On windows 10 PHP Server will not be able to access PHP Pear extension that is why it is showing this error.
If you are running XAMPP. you have to go to your apache localhost with http://localhost/laravel-folder/public.

mod_geoip + Apache 2.2 in fcgid mode

Is there a way to get mod_geoip working when Apache 2.2 is running in fcgid mode?
I just installed it but get the following php error when I try a test:
Fatal error: Call to undefined function apache_note() in /var/www/abc.com/geoip/index.php on line 4
I found a way around it, when mod_geoip is installed it enables some new server variables that can be accessed directly in PHP or .htaccess

Categories