Search the Community
Showing results for tags 'centos'.
Found 4 results
We’re working on a new project in Laravel 5.6 and along the way plan on providing tutorials for several of the Laravel functions and guides. Even a simple Laravel install can seem daunting to someone new on the scene with Composer, Migrations, etc….but using Laravel speeds up the development process and helps you build a really clean and efficient web application. First we’re running on CentOS 7 64-bit with an Apache – PHP 7.1 and PHP-FPM enabled on the account. For setting the path really only the operating system is relevant, but pointing it out in all our tutorials as we work from SSH. So you’re reading the documentation on how to install Laravel. Right from the start you’ll notice there isn’t a direct download of the files on their installation documentation any longer. They want you to use Composer and it does make things really easy. We’ll assume you don’t have Composer installed on your system yet. Installing Composer Pull up an SSH window, we use Putty. Login as root or su – to root so that you can install Composer. Now go ahead and run this command to download the composer.phar file. wget https://getcomposer.org/composer.phar This downloads the latest release of Composer onto your system. Now at this point it’s only setup to run in your local environment/folder. Chances are once you use Composer you’ll adopt it in other projects as well. So let’s set it up to work globally/server-wide, it’s only one more command. mv composer.phar /usr/local/bin/composer This will move the composer.phar file you just downloaded over to the above directory for global use. Next let’s setup laravel/installer globally. composer global require "laravel/installer" Make sure to place the composer’s systemwide vendor bin directory in your $PATH so the Laravel executable can be located by your system. If you’re having trouble with this you can follow our guide on How To Set a Systemwide $PATH for Composer and Laravel. Now the hard part is done and we’re ready to install Laravel. We don’t want the files owned by root, but by the user who will be developing the application. We’ve already setup an account for them so we’ll jump over now. su - newappuser Now we’re in the /home/newappuser/ directory, we’ll go one folder deeper. cd public_html Installing Laravel We’re already in the folder where we want to install Laravel, so go ahead and type the following to setup and install your new Laravel project. Keep in mind “blog” from the command below can be swapped out with any name you want to call your new project. laravel new blog The command will run for a few seconds/minutes depending on your server hardware, once completed run a directory listing “ls” in SSH and you will see the newly created folder (named as the above) “blog”. You’re all set now, just browse to domain.com/blog/public and you will see the Laravel splash page. You may have noticed that in the URL we’re navigating to the /public folder which is where Laravel serves it’s site. You can update your document root or setup htaccess rules so that you can browse to domain.com/blog and see the website. We’ve written a guide on How to Setup an .htaccess file for redirecting to Laravel’s Public Folder. Leave any questions down below in the comments and we’ll be happy to answer or create new tutorials.
My server has a site that's getting a lot of traffic lately and I'm seeing some mysql errors coming up in the IP.Board logs. It says it's an error with mysql not the software. Anyone know how to fix the error: Error: 23 - Out of resources when opening file
So from looking on CentOS's website 5.8 will be supported through 2017. The only way to upgrade from CentOS 5.x to CentOS 6.x is by backing up all your data then doing a clean install of the new version and restoring all you files. That's not really something I'm looking to do right now. So I can't find it out there, but I'm wondering if you can even install PHP 5.4 on CentOS 5.8. Has anyone tried or read about this yet?
I needed to open a certain outgoing port on my CentOS 5 server. Now that I know how I figured I would share with you. It's really pretty simple. First you will need to login to your server via SSH. I use Putty. After that su - to root. Open Outgoing Port: iptables -A RH-Firewall-1-OUTPUT -p tcp -m state --state NEW -m tcp --dport 65 -j ACCEPT Open Incoming Port: iptables -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 65 -j ACCEPT Once done you need to save your iptables by running this command: service iptables save Now restart the service: /etc/init.d/iptables restart That's it your done!