Install and configure xampp for Ubuntu 14.04 - php

Hello!
I have been trying to get PHP scripts running for 5 days on Ubuntu 14.04. I installed PHP 5.3, apache2 and xampp for these versions. I used Netbeans to create a simple script with phpinfo(), but I get a blank page when I run it in Netbeans. And I get "The requested URL was not found on this server" when I run project which includes more than only index.php project. When I run localhost in browser Xampp page for Ubuntu is loaded.
I used this answer for apache2 configuration.
I reinstalled it and tried to configure for the 3d time, so I`m desperate. So I would be grateful for any help and tips!

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04
Follow this tutorial. ON Linux google for LAMP not XAMPP

Related

How to properly install Xampp on Mac in order to run PHP code

I downloaded the installer version of Xampp version 8.1.6-0 for Mac and went to the manager-osx widget to start the Apache and MySQL servers but neither would start.
I then tried using the command sudo apachectl start and then created an index.php file and put it in htdocs, and then tried to open it using http://localhost/index.php as well as http://localhost:8080/index.php and both times it said the server could not be reached.
I've actually downloaded Xamp in the past and was able to reach the server but wasn't able to get php scripts to run, but now for some reason I can't even get the server to run.
I made sure to download the installer and not the virtual machine version. I'm running Monterey version 12.4.
I tried the solutions here but they didn't seem to work. I checked my activity monitor and nothing is running on port 80.
I also installed MAMP from here and tried to start Apache but it displayed the error:
"Apache couldn't be started. Please check your MAMP installation and
configuration."
Any help would be appreciated as I just want to run PHP.

phpinfo.php doesn't show anyoutput apache2

I am a web developer and I've just switched from windows 10 to ubuntu 18.04. I've tried unstalling and reinstalling it again and alomst all the solutions that's been provided by fellow developers on ask.ubuntu, ubuntu forums, stackoverflow etc.
i don't understand what seems to be the problem. I've installed php, openssh.server and apache. I made phpinfo.php in /var/www/html and when i'm trying to run it on localhost it says "unable to connect". I've shared the output for sudo service apache2 start

XAMPP services cannot be installed or uninstalled while the service is running! Apache

I am trying to install XAMPP but cannot get all the services to work. I turned off the User Account Control and reopened xampp but now my SQL was running but some were not. Apache has the error services cannot be installed or uninstalled while the service is running!
I am new to wordpress. Using windows to learn wordpress websites using a local server insead of a using wordpress online.
Would WAMP be eaiser to install and use than XAMPP?
WAMP is a windows solution. so - please install WAMP, and run your local server from there.

Php executable for php-linter when using xampp (ubuntu) not working

As the topic sentence says. I'm using atom with linter-php in ubuntu with an xampp setup. PHP is located in the opt/lampp/bin folder when you've installed xampp in ubuntu 16 but atom isn't accepting it. "unable to get version" and "spawn php ENOENT." Anyone out there using this same setup? Which path did you use for the php executable? Alternatively: Should i just install php in the standard file directory outside of xampp as well and direct linter there?
This may have been a bit of a hack approach to fixing this issue but i just installed php7.0 outside of xampp again and directed the linter path there. Actually didn't have to direct it at all. As soon as i installed php from the terminal, the issue was fixed.

CAKEPHP help on running project in ubuntu

I have a project that it is deploy and running on Debian (apache 2.2.9, php5.2, mysql 5.0)
Now i trying to run it in ubuntu 11.10(apache 2.2 php 5.3 mysql 5.1) but only the homepage is working.
If i click on any of the links I get the Not Found page:
Not Found
The requested URL /patients was not found on this server.
Does anybody have an idea why it is doing this?
I basically check everything, I can't figure out why.
I have a feeling it has to do with cakephp.
You need to enable mod_rewrite in Apache.
Run this command in terminal: sudo a2enmod rewrite, another I had to do for a fresh install was sudo a2enmod headers. Afterwards, you'll need to restart Apache, the terminal will tell you what command you have to run to do that.

Categories