[guide] Setting up WAMP w/Mysidia

Forum
Last Post
Threads / Messages
The Notices exist because you have a higher version of PHP than Mysidia was created on, and some things have since fallen out of best practice, but the code still functions.

Warnings... same deal, the code is still functional. As for the warning, you could try using 127.0.0.1 instead of localhost in Mysidia's configuration file (inc/config.php)?

Stackoverflow: What is the difference between a Notice and a Warning?

You can turn off Notices and Warnings in XAMPP's php.ini file (help finding it) under error_reporting (search for the line that does not begin with a semi-colon, may be the second result rather than the first): Try:
Code:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

Hosts online already tend to have these disabled, as they're not true error messages. The creator of Mysidia is already aware of these "problems" and they should be fixed in the next version.
 
Last edited:
Urg, I'm getting another problem after install..

Code:
Warning: require(C:/xampp/htdocs//inc/smarty/Smarty.class.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Mysidia\classes\class_mysidia.php on line 326

Fatal error: require(): Failed opening required 'C:/xampp/htdocs//inc/smarty/Smarty.class.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\Mysidia\classes\class_mysidia.php on line 326
 
Okay, I made another install and it works fine now. I noticed that the url wasn't quite right and worked out that I forgot to include the subfolder in the installation. -is shot-
 
And now I can't login...

what am I doing wrong? XD


Saw this in your tutorial,
Code:
Always access your site with 127.0.0.1, not localhost - else you'll have issues logging in/staying logged in. So go ahead and bookmark 127.0.0.1.

I can't access the site under 127.0.0.1/Mysidia
The only way I can access it is with http://localhost:8080/Mysidia

Is that the reason I cannot login? And if so, how can I fix it? Currently the 127.0.0.1 shows only a blank page.

Edit: 127.0.0.1:8080 works >.>

But still unable to login.

Edit2: Made another account, logs in (or at least it says it does, as it comes up with the welcome message) then immediately logs out again when I try to click on any other link.
 
Last edited:
Just make sure your inc/config.php file matches whatever it is that you're trying to access...? If it requires 8080 as part of the url, make sure that's part of the configuration's file.

I have another solution, though it's an added layer of complexity. Because you're acting as your own server, you can create a "Virtual Host" which will allow you essentially make a fake domain name (fake, because only you can access it... I tend to end my fake sites in .dev but you really could make it anything). Here's a guide that should help. Because you'll be accessing the site at something other than either localhost or 127.0.0.1, it'll route it properly every time.
 
Hi Kyttias,

This is my config file;

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

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

If 127.0.0.1:8080/Mysidia works (but wont let me login) then these settings look correct.

I followed that procedure you linked to, but came up with this error:

ERR_ICANN_NAME_COLLISION

Apparently Chrome does not like you using .dev
So I tried .loc , .local , .localhost
and they all just went to google search instead.

I restarted Xampp each time.

I've even attempted to try this - https://support.apple.com/en-us/HT204684

So, maybe its the files themselves? Well, here's what I have.

.hosts
Code:
	127.0.0.1       localhost
	127.0.0.1       www.mysidia.localhost

I've even tried added the 8080 port, just in case, but that didn't work either.

...-vhosts.config
Code:
NameVirtualHost *:8080

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

<VirtualHost *:8080>
DocumentRoot "C:/xampp/htdocs/Mysidia"
ServerName mysidia.localhost
ServerAlias www.mysidia.localhost
<Directory "C:/xampp/htdocs/Mysidia">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>

I am at my wits end trying to work this out >.<
 
Actually, I've even tried to do the same with another site I was working on for a friend, and had to access that through the localhost:8080 because nothing else worked... But that site was static and didn't require any login.
 
Not trying to rush anyone, but if there was someone that could help me set this up so that it works and I can play around with it and build a site it would be greatly appreciated.
 
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. :cfrown:
 
Last edited:
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:
Oh, ah... set script path to nothing.
PHP:
define('SCRIPTPATH', '');     //The folder you installed this script in

It should be looking for mysidia.dev, not mysidia.dev/Mysidia now.
 
Ha, you would not believe this, but there isn't an issue with those files. I've been at this for the last few days, sifting through tens of webpages to try and fix this problem. I've managed to return Xampp to port 80. YES!

Xampp finally says that it is running perfectly.

The only issue now..

I get this when I attempt to open "mysidia.dev"

Code:
Could not connect to database, the following error has occurred: 
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.

Both Apache and MySQL are running, no porblems (or so Xampp says)... so now I've hit yet another brick wall.

EDIT::
OMG I fixed it. Thank you so much Kyttias for digging through this and helping me out. I really appreciate it. <3
 
Last edited:
I was playing around with the idea of making some themes, but I wanted to test them on an unmodded install. Downloaded the program, everything seemed fine, but I'm getting this:

[25-Sep-2016 19:55:56 UTC] PHP Fatal error: Uncaught exception 'LanguageException' with message 'Language var nonexist does not exist.' in C:\wamp64\www\classes\class_language.php:68
Stack trace:
#0 C:\wamp64\www\classes\class_customdocument.php(82): Language->__get('nonexist')
#1 C:\wamp64\www\classes\class_frame.php(135): CustomDocument->__construct('index')
#2 C:\wamp64\www\view\indexview.php(7): Frame->getDocument('index')
#3 C:\wamp64\www\classes\class_frontcontroller.php(100): IndexView->index()
#4 C:\wamp64\www\index.php(74): FrontController->render()
#5 C:\wamp64\www\index.php(78): IndexController::main()
#6 {main}
thrown in C:\wamp64\www\classes\class_language.php on line 68

Also, it isn't adding me as a user to the database, but it makes the tables and inserts the information on the "settings" tables. So... I don't know what that's about either.
 
At this point you'll have to specify what version of WAMP you installed because WAMP will keep updating it's PHP version and Mysidia is now outdated in the world of PHP and will not run on the latest versions. This is going to be a real problem across the board at hosting companies in a few short years so I hope that Mysidia releases its next version soon. :cfrown:

Anyway, make sure you get WAMP with a PHP of 5.4, 5.6, or 5.8, and not PHP 7.
 
There is no PHP 5.8 though, PHP 5.x only goes up to 5.6. If I recall correctly, WAMP's default version is PHP 5.6, though I can be mistaken. But anyway, PHP 7 compatibility is something I am thinking about for version 1.4.0, it will require a considerable change to the core script though.
 
Ha, you would not believe this, but there isn't an issue with those files. I've been at this for the last few days, sifting through tens of webpages to try and fix this problem. I've managed to return Xampp to port 80. YES!

Xampp finally says that it is running perfectly.

The only issue now..

I get this when I attempt to open "mysidia.dev"

Code:
Could not connect to database, the following error has occurred: 
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.

Both Apache and MySQL are running, no porblems (or so Xampp says)... so now I've hit yet another brick wall.

EDIT::
OMG I fixed it. Thank you so much Kyttias for digging through this and helping me out. I really appreciate it. <3



I've been having this exact same issue, so I'd love to know what you guys figured out...
EDIT: and for posterity, it seems the solution is to download WAMP 2.5 from sourceforge, then follow the instructions on here. it seems to be working properly now.
 
Last edited:
Well its important to note that Mysidia v1.3.x isnt compatible with PHP 7, this will change in version 1.4 for sure but to continue with version 1.3, you have to use PHP 5.3 - 5.6.
 
Okay, maybe I'm insane or I'm a lot more of a newb than I thought. But I'm stuck and have now spent a hour trying to fix this. I've gotten all the way to the Installing Mysidia Adoptables section. Accessing localhost/install gives me a 404 error. It says the requested URL /install was not found on this server.

Browsing through other articles (including setting up the script through an actual host) shows people pointing at the config file. The one this tutorial has us change from "config_adopts" to "config". My config file is empty. Is it supposed to be? I redownloaded the files and config_adopts is empty. I'm probably missing something obvious but help would be appreciated!
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,274
Messages
33,115
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top