Running yii application on centos - php

We recentlly shifted our complete yii web application to vps server with php 5.3 and apache 2.2.16 and os - centos.
The problem is complete webapp is not working now, before it was working fine on sharedhosting.
http://212.1.213.180/yii/requirements/ You can check the yii requirements of my app
when I tried running I got some protected/runtime invalid error then I changed permission of runtime and assets to 777 then now am getting
Fatal error: Cannot redeclare class CAttributeCollection in /home/wwwmobit/public_html/yii/framework/collections/CAttributeCollection.php on line 32
what could be the problem??
I checked mod_rewrite is enable.
you can check complete phpinfo of my site here
http://212.1.213.180/info.php
Please resolve my problem as soon as possible.
Do I need to edit framework file and make it to include_once?

thanks for the reply I found solution my self with couple of yii guys in live chat.
The solution is to uninstall apc by pecl uninstall apc
then change permission of yii folder and assets and runtime folder in project.
Thats it.

Related

Getting Page loading error after successful Plugin installation in Moodle

I have installed Moodle 3.7.1 with XAMPP. The installation had been successful and problem-free. I followed the below video for installation:
https://www.youtube.com/watch?v=Ov2dGoOBmSI&t=436s
Now my main objective is moodle plugin development. Since I am relatively new to this I was exploring plugins and trying to build a simple one first.
But whenever I am trying to install plugin (my own or from Moodle directory) I receive the SUCCESS message but then get 'Page Loading Error' and thereafter I am not able to go to any page
I found this thread on Moodle forums and have tried most of the solutions they offered.
https://moodle.org/mod/forum/discuss.php?d=355930
I dont wish to work on older XAMPP version
My cache folder under Xampp's moodledata folder is empty and i tried clearing my browser cache and restarting the servers.
But the issue still persists
Any ideas what maybe causing this? I have a feeling that its some kind of configuration issue but I dont know where to look and what to look for.
Thanks for all the help. It took me alot of installation and uninstallations but finally when I downloaded the full Windows installer package--it worked.
I guess it was some kind of deeprooted version conflict between xampp and moodle or some configuration issue.

Unable to install TastyIgniter

I have downloaded TastyIgniter from GitHub and running it in localhost (Windows with WAMP and PHP version 7.1.9). In the last step of installation, I am getting errors that "Downloaded files from server are corrupted" and "Missing vendor files". May I know what is causing these errors and how I can run it without bugs in my localhost.
Run composer update command in the root of your project.
If composer is not installed. Download it from this link official website.
it seems like they hardcoded something.
when you unzip the setup-master folder, keep it as it is and don't rename or move its content.
start your installation by calling:
yoursite/setup-master/setup.php
this worked for me.
I tried to run the installation previously by unzipping the files directly in my html folder and tried several fixes but no success.
after a successful installation you need to forward in your apache config / .htaccess file to the subfolder
In order to do so, don't forget to perform the Post-Installation steps mentioned here:
https://tastyigniter.com/docs/master/installation
I finished by aborting tastyigniter. After a successful installation and theme activation, the application worked fine then "suddenly" it throws an exception that the newsletter component can't be found. All suggested helps on the dev forum didn't help. Even after reinstalling the application it comes to the same error.
Apparently you won't come over a "professional" installation support by the developer ($$$)
Thats pretty much my experience, I tried to install in different servers and environments running into several issues, especially it seems not to be made for anything other but specific development environment. Trying to secure installation with SSL already is an issue, that is very standard but poorly documented with this project. Having an example of how configuration files nginx go! Pay or have an experienced server admin do the trial and error. Integrated update mechanism, get your staging server and help to code. It is ok, just would be more honest to mention upfront, that running that app in production environment requieres some serious server administration skills and is nothing like installing and maintaining a wordpress or any other mainstream script.

Laravel wsod (white screen of death) on godaddy hosting

I'm developing a laravel 5.1 application which is working absolutely fine on my localhost. But when I deploy it to GoDaddy's shared hosting, it gives a blank white page on opening the domain.
I have followed this tutorial to upload to the server.
http://www.nickmarriotti.com/blog/deploying-laravel-5-project-to-godaddy
How can I resolve this error problem? Any help will be appreciated.
Thanks
Kindly check the file permissions. Generally this issue comes when file permissions are not as it should be. Better call the GoDaddy customer care and they will run a quick check and will tell you if there is any problem with file permissions.
Also, GoDaddy Server, I mean CPanel by default supports a lower PHP Version. Where as New versions of laravel requires PHP >= 5.5.9. Kindly tell GoDaddy guys to upgrade your Server PHP version.
Follow these two steps and you should be fine.
This is one of the most common installation errors caused by invalid permissions. Please login via ssh to your server and run this command to fix it.
chmod -R 777 LARAVEL/storage
Here LARAVEL is the path to your laravel installation in Laravel 5.*, while as for Laravel 4.*, LARAVEL will be path/to/laravel/app, as storage resides inside app directory in Laravel 4.* installations.

Laravel application displays only white page on live server

I have made an application using Laravel 4.2 . It works well on Wamp, But when I uploaded it onto a shared host, it only displayed a blank page. I followed all the advice given in the following links but it still isn't working.
Uploading Laravel Project onto Web Server
Avoid public folder of laravel and open directly the root in web server
I just realized that laravel 4.2 requires php 5.4 or greater, but my host uses php 5.3.28. Can this be the cause of the problem? if not, then what is the reason I get only blank page?
Yes - using Laravel without the required version of PHP will absolutely give you problems. You'll have to either upgrade your webserver or ask your host if it is possible for them to upgrade or enable a newer version of PHP for you.
Regrettably, when theres an error in PHP code there's only a blank page.
Try putting this in there
error_reporting(E_ALL);
Give permissions to storage folder. chmod -R 0777 app/storage
run command
php artisan key:generate
problem solved in my case

Laravel 4 Installation Error (via composer) always Timeout

I tried installing laravel.
I installed xampp then the composer.
I followed the documentation but when i'm installing laravel, i always get this:
http://i975.photobucket.com/albums/ae238/Mochi_Ongpin/help_zpsb8870025.png
Can someone please help me? I already tried several times but failed.
Your Laravel is already installed, it timed out in the very last thing it does, which is create the compiled classes files bootstrap/compiled.php. If this file is present, delete it (it's not really necessary) and try to use your Laravel installtion.
Why is it timing out? Not sure, but you can, later, try to execute the command manually:
php artisan optimize
EDIT:
You successfully installed a Laravel application, but there is at least one other variable in this process: a web server. Without it you cannot see that success message.
Being on Windows you probably will have to install Apache 2 or WAMP, then create a Virtual Host for your Laravel application and hit: http://localhost/ to see that message.
You can also try to use Laravel's internal PHP server:
php artisan serve
And in your browser go to
http://localhost:8000

Categories