Hello, I want to enable php in MITB to use a register page,
I’ve followed the instructions
add
location ~* .php$ {
include fastcgi_params;
fastcgi_pass php-fpm;
fastcgi_index index.php;
}
then cd /root mailinabox/tools/webupdate nginx -s reload
I don’t have any errors, but my php pages (even phpinfo) aren’t displaying (sourcecode is blank too)
What can I do ?
Thanks
Can you please specify which of the two scenarios you need to accomplish.
Have random users sign up for their own email account.
Have the ability for an ‘admin’ to register users for email accounts. (So that they do not have direct admin access to your admin area)
There is a better option available if your true goal is #2.
In the meantime perhaps @murgero will be able to shed some light on the script not working properly. I believe he wrote it before PHP7 was in wide use, but am not certain.
P.S. I too have tried to install this and am not successful either, though I know that others have been able to in the past.
EDIT: I’m so sorry, I didn’t noticed that I told you that I wanted to do the #2 option but it’s the #1! I want that random user can registrate themselves in MIAB
Sure! But it seems that the “MySql part” of the script isn’t working.
Like I said, when I press the “Submit” button, I don’t get any errors or success message, it just redirect to the index.php page.
In the directory where you are storing the script, please update:
git pull origin master I made a few modifications which may resolve your issue.
Edit: Please let me rewrite this script. The quality of this is not up to my new standards. If you can give me a couple days, I can work something out here.