Search Forums
Forum Recent Posts
404 errors after basic installation (on virtual box with OpenSuSE)
Views 918
Sweets 0
Images 0

2 years ago Topic

pebwindkraft
Offline
New Member
Total Posts: 4
Joined: August 27, 2020
Posted: August 27, 2020 @ 10:24 PM
I tried basic installation on a virtual box machine with OpenSuSE, and I redirected port 8088 to port 80 of the virtual machine. This is what I did: 1. Downloaded UserCandy 1.05 2. Unzipped, and copied into server directory: /srv/www/htdocs 3. Opened web browser, navigated to https://localhost:8088/public 4. Followed the installation instructions Step1 to Step5 (all green) I can then see the homepage (without the logo image). Any link I click is giving a 404 error. On my host machine and Firefox, all links appear now as: localhost:8088/About localhost:8088/Contact localhost:8088/Register ... The php log files in "system/logs" remain empty. And apache logs don't show up anything. Another observation: When using "http://localhost:8088/", I get a 403 error, cause no index.[html|php] file exists. The apache log says: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html.var,index.php4,index.php5,index.php7,index.php) found, and server-generated directory index forbidden by Options directive I can navigate to "http://localhost:8088/public", then I'd see the UserCandy homepage again (still with the 404 errors mentioned above). I think I am looking to where to go from here ...


Reply By: DaVaR
2 years ago #1

DaVaR
Offline
Administrator
Total Posts: 13
Joined: September 12, 2019
Posted: August 27, 2020 @ 10:41 PM
Need to setup to where Apache opens the public folder. Here is a good video how to set it up. Note: This videos shows hot to setup on xamp for windows but the apace config files are similar.
I suggest using virtual hosts, but I have yet to create a how to on that.



Reply By: pebwindkraft
2 years ago #2

pebwindkraft
Offline
New Member
Total Posts: 4
Joined: August 27, 2020
Posted: August 29, 2020 @ 01:06 AM
not yet there ... link to (temporary) screenshot: https://ln2.sync.com/dl/bddc59850/7zc62c4s-jdmtbfyw-82an62r9-9j2uxtf5 I have the feeling that the redirects don't work. I am not too familiar with these redirects. Example: both images in the default homepage do not appear. The html code shows them to be here: ... img src='http://localhost:8088/Templates/Default/Assets/images/logo.png' ... img src='http://localhost:8088//Templates/Default/Assets/images/UserCandyLogoLGBlack.png' If I enter this address in the browser, it's also a 404 error. The images are there, the folder has no capital 'T', it is just 'templates'. Even if I correct this, the images are not displayed. The web page links (about, contact, register...) remain on 'error 404'. PHP error log and apache error log remain empty :-( Just in case: I am running "plain vanilla" apache2 version 2.4.43.


Reply By: DaVaR
2 years ago #3

DaVaR
Offline
Administrator
Total Posts: 13
Joined: September 12, 2019
Posted: August 30, 2020 @ 10:14 PM
Looks like Apache is not reading the .htaccess file. Edit the following to match within the <Directory "var/www/..."> Options All AllowOverride All Require all granted Add/Edit those and let me know the results.


Reply By: pebwindkraft
2 years ago #4

pebwindkraft
Offline
New Member
Total Posts: 4
Joined: August 27, 2020
Posted: August 31, 2020 @ 12:33 PM
yup - that's it! I have all links on the left side working (about, contact, home ...), but the two on the right side (login and register) seem to fail: The php-error.log in (system/logs) shows this:
Code

Exception information:
           Date: Aug 31, 2020 12:27PM
           Message: Call to undefined function Helpers\openssl_random_pseudo_bytes()
...
which was fairly easy to solve: the missing software was php7-openssl, and could be installed this way:
Code
sudo zypper in php7-openssl
Then I could go into the register dialog, I filled out the username, password and email, just to get a "registration error: please try again". A bit puzzled ... php-error.log is empty, apache error log is empty. Hmmm (https://ln2.sync.com/dl/470692ff0/xsg8uv2w-6tk7jtqa-tnksxz6p-seqs2e2u)



Reply By: DaVaR
2 years ago #5

DaVaR
Offline
Administrator
Total Posts: 13
Joined: September 12, 2019
Posted: September 03, 2020 @ 06:52 AM
Go into phpmyadmin and look in the auth log to see if it gives you more details of the reason registration did not work.


Reply By: pebwindkraft
2 years ago #6

pebwindkraft
Offline
New Member
Total Posts: 4
Joined: August 27, 2020
Posted: September 03, 2020 @ 01:46 PM
I am not sure were to find "phonyadmin" ... I looked into the code (file Register.php), and observed s.th.: it looks like the first check is the captcha and an agreement to terms & conditions. I couldn't see any field for terms&cond, nor the re-captcha from google. The virtual machine is capable of "opening" www.google.com/recaptcha...


Reply By: DaVaR
2 years ago #7

DaVaR
Offline
Administrator
Total Posts: 13
Joined: September 12, 2019
Posted: September 04, 2020 @ 06:48 AM
Sorry, spell check got me on that one.. PHPMyAdmin is an program designed to help work with mysql databases with ease. I use it like crazy. https://www.phpmyadmin.net/


Reply By: joeangel
2 months ago #8

joeangel
Offline
New Member
Total Posts: 1
Joined: August 02, 2022
Posted: August 02, 2022 @ 06:00 PM
HI, I'm having the exact same issue as pebwindkraft, but not able to follow the solution provided by DaVaR. @DaVar, can you please elaborate on your recommendation? "Posted: August 30, 2020 @ 10:14 PM Looks like Apache is not reading the .htaccess file. Edit the following to match within the <Directory "var/www/..."> Options All AllowOverride All Require all granted"


Reply By: MartyR
29 days ago #9

MartyR
Offline
New Member
Total Posts: 3
Joined: September 06, 2022
Posted: September 06, 2022 @ 12:21 PM
SQL Connection not working User name and password keep changing after save username becomes password Found the problem and corrected it. mispelled database name


Reply By: MartyR
29 days ago #10

MartyR
Offline
New Member
Total Posts: 3
Joined: September 06, 2022
Posted: September 06, 2022 @ 12:21 PM
SQL Connection not working User name and password keep changing after save username becomes password


Forum Permissions
You cannot post in this forum.
You cannot moderate this forum.
You cannot administrate this forum.