acjordan2 / AlpacaBoards

Message Board and Content Management System
https://boards.drewgle.net
17 stars 4 forks source link

cache and configs #1

Closed whisp closed 11 years ago

whisp commented 11 years ago

missing cache and configs folders... and whatever i tried to make it work other then those folders its giving server error. :( help pls..

acjordan2 commented 11 years ago

Can you post the error message you are getting? I'm assuming you are talking about the smarty cache and config folders. Also please note, this has to be in the root of the domain. example. mywebsite.com not mywebsite.com/sper.gs

whisp commented 11 years ago

thanks for fast reply. it just say server error. oh and i have did like this Domain.com/spergs/index.php

and i cant open and php it gives server error.

i tried changing spergs to something else aswell. and on schema whre it says database : spergs. i did other name which i used trying to make it work

and yea i meant smarty cache and configs folders coz in config file its mentioned in bottom.

acjordan2 commented 11 years ago

"Domain.com/spergs/index.php" is your problem it should be domain.com/index.php move evrything that is in the spergs folder one directory up.

As for the database name, it can be what ever you want as long as you change the name in includes/Config.ini.php.

whisp commented 11 years ago

k. will try that. but is there anyway to make it work like that > Domain.com/spergs/index.php ? and will it work without theconfigs and cache folders ? and renaming the spergs folder wont create any probs ?

acjordan2 commented 11 years ago

not at the moment, that is on the list to eventually do though. and no it will not work without the folders. You do have the folders, just the application is looking in the wrong spot. Moving the files will fix this.

whisp commented 11 years ago

thats all i see on smarty folder > http://i.imgur.com/nTgJBt3.png.

m such a n00b no idea which file to move and where :p

acjordan2 commented 11 years ago

no worries, I provided zero install instructions. but yea thats all that is needed. in that folder. as far as things to move. go into the spergs folder press ctrl a, then press ctrl x. Go to you htdocs folder and press ctrl v.

whisp commented 11 years ago

ah not that hehe i meant i have no idea which files to put in configs and cache folder hehe and i cant see htdocs anywhere on server :(

acjordan2 commented 11 years ago

you shouldnt have move anything. just put the files in the folder where you would normally put your other webfiles. edit includes/Config.ini.php to match your database settings and thats it. What are you using as your web server?

whisp commented 11 years ago

dedicated server, debian. running 2 sites on it. thats the problem :p thats y i had to create folder for spergs :(

acjordan2 commented 11 years ago

ah ok, the easiset way to do this is set up a subdomain then add it as a virtualhost. here is the docs for a virutalhost

http://httpd.apache.org/docs/2.2/vhosts/examples.html

if thats not an option you will probably have to wait till i update it to run in a subdir.

timdk commented 11 years ago

What's involved in doing that? Adding a site location var to config.ini and updating all references throughout?

acjordan2 commented 11 years ago

you will have to make a DNS entry to the subdomain you want. exampler spergs.domain.com then edit /etc/apache2/sites-enabled/000-default and put in an enrty that looks like this:

<VirtualHost *:80> DocumentRoot /path/to/sper.gs/folder ServerName spergs.domain.com </VirtualHost>

then restart apache.

whisp commented 11 years ago

thanks mate. m gonna try that virtualhost stuff.. never done that before :p thanks for helping out. will try tomorrow and report back :D or it would be awesome if u can update it to run from subdir :)

acjordan2 commented 11 years ago

np, and dont forget to edit includes/Config.ini.php and set the DOMAIN value to spergs.domain.com.

whisp commented 11 years ago

tried putting files 1 dir up. at var/www and when tried to open it gives this error >> "Error :("

acjordan2 commented 11 years ago

cool so it looks like its running but it may have a database problem. did you change the setting in includes/Config.ini.php to match your environment?

whisp commented 11 years ago

yup i did :( tried checking basline file aswell. but still its not working. gives same error "Error :("

whisp commented 11 years ago

i tried on local pc. have setup for that... i do stuff at home pc 1st to check :p for other sites aswell. and its just not running on local pc... have something to do with home pc ?

acjordan2 commented 11 years ago

ok try open up a terminal and type sudo tail -f /var/log/apache2/error.log then reload the web page and paste what ever errors you get.

whisp commented 11 years ago

PHP Fatal error: Call to a member function assign() on a non-object in /Sites/includes/deinit.php on line 29 PHP Notice: Undefined variable: smarty in /Sites/includes/deinit.php on line 29 PHP Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /Sites/includes/init.php on line 42

acjordan2 commented 11 years ago

do you have mysql installed and is it running?

whisp commented 11 years ago

yeah it is running but my socket dir is /tmp/mysql.sock

acjordan2 commented 11 years ago

ah ok, try this solution. http://stackoverflow.com/questions/4219970/warning-mysql-connect-2002-no-such-file-or-directory-trying-to-connect-vi

whisp commented 11 years ago

set the location of mysql and refreshed the page and then more errors :(

PHP Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /Sites/includes/smarty/templates_c/wrt510c2d2de2bd3' in /Sites/includes/smarty/sysplugins/smarty_internal_write_file.php:44\nStack tracen#0 /Sites/includes/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/S...', '<?php /* Smarty...', Object(Smarty))\n#1 /Sites/includes/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()\n#2 /Sites/includes/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('login.tpl', NULL, NULL, NULL, true)\n#3 /Sites/includes/deinit.php(30): Smarty_Internal_TemplateBase->display('login.tpl')\n#4 /Sites/index.php(37): require('/S...')\n#5 {main}\n thrown in /Sites/includes/smarty/sysplugins/smarty_internal_write_file.php on line 44

acjordan2 commented 11 years ago

chmod 777 ./includes/smarty/templates_c/

whisp commented 11 years ago

i havent tried that command yet but will do tomorrow probably :) and i can see some updates have been made on files. will that fix the problems i was having with site ? and what if i can download the latest smarty version from its site and copy paste it there ? will it work and wont give tose errors ? sorry for lot of questions. :p but had to ask. really want to make it work :)

and it would be awesome if it can work in subdir aswell. if u can update it to work like that. thats if u get some free time to do that :)

acjordan2 commented 11 years ago

the problem is a permissions problem, the app does not have permissions to write to that dir. chmodding it to 777 will fix it. Upgrading the smarty version should work (have not tested it) but it will not fix the permissions problem. The updates i made were new features it wont fix your current problem. I am working on the subdir thing but it will take a little while as all of the absolute references will need to be updated.

whisp commented 11 years ago

kool thanks man. i will be waiting for subdir update :) and ofc i will try the command and report back :) thanks for helping and answering quesitons. :) :+1:

acjordan2 commented 11 years ago

not a problem. let me know what you think :)

whisp commented 11 years ago

so took some time. was busy :( so when i tried on home pc it worked after that command. and then i have uploaded the site on server main. and it says this error again :(

"Error :( Notice: Undefined variable: auth in /var/www/index.php on line 27

Notice: Undefined variable: smarty in /var/www/index.php on line 33

Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33"

Oh and i have put the sphinx folder in var. and files from spergs folder in var/www

acjordan2 commented 11 years ago

did you update your database information in Config.ini.php? it looks like it cant make a connection.

whisp commented 11 years ago

yea its set :( now this

could not find driverError :( Notice: Undefined variable: auth in /var/www/index.php on line 27

Notice: Undefined variable: smarty in /var/www/index.php on line 33

Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33

acjordan2 commented 11 years ago

can you uncomment line 66 in init.php and then post the error?

whisp commented 11 years ago

when commented

Error :( Notice: Undefined variable: auth in /var/www/index.php on line 27 Notice: Undefined variable: smarty in /var/www/index.php on line 33 Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33

after uncommented

and the error changed to could not find driverError :( Notice: Undefined variable: auth in /var/www/index.php on line 27 Notice: Undefined variable: smarty in /var/www/index.php on line 33 Fatal error: Call to a member function assign() on a non-object in /var/www/index.php on line 33

acjordan2 commented 11 years ago

actually it looks like pdo_mysql does not come with the php package in Debian. take a look at this.

http://blog.gabrielsaldana.org/how-to-install-php-pdo-on-debian-lenny/

whisp commented 11 years ago

k. gonna try tomorrow. its late now :( hope after that it will work :(

whisp commented 11 years ago

after installing that plugin and stuff my friend finally made site work a bit. but when i open the site on index page it gives this error >> Notice: Undefined variable: message in /var/www/index.php on line 34

and on register page error >>

Notice: Undefined index: message in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 39

Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 39

Enter your details:

Notice: Undefined index: invite in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 49

Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 49 Desired Username:

Email:

Password:

Password (Again):

Notice: Undefined index: invite in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 63

Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/9dd5959825a612dedd3648378aa15ccababe44d0.file.register.tpl.php on line 63 Invite Code:

On reset pass page error >> Warning: strftime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 148

Notice: Undefined index: change in /var/www/includes/smarty/templates_c/5a9dcdd90a5a218c32816f9dbeaf049eb3ec4fe0.file.forgotPassword.tpl.php on line 41

Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/5a9dcdd90a5a218c32816f9dbeaf049eb3ec4fe0.file.forgotPassword.tpl.php on line 41 Логин:

and finally i cant login to site lol the use and pass in readme i tried that and i cant login :p pls help

crisprintsstuff commented 11 years ago

I am getting the same errors as Whisp above, has anyone come up with a solution?

acjordan2 commented 11 years ago

i need to clean up the code a bit. this is still very early alpha. a qucik fix would be to turn off verbose errors in PHP.ini. yea i screwed up the default user but you should be able to register an account using anything as the invite code for the time being.

whisp commented 11 years ago

yup tried that. acc made but its like normal account. and no sections and stuff there yet. so cant make them till have admin permissions. and there r alot of errors aswell when i logged into site after making a normal user account. :( errors from my last post r on site on index , register pages. and after loggin into site there r new errors aswell like those on top main page

Notice: Undefined variable: topic_data in /var/www/includes/Board.class.php on line 138

Notice: Undefined variable: topic_data in /var/www/includes/Board.class.php on line 213

and Archieves.php > Not Found

The requested URL /archives.php was not found on this server.

Addalink.php >> Deprecated: Function eregi() is deprecated in /var/www/includes/Override.inc.php on line 127

Notice: Undefined index: error_msg in /var/www/includes/smarty/templates_c/8f6ea95b36593bd9ab710074a5413ab83462bf14.file.addlink.tpl.php on line 62

Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/8f6ea95b36593bd9ab710074a5413ab83462bf14.file.addlink.tpl.php on line 62

http://puu.sh/22s79 http://puu.sh/22s7Y

images might help :) ^^

and then Links.php >> Notice: Undefined variable: link_data in /var/www/includes/Link.class.php on line 83

links.php?mode=search >> Notice: Undefined variable: link_list in /var/www/links.php on line 78

Userlist.php >> Notice: Undefined variable: user_search in /var/www/includes/User.class.php on line 562

http://puu.sh/22sdi

Notice: Undefined variable: topic_data in /var/www/includes/User.class.php on line 730

boardlist.php >> Not Found

The requested URL /boardlist.php was not found on this server.

postmsg >> Notice: Undefined index: message_id in /var/www/includes/smarty/templates_c/bb22df878e51594a3bd481dd617ea2c1e15b33c7.file.postmsg.tpl.php on line 120

Notice: Trying to get property of non-object in /var/www/includes/smarty/templates_c/bb22df878e51594a3bd481dd617ea2c1e15b33c7.file.postmsg.tpl.php on line 120

search.php?board=42 > 404 not found.

trying to help reporting errors :) this will help everyone. me aswell to set it up with fixes when its fixed :)

acjordan2 commented 11 years ago

thanks, that does help. also there is no admin functionality. the pages that are missing are because i have not created them yet.

whisp commented 11 years ago

so no admin functionality means there isnt any Admin class on site ? with permissions and panel to manage site ?

and m gonna wait for error solutions now :) thanks :+1:

crisprintsstuff commented 11 years ago

That's what i'm gettin from what he said, hopefully more functionality will come soon.

Keep up the good work!

whisp commented 11 years ago

disallowed /register.php in robots and can still make acc :( with any inv code...... :(

whisp commented 11 years ago

guess its gonna take time :(

acjordan2 commented 11 years ago

yea sorry, this is just a personal project i do in my spare time which has been pretty sparse lately.

The robots.txt is for web crawlers and search engines like google/yahoo etc. People were having problems with the reg codes so I just made it open for the time being.

whisp commented 11 years ago

ah i c... will be waiting on updates :) curiosity of watching it working well :p hehe

acjordan2 commented 11 years ago

Sorry for the delay, all of the errors should now be removed and this code can now be run in a subdirectory.

Closing.