Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2016, 09:49 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 127,495
Kyttias is on a distinguished road
Default

Alright, see, you're asking 127.0.0.1 to redirect to www.mysidia.localhost, but 127.0.0.1 is not your site, as in your config file you've put in 127.0.0.1:8080. Try updating your hosts file to reflect 127.0.0.1:8080. And once you're done, update Mysidia's config file to have the domain be to what you've got in your hosts file!

There a number of things that can go wrong. Virtual hosts must be enabled in httpd.conf, and then what you have above (more or less) should be, of course, in httpd-vhosts.conf -- and you have to make sure these are the right copies of these files in the XAMPP installation, because I know for certain WAMP keeps backups and editting those won't help (so long as you followed a guide, you're good).

My virtual hosts set up is like this:

Code:
<Directory C:/Users/Kyttias/Dropbox/WAMP>
    Order Deny,Allow   
    Allow from all 
</Directory>

<VirtualHost *:80>   
    DocumentRoot "C:\Users\Kyttias\Dropbox\WAMP\Sanctuary"
    ServerName sanctuary.dev
    ServerAdmin kyttias@gmail.com
    ErrorLog "logs/Sanctuary-error.log"
    CustomLog "logs/Sanctuary-access.log" common
</VirtualHost>
(One of many, anyway.) You have ServerAlias in yours, I've never used that. But my ServerName matches what's in the host file exactly, and yours does not. =/

My hosts for this would be (lines for this example only):
Code:
127.0.0.1       localhost
127.0.0.1       sanctuary.dev
And then my Mysidia inc/config.php file is now using:
Code:
define('DOMAIN', 'sanctuary.dev');             //Your domain name (No http, www or . )
But I'm not using 8080. You could always try reconfiguring XAMPP to not need 8080, if you haven't given that a shot. I honestly have no experience with 8080 or needing to work around it.

At some point or another you'd be better of seeking help from people who understand the problem... I can really only help people working with WAMP under a standard port 80.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-26-2016 at 09:52 AM.
Reply With Quote
  #2  
Old 02-27-2016, 10:40 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 1,026
Kasandra is on a distinguished road
Default

I appreciate you trying to help me out here. I still cant seem to get anything to work correctly.

localhost - shows nothing.
localhost:8080 - shows what its supposed to.

I tried to remove the 8080 port, but it says port 80 is used by something else and I can't find what it is.


Code:
NameVirtualHost *:8080



<VirtualHost *:8080>
       DocumentRoot "C:/xampp/htdocs/"
       ServerName localhost
</VirtualHost>


<VirtualHost *:8080>
	DocumentRoot "C:/xampp/htdocs/Mysidia"
	ServerName mysidia.dev
<Directory "C:/xampp/htdocs/Mysidia">
    AllowOverride All
	Require all Granted
</Directory>
</VirtualHost>
Code:
	127.0.0.1      localhost
#	127.0.0.1       mysidia.dev
	127.0.0.1:8080       mysidia.dev
I've got both here, just # them out and tried them both - neither seems to work but I'll just paste both.

Code:
<?php
//Mysidia Adoptables Site Configuration File

define('DBHOST', '127.0.0.1:8080');             //DB Hostname
define('DBUSER', 'root');             //DB Username
define('DBPASS', '1234ABC');             //DB Password
define('DBNAME', 'mysite');             //Your database name
define('DOMAIN', 'mysidia.dev');             //Your domain name (No http, www or . )
define('SCRIPTPATH', '/Mysidia');     //The folder you installed this script in
define('PREFIX', 'adopts_');
?>

Is there something I missed?


//I did seem to get this error while trying to access the site through various urls such as "localhost:8080/Mysidia"

Code:
Warning: PDO::__construct(): MySQL server has gone away in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Warning: PDO::__construct(): Error while reading greeting packet. PID=13748 in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Warning: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2006] MySQL server has gone away' in C:\xampp\htdocs\Mysidia\classes\class_database.php:57 Stack trace: #0 C:\xampp\htdocs\Mysidia\classes\class_database.php(57): PDO->__construct('mysql:host=127....', 'root', '1234ABC') #1 C:\xampp\htdocs\Mysidia\classes\class_mysidia.php(220): Database->__construct('mysite', '127.0.0.1:8080', 'root', '1234ABC', 'adopts_') #2 C:\xampp\htdocs\Mysidia\classes\class_mysidia.php(164): Mysidia->loadDb() #3 C:\xampp\htdocs\Mysidia\classes\class_initializer.php(109): Mysidia->__construct() #4 C:\xampp\htdocs\Mysidia\classes\class_initializer.php(45): Initializer->initialize() #5 C:\xampp\htdocs\Mysidia\index.php(68): Initializer->__construct() #6 C:\xampp\htdocs\Mysidia\index.php(78): IndexController::main() #7 {main} thrown in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Last edited by Kasandra; 02-27-2016 at 10:48 PM.
Reply With Quote
Reply

Tags
hosting, wamp


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
To Non-Coders... an itty-bitty guide ChibiMaestro Tutorials and Tips 2 04-20-2018 06:33 PM
Help setting up my site Taogoat Questions and Supports 2 03-08-2014 10:46 AM
Errors with WAMP MikiHeart Questions and Supports 4 11-06-2013 09:12 PM
Need help setting Mysidia up on Uniform Server Hedgen Questions and Supports 0 03-16-2013 05:15 PM
More help for my guide. Killgore Questions and Supports 3 03-03-2009 06:16 PM


All times are GMT -5. The time now is 10:59 AM.

Currently Active Users: 2138 (0 members and 2138 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636