Closed Saiuke closed 5 years ago
Have you searched past issues around this topic?
It may be that you have not installed all the php modules required by ospos. Try with this sudo apt install php libapache2-mod-php php-mysql When this happens to me with this command I solve it
I'll check the modules again and post here.
I had issues getting started as well. Here are my condensed noted of everything I ran/did in Ubuntu 18.04.2 (desktop version)
LAMP installation: -in terminal: sudo apt install apache2 sudo apt install mysql-server sudo apt install php7.2 libapache2-mod-php7.2 php-mysql sudo apt install php-curl php-json php-cgi
-Tested “localhost” in firefox to ensure web page opened properly
-phpmyadmin install: -in terminal: -sudo apt update -sudo apt install phpmyadmin php-mbstring php-gettext -follow the prompts -sudo phpenmod mb string
-add the following to /etc/apache2/apache2.conf: Include /etc/phpmyadmin/apache.conf
-in terminal: -sudo systemctl restart apache2
-In terminal (Enable connectivity between mysql and phpmyadmin users):
-sudo mysql -ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; -FLUSH PRIVILEGES;
-Install ospos using internet guides: https://github.com/opensourcepos/opensourcepos/wiki/Getting-Started-installations#local-install -At this point I was still getting a blank page, and installed current versions of php-bcmath, and php-intl. -restarted apache2 server
Login page appeared, but gave a 404 error on logging in. fixed with the following: -in terminal: -sudo a2enmod rewrite -edit /etc/apache2/apache2.conf and change “AllowOverride None” to “AllowOverride All” as seen below: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted -in terminal: -restart apache2 server
Login worked after this.
Thank you for the thorough explanation. Hope it will help others out.
I've done pretty much all of it. But I must have done something wrong. I'll uninstall everything and try again. And, yeah, I've searched about it in the past issues. The only one that has a similar problem was told to search past issued and the topic was closed.
I want to kiss you all! I was feeling quite stupid not being able to do it. I'm not an expert as you but this is not rocket science and I've done things like this before.
Anyway, @Tbwan thanks for the step-by-step instructions, it was pretty much what I gathered before but it helped somehow. For future reference, this is basic, hut, who knows who might read it. It's important to make sure you have write and read privileges on the var/www/html folder.
@Saiuke good news and yes read and write privileges are required but not for all the folders. The write should be only for the upload part and folder containing the config.php because an encryption key is generated the first time.
This is something we need to bear in mind and add it to the FAQ because other issues reported in the past might have been due to this point.
And now there is a case talking about this issue :-)
Same problem occurred in Ubuntu 16.04. After install php-bcmath module, it solved.
sudo apt install php-bcmath
sudo service apache2 restart
Installation information
Question
So, I'm not very familiarized with the Ubuntu enviroment, normally I can handle it until some point.
I've installed Apache, MySQL, PHP 5.6 and all required mods. I can run an usual PHP page in the server and can run queries and all. But, after getting some trouble to make the server read the .htaccess file and redirect to /public I came to a stall. I have a blank page. No errors, no login, no nothing. I use OSPOS on Windows under Wamp and have installed it more than 10 times. Had have some errors and stuff before. But, in this case is a old machine that cannot run a more recent version of Windows so... I'm pretty sure that the problem ins't with OSPOS. I just need some clue about what I've overlooked. Thank's for your time and congrats for the amazing job done so far.
PS - I've not included some informations about the versions I'm working with because I don't have the computer here. As far as I know, everything is running up to date except for PHP, I'm running PHP 5.6.