![]() |
| Home Community Mys-Script Creative Off-Topic |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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>
My hosts for this would be (lines for this example only): Code:
127.0.0.1 localhost 127.0.0.1 sanctuary.dev Code:
define('DOMAIN', 'sanctuary.dev'); //Your domain name (No http, www or . )
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 10:52 AM. |
|
#2
|
|||
|
|||
|
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 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 11:48 PM. |
![]() |
| Tags |
| hosting, wamp |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| To Non-Coders... an itty-bitty guide | ChibiMaestro | Tutorials and Tips | 2 | 04-20-2018 07:33 PM |
| Help setting up my site | Taogoat | Questions and Supports | 2 | 03-08-2014 11:46 AM |
| Errors with WAMP | MikiHeart | Questions and Supports | 4 | 11-06-2013 10:12 PM |
| Need help setting Mysidia up on Uniform Server | Hedgen | Questions and Supports | 0 | 03-16-2013 06:15 PM |
| More help for my guide. | Killgore | Questions and Supports | 3 | 03-03-2009 07:16 PM |
What's New? |
What's Hot? |
What's Popular? |