Wordpress multisite and local redirect - php

I am about to start working on another developers site and need to get it running locally.
I have pulled the code and set up a local database running on XAMPP...
It is connecting to the database fine but when I try to try run localhost/site/app
It returns as...
localhost/uk/site/app
I have been told this is because the site it running on a wordpress multisite plugin which redirects automatically based on ip location.
Here is the error on the page...
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 Apache/2.4.18 (Unix) OpenSSL/1.0.2h PHP/5.5.37
mod_perl/2.0.8-dev Perl/v5.16.3
I have hunted for the solution on this but my wordpress knowledge is limited and any help would be appreciated to help me get this running.

Related

Is there any fix for Xampp Object not found?

Today I tried to open xampp and run apache and MYSQL and they were working but any .php file I try to run It says the following:
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.53 (Unix) OpenSSL/1.1.1n PHP/8.1.4 mod_perl/2.0.12 Perl/v5.34.1
I tried to check my files and check my database and they were fine.I Also tried to run it on a Windows Machine and it didn't work.Thanks in advance.
Oh I found it I just uninstalled xampp and deleted the remaining folders then installed it again and created the Database and the tables.And now it is working.Thanks for replies.

CakePHP “Object not found!” XAMP Windows

I just got downloaded from the cloud an old CakePHP project, it was uploaded for someone else, and I need to have a copy of it in my PC.
The problem is that when I paste it in my XAMPP folder (C:\xampp\htdocs\theproject), it shows the following error:
enter image description here
I'm not sure if you are able to see the image, but it says:
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 Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.4
I'm using PHP 7.0.4 & 7.1.33
Cake PHP version 2.3.8.

Magento Object not found

I have installed WAMP on my system.
A couple of days ago i was working on a magento site on localhost.
But now, whenever I install a fresh magento site on the localhost I get the following error
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
dev.ytcvn.com
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.19
mod_rewrite is not enabled in your apache. Check for it.

Php error on localhost. Error 403

I am currently getting an error with php using XAMPP. The error is:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
I have no changes made to the config of XAMPP and was unable to find away to fix this. I have read about the error and tried suggested fixs, none of which work for me or others that tried them.
A bit more info on this, it only happens after clicking a submit button ().
Any suggestions on how to fix this would be very much appricated
PHP is probably not running. i once had this problem with apache2 php5 and apache-php5-mod(from my package repository) on linux.
I could only serve plain html(no php) files untill i fixed it.
Does a simple php_info() file work?
Is the page with the submit button a .php or a .html?
If the phpinfo file fails try making a simple php info and running it from the command line(without the apache server)
(to do this):
1. open windows explorer.
2. navigate to php.exe
3. in the address bar, enter "C:\WINDOWS\system32\cmd.exe" (a window should open.)
4. in the window type "php.exe PATH_TO_PHPINFO_FILE\FILENAME.php"
Please tell me what it outputs.

How to Debug php in Eclipse

I am new to PHP.....
(In Eclips IDE) If i run the PHP code with Run As --> "PHP Script", that will work fine but Run As --> "PHP Web Page" is throwing the error as
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
03/22/11 12:04:12
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11
OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8
Please help me....
Gnanendra
If you are using XAMPP place your eclipse project workspace in the XAMPP\htdocs\ folder. if you use WAMP then place it in the WAMP\www\ folder. you'll find the XAMPP or WAMP folders in the directory where you have installed it.
for your reference:
Are you using any XAMPP or WAMP service? Did you place your files properly? It says the apache could not find your file. i.e. you've either not configured your environment properly or your file is at a wrong place.

Categories