我没有10个声誉所以无法添加图片,抱歉.
我希望Laravel 4.2.0能够在我的Ubuntu 14.04.2 LTS服务器上运行.
我到目前为止做了什么:
安装Ubuntu 14.04.2
sudo apt-get install apache2
sudo apt-get install mysql-server
安装Openssl
安装libmcrypt
安装PHP
./configure --with-openssl --with-mcrypt --enable-mbstring --with-pdo-mysql --enable-pdo --with-mysql
Run Code Online (Sandbox Code Playgroud)
make make install
从GitHub下载Laravel 4.2.0 zip文件,解压缩并通过WinSCP传输
安装Laravel 4.2.0
curl -sS https://getcomposer.org/installer | php php composer.phar安装
通过配置/app/config/database.php来建立数据库连接
'mysql'=> array('driver'=>'mysql','host'=>'localhost','database'=>'laravel','username'=>'laravel-user','password'=> '************','charset'=>'utf8','collation'=>'utf8_unicode_ci','prefix'=>'',),
我收到了这个错误.
PDOException
could not find driver
Open: /var/www/laravel/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
*/
public function createConnection($dsn, array $config, array $options)
{
$username = array_get($config, 'username');
$password = array_get($config, 'password');
return new PDO($dsn, $username, $password, $options);
}
Run Code Online (Sandbox Code Playgroud)
我不知道该怎么办.我用Google搜索了一天,但没有回答.请帮我.
我检查了使用php …