You are here

Xampp not running Php?

17 posts / 0 new
Last post
gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
Xampp not running Php?

I installed xampp for the purpose of "portable wordpress theme development". Along with other PA stuff.

However for some reason whenever I go to wp-admin.php I get an error page saying:

"Error: PHP is not running
WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off."

Now before jumping to conclusions I should point out the limit of my knowledge.
I know how to use an install Xampp and wordpress. (hell I even wrote this guide on the subject a couple months ago)

I know to run as admin or services do not start. I also have xampp installed on local PC, so made sure that was off before hand. Additionally xampp is not running "as a service".

Anyone got any ideas?

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
Additionally...

I forgot to mention as it may prove useful. I tried to install MoWeS Portable after reading every xampp post I could find on these forums.

However during installing php5 I kept getting an error saying to turn off windows firewall.

Not sure why I kept getting this error because I was installing on a thumbstick. So I just figured it was a Piece of $#!7 program and deleted it.

dster
Offline
Last seen: 10 years 5 months ago
Joined: 2011-04-29 00:25
xampp - make sure apache is running

php needs apache to pass tags to.

Did you start apache?

If apache doesn't start (check by going to http://127.0.0.1),
make sure nothing else is using port 80. A number of softwares
grab port 80.

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
yep

Both apache and sql services start. Like already mentioned I know how to do this.

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
OK so php info says....

Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\xampp\php\php.ini

Why is running xampp from a usb-stick tapping into the install directory I have in C:\xampp ?

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
1. verified that xampp was

1. verified that xampp was not running on local machine.
2. start xampp on usb in administrator mode.
3. start apache....
4. start mysql....
5. click status:

XAMPP Application Status 1.1.2.2
httpd State 1 Service 1 Start 1 Thread 0 Op 0 Port 80
mysql State 1 Service 1 Start 1 Thread 0 Op 0 Port 3306
ftp State 0 Service 1 Start 0 Thread 0 Op 0 Port 21
mercury State 0 Service 0 Start 0 Thread 0 Op 0 Port 26
Refresh...
Done

6. URL http://localhost/test.php

Contents:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
12/11/11 13:33:07
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

7. bash head against keyboard.

Going to localhost is "C:\xampp\htdocs\index.html"
So how do I go to "G:xampp" ?

C:\xampp isn't even running.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 8 months ago
Joined: 2007-04-15 21:08
Installed locally as service?

As soon as you have XAMPP installed locally as a service, the XAMPP Control Panel launches the services rather than its own things, not checking if it's in the correct location or not. So if you've done that, you won't be able to run XAMPP Portable on that machine.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
So what's the point of xampp

So what's the point of xampp portable if it doesn't work?

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
It's all good, I just fixed

It's all good, I just fixed the MoWeS install. It was actually the fact I didn't click the windows firewall option for "public locations" even though I allowed the program for "private (home networks, etc)" and added the exception it didn't work until I ticked public as well

I just needed something wordpress portable didn't care what.

And synchronization is tiresome. So problem solved...

ra.one
Offline
Last seen: 12 years 1 month ago
Joined: 2011-11-17 11:36
Setup xampp on first install

You need to run setup_xampp.bat file after first installation and on installation path change. Did you run it?

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 3 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
DO NOT DO!!

This is incorrect. When running XAMPP using our Launcher, you DO NOT run setup_xampp.bat. Ever. Everything's taken care of by the launcher, so the batch file isn't needed, and can cause issues.

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
So the fix is to delete and

So the fix is to delete and and reinstall?
We'll see...

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
Nope. Makes no difference,

Nope. Makes no difference, still get an object not found error.

The problem is local installs, not the usb version.
The php config always points to:

Loaded Configuration File C:\xampp\php\php.ini

Is there a different URL I need to use to make this work?

MoWeS is "http://localhost/start/" so is no problem, different apache and different php configs. I'm guessing it probably would be a problem where PC's had mowes locally. But thankfully I haven't encountered this yet.

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
I don't understand

I don't understand this:

Everything's taken care of by the launcher...

What do you mean? The PA launcher has nothing to do with xampp, and even the download link takes you to xampp website which is no way affiliated with PA. The installation instructions says to run the .bat.

Is there something special I'm supposed to do after unzipping the files onto the stick?
The download page says nothing about it, and searching didn't find any posts regarding the issue.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 3 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
Platform != Launcher

When referring to the launcher, I'm referring to the launcher that we have developed here that launches the XAMPP control panel. This is not the same as the PortableApps.com Platform.

https://portableapps.com/apps/development/xamppMenu Integration: XAMPP isn't in PortableApps.com Format, but it easily integrates with the PortableApps.com Suite by using the XAMPP Launcher 1.5 and installing XAMPP in the root directory of your portable device (as recommended). You can open the self-extracting archive with 7-Zip Portable or download the larger ZIP archive.

As well as:

https://portableapps.com/apps/development/xamppInstallation without the Installer (Use this for portable use)
Note: Be sure not to run setup_xampp.bat, it is used for local installs

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
Woops

That'll teach me for not reading.

gcampton
gcampton's picture
Offline
Last seen: 12 years 2 months ago
Joined: 2009-10-12 21:52
Still not working.

So as far as I can tell the only way to get this working (because it's still using the local install regardless) is to uninstall every local install of XAMPP on every PC I use and instead of installing using the .exe use the zip and do not run setup_xampp.bat

That way all local xampp's won't have registry entries and won't demand importance when thumb-stick version is used.

Still no telling if that will solve the issue without testing. But from what I've read that is the problem and solution.

Log in or register to post comments