Tribe Support

In this group #Anahita Tribe members provide support and help each other out. All posts should be public in this group. #support

Stories

Connor Summeril

Connor Summeril commented on the topic

Assistance with SMTP Settings

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page...

Read More

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page.Unfortunately, when I put in my information for an admin account, I get my browser saying the page is not found and no confirmation email is sent. After reading through some support posts I found the exact same behavior described here.

https://www.getanahita.com/topics/169108-no-user-signup-page?permalink=169237

The solution appeared to be changing SMTP settings but I am unsure how to set that up. I have the following as my SMTP settings with my Mailgun account:

   /* Mailer Settings */

   var $mailer = 'smtp';

   var $mailfrom = 'noreply@mail.testopenhmi.com';

   var $fromname = 'Anahita Website';

   var $sendmail = '/usr/sbin/sendmail';

   /* SMTP Settings */

   var $smtp_user = 'postmaster@mail.testopenhmi.com';

   var $smtp_pass = '********************';

   var $smtp_host = 'smtp.mailgun.org';

   var $smtp_secure = 'ssl';

   var $smtp_port = 465;

I have tried a few different configurations, different ports, and different settings for the $mailer variable. None of which seem to work.I am running my server on a Debian 10 system, as far as I could tell it does not come preconfigured with a sendmail binary. I tried installing sendmail and setting up some configuration but went down a path that did not seem correct and never got it working.Any general tips / advice on how to debug this and check errors? I have enabled debugging in my configuration already like this:

   /* Debuging Settings */

   var $debug = 1;

   var $error_reporting = 30719;

I still am not seeing error codes when I do this. Just looking for some help with SMTP and maybe some example configuration settings.Thank you! Read Less
That sounds good thanks for the update!
Connor Summeril

Connor Summeril and Rastin Mehr commented on the topic

Assistance with SMTP Settings

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page...

Read More

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page.Unfortunately, when I put in my information for an admin account, I get my browser saying the page is not found and no confirmation email is sent. After reading through some support posts I found the exact same behavior described here.

https://www.getanahita.com/topics/169108-no-user-signup-page?permalink=169237

The solution appeared to be changing SMTP settings but I am unsure how to set that up. I have the following as my SMTP settings with my Mailgun account:

   /* Mailer Settings */

   var $mailer = 'smtp';

   var $mailfrom = 'noreply@mail.testopenhmi.com';

   var $fromname = 'Anahita Website';

   var $sendmail = '/usr/sbin/sendmail';

   /* SMTP Settings */

   var $smtp_user = 'postmaster@mail.testopenhmi.com';

   var $smtp_pass = '********************';

   var $smtp_host = 'smtp.mailgun.org';

   var $smtp_secure = 'ssl';

   var $smtp_port = 465;

I have tried a few different configurations, different ports, and different settings for the $mailer variable. None of which seem to work.I am running my server on a Debian 10 system, as far as I could tell it does not come preconfigured with a sendmail binary. I tried installing sendmail and setting up some configuration but went down a path that did not seem correct and never got it working.Any general tips / advice on how to debug this and check errors? I have enabled debugging in my configuration already like this:

   /* Debuging Settings */

   var $debug = 1;

   var $error_reporting = 30719;

I still am not seeing error codes when I do this. Just looking for some help with SMTP and maybe some example configuration settings.Thank you! Read Less
Hi Rastin.

I tried the debug parameters in my configuration. I see that there is a log directory set in my local Anahita installation, but the logs do not get populated. I saw some initial permission issues after e... Read More
Hi Rastin.

I tried the debug parameters in my configuration. I see that there is a log directory set in my local Anahita installation, but the logs do not get populated. I saw some initial permission issues after enabling the "$error_reporting" variable and was able to resolve by changing the owner of the Anahita space to www-data.

Are you still working on the release to not send an email for the initial admin login? Last time I tried, (this past weekend) I was still unable to login to the admin account.

Thanks! Read Less
Connor, I checked the code and we had already implemented the concept of not sending out an email notification for the first user. You can see the code here: https://github.com/anahitasocial/anahita/blob/master/src/co... Read More
Connor, I checked the code and we had already implemented the concept of not sending out an email notification for the first user. You can see the code here: https://github.com/anahitasocial/anahita/blob/master/src/components/com_people/controllers/signup.php#L80

In Anahita 4.6.0 we have added a site:signup command which allows signing up the first user from the CLI, rather than the GUI. I think I am going to include it in the Anahita 4.5.2 Birth release. I'll see if I can do it this week and put out an announcement so you can help us with testing. Read Less
Most of the time, people encounter problems while installing and configuring Anahita with either file permission or Nginx configuration. You did right, which was trying to get an error message from the system and star... Read More
Most of the time, people encounter problems while installing and configuring Anahita with either file permission or Nginx configuration. You did right, which was trying to get an error message from the system and start resolving the issue from there. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Birth Release Command installing Embryo

Rastin: the command provided in instructions for installing a Stable Package (Birth release) 

composer create-project anahita/project myproject

seems to be installing 4.5.2 Embryo Release

Please guide

I just tried:

$ composer create-project anahita/project myproject

and it shows Anahita 4.5.1 Birth Release
Rastin Mehr

Rastin Mehr published a new Article

Preventing a php shell upload attack in your custom apps

A common form of attacks in applications that allow file upload is when you enable unrestricted file upload without checking the file type against a restricted list of mime-types in your back-end c...

Read More

A common form of attacks in applications that allow file upload is when you enable unrestricted file upload without checking the file type against a restricted list of mime-types in your back-end code. 

In the Anahita default installation, the only file uploads happen when a user uploads an avatar, cover image, or photo. In all cases, only certain mime types are allowed. If you are developing custom applications for Anahita that enable file uploads for videos, sound files, or documents, you MUST check the file type in your back-end code and allow only a specific list of mime-types. 

Otherwise, someone could try uploading a PHP shell file that exposes critical information about your server.

Another important tip is to use AWS S3 for storing your uploaded files. The storage is much cheaper, and the performance is much better, but a PHP shell file cannot execute in an AWS S3 bucket. Anahita, by default, stores the uploaded files in the assets directory in the root of Anahita. Use that option only on your development machine for testing your apps. On your Staging and Production servers, DO NOT store uploaded files in the root of your Anahita installation; instead, put all the files in AWS S3 buckets.

#Anahita #AWSS3 #Security #AppDevelopment #MimeTypes

Read Less
Connor Summeril

Connor Summeril and Rastin Mehr commented on the topic

Assistance with SMTP Settings

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page...

Read More

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page.Unfortunately, when I put in my information for an admin account, I get my browser saying the page is not found and no confirmation email is sent. After reading through some support posts I found the exact same behavior described here.

https://www.getanahita.com/topics/169108-no-user-signup-page?permalink=169237

The solution appeared to be changing SMTP settings but I am unsure how to set that up. I have the following as my SMTP settings with my Mailgun account:

   /* Mailer Settings */

   var $mailer = 'smtp';

   var $mailfrom = 'noreply@mail.testopenhmi.com';

   var $fromname = 'Anahita Website';

   var $sendmail = '/usr/sbin/sendmail';

   /* SMTP Settings */

   var $smtp_user = 'postmaster@mail.testopenhmi.com';

   var $smtp_pass = '********************';

   var $smtp_host = 'smtp.mailgun.org';

   var $smtp_secure = 'ssl';

   var $smtp_port = 465;

I have tried a few different configurations, different ports, and different settings for the $mailer variable. None of which seem to work.I am running my server on a Debian 10 system, as far as I could tell it does not come preconfigured with a sendmail binary. I tried installing sendmail and setting up some configuration but went down a path that did not seem correct and never got it working.Any general tips / advice on how to debug this and check errors? I have enabled debugging in my configuration already like this:

   /* Debuging Settings */

   var $debug = 1;

   var $error_reporting = 30719;

I still am not seeing error codes when I do this. Just looking for some help with SMTP and maybe some example configuration settings.Thank you! Read Less
Thanks for the quick response!

Yes I do see the home page when I go to the domain.
When I click the login page it sdoes take me to the login page, and I can click the signup link from there as well, which takes me... Read More
Thanks for the quick response!

Yes I do see the home page when I go to the domain.
When I click the login page it sdoes take me to the login page, and I can click the signup link from there as well, which takes me to the admin sign up page.

Here is my Nginx configuration. I have enabled the index.php$args parameter because I've seen that in some other support tickets. Let me know if you see anything out of order:

+++++++++++++++++++++++++++++++++++
server {

index index.php index.html index.htm;

root /home/anahita-admin/openhmi/www/;

server_name testopenhmi.com;

location / {
try_files $uri $uri/ /index.php$args;
}

location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}


listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/testopenhmi.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/testopenhmi.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
if ($host = testopenhmi.com) {
return 301 https://$host$request_uri;
} # managed by Certbot


listen 80 default_server;
listen [::]:80 default_server ipv6only=on;

server_name testopenhmi.com;
return 404; # managed by Certbot

}
+++++++++++++++++++++++++

Thank you for letting me know about an update. I'd love to help debug any of this, I'd be happy to give you a cloud instance just like I have and test on. I have a uniform setup script to ensure that my setup is consistent between server nodes. Feel free to DM or email me. Read Less
Rastin Mehr liked this
If you can navigate through those pages, it means your Nginx config is working as expected. It seems like the mail function isn't working and it is breaking the application workflow. With the new update, you'll still ... Read More
If you can navigate through those pages, it means your Nginx config is working as expected. It seems like the mail function isn't working and it is breaking the application workflow. With the new update, you'll still need to get the mail working, but at least you'll be able to log in.

I'm going to add you to the Anahita project group. I normally post an update and ask the followers to download and test new releases. I'll try to have the new release ready this weekend. Read Less
Sounds good thank you! I will certainly test out the new release when it comes.
Rastin Mehr liked this
Connor, I am checking the code and it indeed logs in the first user and super admin to their account. I've only made subtle improvements in the code that I will be pushing to the master branch soon, but the overall lo... Read More
Connor, I am checking the code and it indeed logs in the first user and super admin to their account. I've only made subtle improvements in the code that I will be pushing to the master branch soon, but the overall logic is the same. I don't think the mail is causing the issue here.

Here is another suggestion. Set these two variables in the configuration.php file:

var $debug = '1';
var $error_reporting = '30719';

this way you can hopefully get some error messages either in the browser or in your server's php_error.log file. Read Less
Connor Summeril

Connor Summeril and Rastin Mehr commented on the topic

Assistance with SMTP Settings

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page...

Read More

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page.Unfortunately, when I put in my information for an admin account, I get my browser saying the page is not found and no confirmation email is sent. After reading through some support posts I found the exact same behavior described here.

https://www.getanahita.com/topics/169108-no-user-signup-page?permalink=169237

The solution appeared to be changing SMTP settings but I am unsure how to set that up. I have the following as my SMTP settings with my Mailgun account:

   /* Mailer Settings */

   var $mailer = 'smtp';

   var $mailfrom = 'noreply@mail.testopenhmi.com';

   var $fromname = 'Anahita Website';

   var $sendmail = '/usr/sbin/sendmail';

   /* SMTP Settings */

   var $smtp_user = 'postmaster@mail.testopenhmi.com';

   var $smtp_pass = '********************';

   var $smtp_host = 'smtp.mailgun.org';

   var $smtp_secure = 'ssl';

   var $smtp_port = 465;

I have tried a few different configurations, different ports, and different settings for the $mailer variable. None of which seem to work.I am running my server on a Debian 10 system, as far as I could tell it does not come preconfigured with a sendmail binary. I tried installing sendmail and setting up some configuration but went down a path that did not seem correct and never got it working.Any general tips / advice on how to debug this and check errors? I have enabled debugging in my configuration already like this:

   /* Debuging Settings */

   var $debug = 1;

   var $error_reporting = 30719;

I still am not seeing error codes when I do this. Just looking for some help with SMTP and maybe some example configuration settings.Thank you! Read Less
Okay, I have tried with the full domain name.

I've tried the default mailer with "$mailer = 'mail'".

I've tried to input my MailGun credentials.

Each step I've dropped the database and reran the site:init co... Read More
Okay, I have tried with the full domain name.

I've tried the default mailer with "$mailer = 'mail'".

I've tried to input my MailGun credentials.

Each step I've dropped the database and reran the site:init command. I still see the same behavior. After I attempt to sign up as admin, I get redirected to a page my browser says doesn't exist, no mail gets sent, and not account gets created.

Could this be a problem with my OS? I'm using Debian 10 but I don't know what system is standard for Anahita.

Could it be my firewall settings? I currently have the installation on a cloud device and I only allow traffic from my own IP. I doubt that the mail function needs to accept traffic from anywhere on the outside though. Thoughts? Read Less
Alright, to be more specific. Do you see the homepage? When you click on the Login button, does it take you to the login page? When you click on the signup link, does it take you to the signup page? The reason I ask ... Read More
Alright, to be more specific. Do you see the homepage? When you click on the Login button, does it take you to the login page? When you click on the signup link, does it take you to the signup page? The reason I ask is to make sure that your Nginx config is working properly. Read Less
By the way, I'm going to make some changes to the first signup workflow this weekend. I will remove the part that mails out a login link for the first super admin and instead log the first-time user in immediately aft... Read More
By the way, I'm going to make some changes to the first signup workflow this weekend. I will remove the part that mails out a login link for the first super admin and instead log the first-time user in immediately after the signup. It seems like many people are having trouble with this, and it is understandable because it is unclear whether the problem is with either Anahita or server/OS configurations at this stage. I'll tag it as a 4.5.2 release. Read Less
Rastin Mehr

Rastin Mehr and Connor Summeril commented on the topic

Assistance with SMTP Settings

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page...

Read More

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page.Unfortunately, when I put in my information for an admin account, I get my browser saying the page is not found and no confirmation email is sent. After reading through some support posts I found the exact same behavior described here.

https://www.getanahita.com/topics/169108-no-user-signup-page?permalink=169237

The solution appeared to be changing SMTP settings but I am unsure how to set that up. I have the following as my SMTP settings with my Mailgun account:

   /* Mailer Settings */

   var $mailer = 'smtp';

   var $mailfrom = 'noreply@mail.testopenhmi.com';

   var $fromname = 'Anahita Website';

   var $sendmail = '/usr/sbin/sendmail';

   /* SMTP Settings */

   var $smtp_user = 'postmaster@mail.testopenhmi.com';

   var $smtp_pass = '********************';

   var $smtp_host = 'smtp.mailgun.org';

   var $smtp_secure = 'ssl';

   var $smtp_port = 465;

I have tried a few different configurations, different ports, and different settings for the $mailer variable. None of which seem to work.I am running my server on a Debian 10 system, as far as I could tell it does not come preconfigured with a sendmail binary. I tried installing sendmail and setting up some configuration but went down a path that did not seem correct and never got it working.Any general tips / advice on how to debug this and check errors? I have enabled debugging in my configuration already like this:

   /* Debuging Settings */

   var $debug = 1;

   var $error_reporting = 30719;

I still am not seeing error codes when I do this. Just looking for some help with SMTP and maybe some example configuration settings.Thank you! Read Less
One reliable way is to just use the PHP mail function var $mailer = 'mail'; otherwise I suggest that you use an external SMTP service such as Mailgun.

Also, make sure that $client_domain has the full domain value ... Read More
One reliable way is to just use the PHP mail function var $mailer = 'mail'; otherwise I suggest that you use an external SMTP service such as Mailgun.

Also, make sure that $client_domain has the full domain value such as https://www.yourdomain.com Read Less
I have tried using 'mail' as the $mailer variable. That did not seem to work. I did a a site re-initialization as well after setting that variable but that didn't seem to work either. I always still had the same behav... Read More
I have tried using 'mail' as the $mailer variable. That did not seem to work. I did a a site re-initialization as well after setting that variable but that didn't seem to work either. I always still had the same behavior.

What does using and external SMTP service such as Mail look like? I have a Mailgun account set up and I have input those parameters into the configuration.php what else needs to be done on the system? I'm not looking for exact specifics but I'm missing a step here.

I do a site re-initialization between each configuration change, is there anything more that needs to be done?

Thanks! Read Less
Yes, all you need is to add the MailGun credentials to the configuration file so Anahita can send out emails. Then drop the database and redo the site:ini command. Let me know how it goes.
Connor Summeril

Connor Summeril started a topic

Assistance with SMTP Settings

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page...

Read More

Hello,

I was able to set up my Anahita installation on my cloud machine (Digital Ocean Droplet) and get Nginx configured correctly so that I could see the landing page and see the Admin sign in page.Unfortunately, when I put in my information for an admin account, I get my browser saying the page is not found and no confirmation email is sent. After reading through some support posts I found the exact same behavior described here.

https://www.getanahita.com/topics/169108-no-user-signup-page?permalink=169237

The solution appeared to be changing SMTP settings but I am unsure how to set that up. I have the following as my SMTP settings with my Mailgun account:

   /* Mailer Settings */

   var $mailer = 'smtp';

   var $mailfrom = 'noreply@mail.testopenhmi.com';

   var $fromname = 'Anahita Website';

   var $sendmail = '/usr/sbin/sendmail';

   /* SMTP Settings */

   var $smtp_user = 'postmaster@mail.testopenhmi.com';

   var $smtp_pass = '********************';

   var $smtp_host = 'smtp.mailgun.org';

   var $smtp_secure = 'ssl';

   var $smtp_port = 465;

I have tried a few different configurations, different ports, and different settings for the $mailer variable. None of which seem to work.I am running my server on a Debian 10 system, as far as I could tell it does not come preconfigured with a sendmail binary. I tried installing sendmail and setting up some configuration but went down a path that did not seem correct and never got it working.Any general tips / advice on how to debug this and check errors? I have enabled debugging in my configuration already like this:

   /* Debuging Settings */

   var $debug = 1;

   var $error_reporting = 30719;

I still am not seeing error codes when I do this. Just looking for some help with SMTP and maybe some example configuration settings.Thank you! Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Anahita on Google App Engine?

Can Anahita  4.5.0  be deployed Google App Engine? 

#GoogleAppEngine

I don’t know, never tried it. We have only done AWS and Rackspace deployments.
Rastin Mehr

Rastin Mehr commented on the topic

No User Signup Page

@rastin Rastin: any update on the anahita.local/people/signup404 Not Foundissue?

Yes, the first user becomes Super Admin and Anahita sends out an email with a confirmation link. This is for better security.

There is no "localhost.anahita/administrator" path in Anahita. All users log in using "l... Read More
Yes, the first user becomes Super Admin and Anahita sends out an email with a confirmation link. This is for better security.

There is no "localhost.anahita/administrator" path in Anahita. All users log in using "localhost.anahita/people/session" path. Read Less
Unknown Person liked this
You can either go to the database and enable the user or just drop the database and redo the initiation process after adding the Mailgun credentials to the configuration.php file.

1. add Mailgun credentials to the ... Read More
You can either go to the database and enable the user or just drop the database and redo the initiation process after adding the Mailgun credentials to the configuration.php file.

1. add Mailgun credentials to the configuration.php file
2. drop database
3. php anahita site:init Read Less
By the way, we're going to improve this in future releases. We know that it is not as simple when your development environment is still new.
Rastin Mehr

Rastin Mehr commented on the topic

No User Signup Page

@rastin Rastin: any update on the anahita.local/people/signup404 Not Foundissue?

Yes, the only specific line is the try_files that I gave you. Otherwise, read the Nginx docs and examples and then craft something that works for your server.
It’s probably because Anahita tried to send you a confirmation email, but the server isn’t configured to do so. You can edit the configuration.php file and add the values for your mail server of choice. You can for ex... Read More
It’s probably because Anahita tried to send you a confirmation email, but the server isn’t configured to do so. You can edit the configuration.php file and add the values for your mail server of choice. You can for example use an SMTP service such as Mailgun. Read Less
Unknown Person liked this
Rastin Mehr

Rastin Mehr commented on the topic

No User Signup Page

@rastin Rastin: any update on the anahita.local/people/signup404 Not Foundissue?

Ok, let me do some more testing and get back to you
Can you please check and see if the database tables are created or not?
The only thing that has changed in that part of the code is that we are using localhost for the database host by default instead of 127.0.0.1
Another tip: drop the database before installing Anahita. It's possible that the database tables from the last attempt are still there.
What's the value of $sef_rewrite in configuration.php file? It should be 1
None of these variables are related to the issue you are having. Did you say that you can see the home page? If you see index.php in the generated URLs, that means sef_rewrite is 0, it should be one.

Are you using... Read More
None of these variables are related to the issue you are having. Did you say that you can see the home page? If you see index.php in the generated URLs, that means sef_rewrite is 0, it should be one.

Are you using Nginx or Apache? Read Less
Unknown Person liked this
You need this in your Nginx config file: try_files $uri $uri/ /index.php?$args; instead of what you have. At this point, it seems like your issue has to do with Nginx configuration and not Anahita.
Is this the Nginx 404 page or Anahita 404 page that you are getting? If it is the Nginx 404 page, then the problem is in the Nginx configuration, not Anahita.
Rastin Mehr

Rastin Mehr commented on the topic

No User Signup Page

@rastin Rastin: any update on the anahita.local/people/signup404 Not Foundissue?

I am testing with MySql 5.7. I'm wondering if Mysql 8.0 has issues with our current queries.
Rastin Mehr

Rastin Mehr commented on the topic

No User Signup Page

@rastin Rastin: any update on the anahita.local/people/signup404 Not Foundissue?

Rastin Mehr
Rastin Mehr
April 30 2021 Permalink
I am wondering, did you pull code from the master branch in an existing project, or this is happening in a fresh installation?
Rastin Mehr
Rastin Mehr
April 30 2021 Permalink
We are still working on the master branch so the code is unstable. For the time being, you can run the command:

$ php anahita site:configuration

and then look in the configuration.php file and see if there are a... Read More
We are still working on the master branch so the code is unstable. For the time being, you can run the command:

$ php anahita site:configuration

and then look in the configuration.php file and see if there are any variables missing. For example, client_domain should be set to "anahita.local", and sef_rewrite = 1 Read Less
Rastin Mehr
Rastin Mehr
April 30 2021 Permalink
So I just cloned Anahita from the master branch, and I installed it successfully. I noticed that for the database, I needed to use localhost instead of 127.0.0.1 because of how MySQL is set up on my machine; otherwise... Read More
So I just cloned Anahita from the master branch, and I installed it successfully. I noticed that for the database, I needed to use localhost instead of 127.0.0.1 because of how MySQL is set up on my machine; otherwise, it couldn't connect. I couldn't reproduce the 404 error that you are having. Read Less
Rastin Mehr
Rastin Mehr
April 30 2021 Permalink
What versions of php and MySQL are you using?
Rastin Mehr
Rastin Mehr
April 30 2021 Permalink
That seems like a file permissions issue. Can you check and see if the path /var/www/anahita.local/vendor/anahita-platform/installation/sql/data.sql exists and whether PHP has permissions to read it?

Also in config... Read More
That seems like a file permissions issue. Can you check and see if the path /var/www/anahita.local/vendor/anahita-platform/installation/sql/data.sql exists and whether PHP has permissions to read it?

Also in configuration.php file make sure the variables are set to maximum error reporting:

var $debug = 1;
var $error_reporting = 30719; Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Twilio-Anahita Phone Signup/Sign-ins via sms code

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone numb...

Read More

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone number is registered in and enters his/her Mobile Phone [+Country Code Area Code Phone Number]

Twilio then sends the user a one-time passcode to his/her mobile phone via SMS. The user then enters the code on our website to complete their registration. 

Immediately upon registration (first-time login) an Anahita User page is "auto-generated" showing : 

[Avatar/Photo Placeholder] 

[Country Flag] [+Country Code Area Code Phone Number]

and the rest of the Anahita User page fields 

SUBSEQUENT SIGN-INS

After the initial session has expired, a returning user can access his/her account and use our website by repeating the same process: select country, enter the mobile number, receive a code via SMS,  add code to the page,  and is logged in- again- until the session expires. Anytime a session expires or is killed and the client is reloaded the

The same procedure needs to happen. Account data is persistent from initial signup to subsequent sign-ins for a seamless and easy UX. The idea is to create a community of Mobile Phone Users

Please advise how to proceed given the current state of Anahita code+pluginsThanks in advance note: A similar use case was described by Akgora Flip in his post dated May 12 2020 Want to add a mobile number for the signup and sign in processhttps://www.getanahita.com/topics/168154-want-to-add-mobile-number-for-signup-and-sign-in-processWould be interested in knowing if a Twilio-Anahita plugin was ever developed or in in the works by Akgora Flip and/or any other members #Twilio #Signup #Authentication #Onboarrding #Registration #Mobile #TwoFactorAuthentication #TwoFA #SMS Read Less
Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
April 14 2021 Permalink
The only guidance that I provided was on this group. The plugin architecture hasn't changed much, so you should be able to build an implementation for yourself using the existing code in the master branch.
Unknown Person liked this
Rastin Mehr

Rastin Mehr commented on the topic

Twilio-Anahita Phone Signup/Sign-ins via sms code

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone numb...

Read More

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone number is registered in and enters his/her Mobile Phone [+Country Code Area Code Phone Number]

Twilio then sends the user a one-time passcode to his/her mobile phone via SMS. The user then enters the code on our website to complete their registration. 

Immediately upon registration (first-time login) an Anahita User page is "auto-generated" showing : 

[Avatar/Photo Placeholder] 

[Country Flag] [+Country Code Area Code Phone Number]

and the rest of the Anahita User page fields 

SUBSEQUENT SIGN-INS

After the initial session has expired, a returning user can access his/her account and use our website by repeating the same process: select country, enter the mobile number, receive a code via SMS,  add code to the page,  and is logged in- again- until the session expires. Anytime a session expires or is killed and the client is reloaded the

The same procedure needs to happen. Account data is persistent from initial signup to subsequent sign-ins for a seamless and easy UX. The idea is to create a community of Mobile Phone Users

Please advise how to proceed given the current state of Anahita code+pluginsThanks in advance note: A similar use case was described by Akgora Flip in his post dated May 12 2020 Want to add a mobile number for the signup and sign in processhttps://www.getanahita.com/topics/168154-want-to-add-mobile-number-for-signup-and-sign-in-processWould be interested in knowing if a Twilio-Anahita plugin was ever developed or in in the works by Akgora Flip and/or any other members #Twilio #Signup #Authentication #Onboarrding #Registration #Mobile #TwoFactorAuthentication #TwoFA #SMS Read Less
Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
February 16 2021 Permalink
This is good and if you had any questions, you can post them on this topic. I'm not aware of any Twilio integrations happening in the community. You seem to be the first one.
Rastin Mehr

Rastin Mehr commented on the topic

Twilio-Anahita Phone Signup/Sign-ins via sms code

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone numb...

Read More

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone number is registered in and enters his/her Mobile Phone [+Country Code Area Code Phone Number]

Twilio then sends the user a one-time passcode to his/her mobile phone via SMS. The user then enters the code on our website to complete their registration. 

Immediately upon registration (first-time login) an Anahita User page is "auto-generated" showing : 

[Avatar/Photo Placeholder] 

[Country Flag] [+Country Code Area Code Phone Number]

and the rest of the Anahita User page fields 

SUBSEQUENT SIGN-INS

After the initial session has expired, a returning user can access his/her account and use our website by repeating the same process: select country, enter the mobile number, receive a code via SMS,  add code to the page,  and is logged in- again- until the session expires. Anytime a session expires or is killed and the client is reloaded the

The same procedure needs to happen. Account data is persistent from initial signup to subsequent sign-ins for a seamless and easy UX. The idea is to create a community of Mobile Phone Users

Please advise how to proceed given the current state of Anahita code+pluginsThanks in advance note: A similar use case was described by Akgora Flip in his post dated May 12 2020 Want to add a mobile number for the signup and sign in processhttps://www.getanahita.com/topics/168154-want-to-add-mobile-number-for-signup-and-sign-in-processWould be interested in knowing if a Twilio-Anahita plugin was ever developed or in in the works by Akgora Flip and/or any other members #Twilio #Signup #Authentication #Onboarrding #Registration #Mobile #TwoFactorAuthentication #TwoFA #SMS Read Less
Rastin Mehr
Rastin Mehr
February 07 2021 Permalink
We've never integrated with Twilio because for the projects that we have done, Twilio wouldn't have passed the user privacy compliance. Still, I realize that mobile signup and 2FA are very convenient for business to c... Read More
We've never integrated with Twilio because for the projects that we have done, Twilio wouldn't have passed the user privacy compliance. Still, I realize that mobile signup and 2FA are very convenient for business to consumer projects. So I can give you some tips:

1. Build your UI and UX workflow in a clientside technology as a mobile, browser, or desktop app. Do not rely on the existing HTML views in Anahita. As soon as the Anahita React app is ready, we will remove all the HTML views in Anahita and make it available as a RESTful API only service.

2. DO NOT store user phone numbers in Anahita. It's better if a big-budget company such as Twilio handles phone numbers because, one would hope, that they have better infrastructure and budget to protect users' data. What you do is to first register the user with Twilio by providing them with the user's email and phone number, and then obtain a Twilio user id, then store the Twilio user id in Anahita's person object as metadata like this:

$person->setValue("twilio_user_id", $twilio_user_id);

and obtain it:

$person->getValue("twilio_user_id");

3. Anahita plugins provide a series of hooks or events that you can use. You need to develop a Twilio User Plugin and Twilio Authentication Plugin. The first one is used for sign up and keeping the account information updated, and the authentication plugin is for authenticating the user against Twilio API.

Here are the list of hooks in an Anahita User plugin: https://github.com/anahitasocial/anahita/blob/master/src/plugins/user/anahita.php

And there is only one hook in the Anahita Authentication plugin, which is "onAuthenticate": https://github.com/anahitasocial/anahita/blob/master/src/plugins/authentication/anahita.php Read Less
Rastin Mehr
Rastin Mehr
February 07 2021 Permalink
So here is how the UI/UX workflow works. In your client app, design a signup form that includes a phone number field and email. In your Twilio User Plugin, in the method onAfterAddPerson, register the user with Twilio... Read More
So here is how the UI/UX workflow works. In your client app, design a signup form that includes a phone number field and email. In your Twilio User Plugin, in the method onAfterAddPerson, register the user with Twilio, obtain a user id from them and store it in your person object for later use.

Twilio will send an SMS message with a code to the phone number:

In your Twilio Authentication plugin, in the onAuthenticate method, pass the code to the Twilio API and listen to the response. If the response was a success, create an Anahita session for the user and log them in. Basically, instead of checking user credentials (username, password), we are using Twilio's temporary code to authenticate the user. Read Less
Rastin Mehr
Rastin Mehr
February 07 2021 Permalink
And one last tip, you can build your own People package and store it in the packages directory with the other apps. Basically, it will be your own custom com_people. When you are installing Anahita, she will use your ... Read More
And one last tip, you can build your own People package and store it in the packages directory with the other apps. Basically, it will be your own custom com_people. When you are installing Anahita, she will use your custom com_people instead of the default com_people.

I hope this helped! Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Replacing word 'Anahita' in project folder.

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on ...

Read More

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on how to do it.  Thanks in advance.

Read Less
Rastin Mehr
Rastin Mehr
January 29 2021 Permalink
If you make significant changes to the codebase, you won't be able to apply future updates that we release to it. You will be on your own to maintain your codebase.
Akgora Flip

Akgora Flip commented on the topic

Replacing word 'Anahita' in project folder.

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on ...

Read More

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on how to do it.  Thanks in advance.

Read Less
Akgora Flip
Akgora Flip
January 27 2021 Permalink
I just wanted to confirm whether it would effect the project in terms of settings or configurations. Thank you.
Rastin Mehr

Rastin Mehr and Akgora Flip commented on the topic

Replacing word 'Anahita' in project folder.

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on ...

Read More

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on how to do it.  Thanks in advance.

Read Less
Rastin Mehr
Rastin Mehr
January 25 2021 Permalink
What command did you use when you were creating the project folder? I'm not sure which directory you are referring to as the project folder. Could you be a bit more specific, please?
Akgora Flip
Akgora Flip
January 25 2021 Permalink
Im sorry if i did not make you understand there, what i meant is in all the files we have word "anahita" so i need to replace them all with some other word.
Rastin Mehr
Rastin Mehr
January 25 2021 Permalink
I suppose you just go and replace them all. This isn't really a support question.
Akgora Flip liked this

Photos View All

Articles View All

Topics View All

Powered by Anahita