Installing Drupal on Fedora 29 Live USB - apache

I followed this guide: https://fedoramagazine.org/howto-install-drupal-8-fedora/
Everything went well except that when I try to pull up the web page at localhost I get the apache welcome page.
I tried following the instructions (comment everything out) to not use the welcome page, renaming the welcome.conf to ~welcome.conf. Neither worked.
I'm sure it's something simple. I had the same issue trying to install Wordpress.

Related

Prestashop 1.7 Installation Ubuntu 14.04 LAMP Too many redirects

I am trying to install Prestashop 1.7 on an Ubuntu 14.04 LAMP droplet from Digitalocean.
After copying Prestashop source files under a presta folder in /var/www/html, when accessing http://95.85.6.69/presta/ in the browser I am getting redirected to http://95.85.6.69/presta/install/index.php?step=welcome which is cool, except, it keeps on redirecting until I am getting: ERR_TOO_MANY_REDIRECTS thrown back at me.
Am I doing something wrong? Is there a config I am missing? How can I surpass that error?
The image above is an addition to the error description.
P.S: Ignore the differences in IPs as they are the result of multiple deployments of the same snapshot, ubuntu 14.04 LAMP, on Digitalocean.
Have you enabled the curl extension? I had the same problem couple days ago. After investigating the problem, I found out that the curl extension wasn't enabled and Prestashop doesn't throw any errors if it is not enabled.
sudo apt-get install php5-curl
Then restart the apache2 server using
sudo service apache2 restart
Take a look at the following links, it might be possible that you find a solution for this problem:
https://forum.c4.cz/prestashop-1-7-0-4-instalace-a-chyba-too-many-redirects-t7692.html
https://serverfault.com/questions/824940/prestashop-1-7-too-many-redirects-on-frontend-shop
After installing PrestaShop on Ubuntu 18.04.4 LTS I had the same issue. Everything needed is installed and running. I checked the logs and there where no errors when loading the page, but the issue persisted.
I tried loading the Admin panel and was able to login. After reading in some simular issues I wondered if it had to do with SSL, that I set up with the domain.
Long Story short, if you can reach the admin panel check the shop settings and if SSL is aktivated and is aktivated for all pages. That solved the issue for me.

How to run Php Pages in Netbeans

I have just successfully deployed Quercus on Glassfish 4.1. I tested in the browser
http://localhost:8080/quercus-4.0.39/ and saw this:
Congratulations! Quercus™ Open Source 4.0.39 is interpreting PHP
pages. Have fun!
Then ran Netbeans Tools > Options > PHP > Activate PHP Support
It worked. I now see this:
So I made 3 tests:
I ran a php page in an html application but instead of displaying the page it prompts a download box to open in Notepad
I created a new PHP project with below configuration:
But when I run the app with above configuration I receive this error:
Firefox can't establish a connection to the server at localhost.
So I tried with a third test with other configuration:
When I run this third test I get a HTTP Status 404 - Not Found error on GlassFish server.
What am I doing wrong? Thank you!
The problems with your tests are:
PHP needs to be interpreted by a web server. Your browser doesn't know what to do with a PHP file, so it just treats it like a file rather than a page to render. Apache is the most common and easiest server to do that with, GlassFish is unnecessary and probably not the best choice for PHP.
In this test, you are trying to visit a web server which doesn't exist. You don't have any server that listens on port 80.
Here, GlassFish is reporting that it can't find the resource you requested. Have you made sure to put your PHP project in the right directory for Quercus (like in step 4 of your documentation link) and made sure you're visiting a valid URL?
I think the best thing for you to do is move away from Quercus. The latest version of it is very old and implements an old version of PHP (version 5, whereas the latest is 5.6). Looking at the official website, the project appears to be dead, with broken links and very old documentation.
I would suggest you investigate installing a WAMP (Windows, Apache, MySQL, PHP) or LAMP (Linux, Apache, MySQL, PHP) stack. There are lots of very easy installers for this approach which will help you get up to speed and a lot of helpful tutorials and documentation.
For those who using tomcat, below are the steps :-
Right click your project --> properties --> Run Configuration --> For Run As, select PHP Built-in Web Server
Go to Tools --> Options --> PHP tab --> in Php 5 interpreter, browse the correct location for php
Then it should works !
In my case , my php is in /usr/bin/php7.0, so I put the path in Php 5 interpreter.

Ubuntu 14 Apache server, page loading icon doesn't disappear

I'm new to the LAMP stack. I set up everything correctly, everything works fine, I can view a sample PHP file, but one thing that irritates me is that page loading icon. It is still active like the page was still loading, but the whole content of the page has already been loaded. I do not know how to fix this problem. I tried to ask Google but found nothing, tried to restart apache server but the problem is not solved. I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu Is it a bug or something else?

Apache server wont start - MAMP

I'm very new to MAMP, when I first installed MAMP the Apache server and mySQL were working fine.
Then I stupidly deleted my root user on the database, and I couldn't access the mySQLadmin screen.
So I uninstalled MAMP and reinstalled, but now the Apache server isn't working.
Anyone got suggestions, for example what logs I should look at? I've researched a few solutions but im pretty confused
I had this exact problem.
Make sure you remove all files from /applications/mamp before reinstalling MAMP! If this doesn't work, it's possible you messed something else up, so you can try installing XAMPP, which offers just about the same functionality as MAMP.

Wordpress pages randomly serve as RSS/XML content

For months we have been struggling with a weird issue on 1 of our Wordpress Network installations. We have 4 installations on 1 VPS and only one of the four installations generates this error.
The problem is that pages on all sites that run on that Wordpress Network installation, randomly(?) seem to try and parse the page as being RSS content. See this screenshot:
Full image
This only happens once per session (if it does at all) and after refreshing the page, all is good. This makes it extremely hard to fix, because debugging is almost impossible.
Whenever the issue seems to appear, the (RSS) content that is being displayed, is that of a different page..
Could this be a Wordpress issue, or could this be an issue in the Apache config?
Some domains we are encountering this on:
http://www.skynetsg.co.za/
http://www.workplacestrategies.co.za/
http://www.beachbreaks.co.za/
I hope there is someone that could help me solve this issue!
Update:
I just had the issue on the page: http://www.skynetsg.co.za/peter-sserwanga/ that was newly created. I checked the apache logs and they show nothing strange, just a 200 OK header..
Below is a link that may fix your problem. If your running WHM/Cpanel, you may have to recompile apache with out certain modules.
rss-feed-displayed-instead-of-html-page